Added audio player logic and tests.
This commit is contained in:
@@ -2,10 +2,15 @@
|
||||
|
||||
namespace Harmonia.Core.Playlists;
|
||||
|
||||
public class PlaylistRepository : JsonFileRepository<Playlist>
|
||||
public class PlaylistRepository : JsonFileRepository<Playlist>, IPlaylistRepository
|
||||
{
|
||||
protected override string DirectoryName => string.Empty;
|
||||
|
||||
public Playlist? GetPlaylist(PlaylistSong playlistSong)
|
||||
{
|
||||
return Get().FirstOrDefault(playlist => playlist.Songs.Contains(playlistSong));
|
||||
}
|
||||
|
||||
protected override string GetNewFileName()
|
||||
{
|
||||
for (int i = 0; i < 1000; i++)
|
||||
|
||||
Reference in New Issue
Block a user