using System.Collections.Generic; using API.Entities.Interfaces; namespace API.Entities.Person; public class Person : IHasCoverImage { public int Id { get; set; } public required string Name { get; set; } public required string NormalizedName { get; set; } public ICollection Aliases { get; set; } = []; public string? CoverImage { get; set; } public bool CoverImageLocked { get; set; } public string PrimaryColor { get; set; } public string SecondaryColor { get; set; } public string Description { get; set; } /// /// ASIN for person /// /// Can be used for Amazon author lookup public string? Asin { get; set; } /// /// https://anilist.co/staff/{AniListId}/ /// /// Kavita+ Only public int AniListId { get; set; } = 0; /// /// https://myanimelist.net/people/{MalId}/ /// https://myanimelist.net/character/{MalId}/CharacterName /// /// Kavita+ Only public long MalId { get; set; } = 0; /// /// https://hardcover.app/authors/{HardcoverId} /// /// Kavita+ Only public string? HardcoverId { get; set; } /// /// https://metron.cloud/creator/{slug}/ /// /// Kavita+ Only //public long MetronId { get; set; } = 0; // Relationships public ICollection ChapterPeople { get; set; } = []; public ICollection SeriesMetadataPeople { get; set; } = []; public void ResetColorScape() { PrimaryColor = string.Empty; SecondaryColor = string.Empty; } }