using System.Collections.Generic; using API.Entities.Enums; namespace API.DTOs.Reader; /// /// Information about the Chapter for the Reader to render /// public class ChapterInfoDto : IChapterInfoDto { /// /// The Chapter Number /// public string ChapterNumber { get; set; } = default! ; /// /// The Volume Number /// public string VolumeNumber { get; set; } = default! ; /// /// Volume entity Id /// public int VolumeId { get; set; } /// /// Series Name /// public string SeriesName { get; set; } = null!; /// /// Series Format /// public MangaFormat SeriesFormat { get; set; } /// /// Series entity Id /// public int SeriesId { get; set; } /// /// Library entity Id /// public int LibraryId { get; set; } /// /// Library type /// public LibraryType LibraryType { get; set; } /// /// Chapter's title if set via ComicInfo.xml (Title field) /// public string ChapterTitle { get; set; } = string.Empty; /// /// Total Number of pages in this Chapter /// public int Pages { get; set; } /// /// File name of the chapter /// public string? FileName { get; set; } /// /// If this is marked as a special in Kavita /// public bool IsSpecial { get; set; } /// /// The subtitle to render on the reader /// public string? Subtitle { get; set; } /// /// Series Title /// /// Usually just series name, but can include chapter title public string Title { get; set; } = default!; /// /// List of all files with their inner archive structure maintained in filename and dimensions /// /// This is optionally returned by includeDimensions public IEnumerable? PageDimensions { get; set; } /// /// For Double Page reader, this will contain snap points to ensure the reader always resumes on correct page /// /// This is optionally returned by includeDimensions public IDictionary? DoublePairs { get; set; } }