2022-03-28 19:52:42 +02:00
|
|
|
|
using Lavalink4NET.Player;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using TomatenMusic.Music.Entitites;
|
|
|
|
|
using TomatenMusicCore.Music;
|
2022-03-28 20:46:48 +02:00
|
|
|
|
using TomatenMusicCore.Music.Entities;
|
2022-03-28 19:52:42 +02:00
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|