37 lines
867 B
C#
37 lines
867 B
C#
using KaraokePlayer.Enums;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace KaraokePlayer.Interfaces
|
|
{
|
|
public interface ISong
|
|
{
|
|
int Id { get; set; }
|
|
int Order { get; set; }
|
|
string Title { get; set; }
|
|
string Artist { get; set; }
|
|
FileType FileType { get; set; }
|
|
string Path { get; set; }
|
|
string Description { get; }
|
|
}
|
|
|
|
public interface IController
|
|
{
|
|
int Id { get; set; }
|
|
ISong CurrentSong { get; set; }
|
|
string State { get; set; }
|
|
List<ISong> PlayQueue { get; set; }
|
|
void NextSong();
|
|
void RemoveSong(ISong song);
|
|
void AddSong(ISong song);
|
|
void SkipSong();
|
|
void Play();
|
|
void Pause();
|
|
void Stop();
|
|
void Next();
|
|
}
|
|
}
|