Added playlist repository logic.

This commit is contained in:
2025-02-18 20:49:04 -05:00
parent 8cf4bb2804
commit 2bafd474a0
7 changed files with 182 additions and 6 deletions

View File

@@ -3,12 +3,12 @@ using Harmonia.Core.Extensions;
namespace Harmonia.Core.Models;
public class Playlist(string name)
public class Playlist
{
private readonly List<PlaylistSong> _songs = [];
public string UID { get; init; } = Guid.NewGuid().ToString();
public string Name { get; set; } = name;
public string? Name { get; set; }
public IReadOnlyList<PlaylistSong> Songs => _songs;
public List<GroupOption> GroupOptions { get; set; } = [];
public List<SortOption> SortOptions { get; set; } = [];