KaraokePC/FirebaseKaraoke/PlayerDelegates.cs

39 lines
1.1 KiB
C#

using Herse.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KaraokePlayer.Classes
{
public class ControllerStateChangedEventArgs: EventArgs
{
public ControllerStateChangedEventArgs(PlayerState state )
{
State = state;
}
public PlayerState State { get; }
}
public class ControllerSongChangedEventArgs
{
public ControllerSongChangedEventArgs(Song song)
{
ShouldPlay = true;
Song = song;
}
public ControllerSongChangedEventArgs(bool shouldPlay, Song song)
{
ShouldPlay = shouldPlay;
Song = song;
}
public Song Song { get; }
public bool ShouldPlay { get; }
}
public delegate void ControllerStateChangedEventHandler(ControllerStateChangedEventArgs args);
public delegate void ControllerSongChangedEventHandler(ControllerSongChangedEventArgs args);
public delegate void ControllerPlayQueueChangedEventHandler();
}