2022-03-19 22:28:54 +01:00
|
|
|
|
using Lavalink4NET.Player;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using TomatenMusic.Music.Entitites;
|
|
|
|
|
|
|
|
|
|
namespace TomatenMusic.Music
|
|
|
|
|
{
|
|
|
|
|
public class MusicActionResponse
|
|
|
|
|
{
|
2022-03-24 08:51:40 +01:00
|
|
|
|
public ILavalinkPlaylist Playlist { get; }
|
2022-03-19 22:28:54 +01:00
|
|
|
|
public LavalinkTrack Track { get; }
|
|
|
|
|
public IEnumerable<LavalinkTrack> Tracks { get; }
|
|
|
|
|
public bool isPlaylist { get; }
|
2022-03-24 08:51:40 +01:00
|
|
|
|
public MusicActionResponse(LavalinkTrack track = null, ILavalinkPlaylist playlist = null, IEnumerable<LavalinkTrack> tracks = null)
|
2022-03-19 22:28:54 +01:00
|
|
|
|
{
|
|
|
|
|
Playlist = playlist;
|
|
|
|
|
Track = track;
|
|
|
|
|
isPlaylist = playlist != null;
|
|
|
|
|
Tracks = tracks;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|