Files
Shadow/Entities/Album.cs
sherl eebc5f1d6d fix: remove required from entities' id
also adds "Global" entity for storing global configuration
2025-12-16 04:01:45 +01:00

17 lines
454 B
C#

namespace Shadow.Entities;
public class Album
{
public int Id { get; set; }
public required string Name { get; set; }
public required string Uri { get; set; }
public int State { get; set; } = 0;
public int? ArtistId { get; set; } = null;
public Artist? Artist { get; set; } = null;
public List<Song> Songs { get; set; } = [];
public bool IsOk() => State == 0;
public bool IsOrphaned() => State == 1;
public bool IsArchived() => State == 2;
}