using System; using API.Entities.Enums; namespace API.DTOs; /// /// A mesh of data for Recently added volume/chapters /// public class RecentlyAddedItemDto { public string SeriesName { get; set; } public int SeriesId { get; set; } public int LibraryId { get; set; } public LibraryType LibraryType { get; set; } /// /// This will automatically map to Volume X, Chapter Y, etc. /// public string Title { get; set; } public DateTime Created { get; set; } /// /// Chapter Id if this is a chapter. Not guaranteed to be set. /// public int ChapterId { get; set; } = 0; /// /// Volume Id if this is a chapter. Not guaranteed to be set. /// public int VolumeId { get; set; } = 0; /// /// This is used only on the UI. It is just index of being added. /// public int Id { get; set; } public MangaFormat Format { get; set; } }