b23d1aa71c
fixed Rewind not restarting song https://cloud.tomatentum.net/apps/deck/#/board/19/card/241 added song queue prepend position https://cloud.tomatentum.net/apps/deck/#/board/19/card/224
32 lines
911 B
C#
32 lines
911 B
C#
using Lavalink4NET.Player;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using TomatenMusic.Music.Entitites;
|
|
using TomatenMusicCore.Music;
|
|
using TomatenMusicCore.Music.Entities;
|
|
|
|
namespace TomatenMusic.Music
|
|
{
|
|
public class MusicActionResponse
|
|
{
|
|
public ILavalinkPlaylist Playlist { get; }
|
|
public TomatenMusicTrack Track { get; }
|
|
public TrackList Tracks { get; }
|
|
public bool IsPlaylist { get; }
|
|
public MusicActionResponse(TomatenMusicTrack track = null, ILavalinkPlaylist playlist = null, TrackList tracks = null)
|
|
{
|
|
Playlist = playlist;
|
|
Track = track;
|
|
IsPlaylist = playlist != null;
|
|
Tracks = tracks;
|
|
if (track != null)
|
|
{
|
|
var list = new TrackList();
|
|
list.Add(track);
|
|
Tracks = list;
|
|
}
|
|
}
|
|
}
|
|
}
|