#region ========================================================================= USING ===================================================================================== using Lumina.Presentation.Web.Common.DTO.Common; using Lumina.Presentation.Web.Common.Enums.Common; using System; using System.Collections.Generic; using System.Diagnostics; #endregion namespace Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary.BookLibrary; /// /// Data transfer object for a book. /// [DebuggerDisplay("Title: {Title}")] public class BookDto { /// /// Gets the Id of the media item. /// public Guid Id { get; init; } /// /// Gets the Id of the media library this book belongs to. /// public Guid LibraryId { get; init; } /// /// Gets the file system path of the book. /// public string Path { get; init; } = null!; /// /// Gets the title of the media item. /// public string Title { get; init; } = null!; /// /// Gets the original title of the media item. /// public string? OriginalTitle { get; init; } /// /// Gets the optional description of the media item. /// public string? Description { get; init; } /// /// Gets the optional original release date of the media item. /// public DateOnly? OriginalReleaseDate { get; init; } /// /// Gets the optional original release year of the media item. /// This is useful when only the year of original release is known. /// public int? OriginalReleaseYear { get; init; } /// /// Gets the optional re-release or reissue date of the media item. /// public DateOnly? ReReleaseDate { get; init; } /// /// Gets the optional re-release or reissue year of the media item. /// public int? ReReleaseYear { get; init; } /// /// Gets the optional country or region of release. /// public ReleaseCountry? ReleaseCountry { get; init; } /// /// Gets the optional release version or edition. (e.g. "Original", "Director's Cut", "2.0") /// public string? ReleaseVersion { get; init; } /// /// Gets the ISO 639-1 two-letter language code. /// public string? LanguageCode { get; init; } /// /// Gets the full name of the language in English. /// public string? LanguageName { get; init; } /// /// Gets an optional native name of the language. /// public string? LanguageNativeName { get; init; } /// /// Gets the optional ISO 639-1 two-letter original language code. /// public string? OriginalLanguageCode { get; init; } /// /// Gets the optional full name of the original language in English. /// public string? OriginalLanguageName { get; init; } /// /// Gets an optional native name of the original language. /// public string? OriginalLanguageNativeName { get; init; } /// /// Gets the list of tags associated with the media item. /// public HashSet Tags { get; set; } = []; /// /// Gets the list of genres associated with the media item. /// public HashSet Genres { get; set; } = []; /// /// Gets the publisher of the written content. /// public string? Publisher { get; init; } /// /// Gets the number of pages in the written content. /// public int? PageCount { get; init; } /// /// Gets the format of the book (e.g., Hardcover, Paperback), if applicable. /// public string Format { get; init; } = null!; /// /// Gets the edition of the book, if applicable. /// public string? Edition { get; init; } /// /// Gets the volume or book number in the series, if applicable. /// public float? VolumeNumber { get; init; } /// /// Gets the series id, if the book is part of a series. /// //public Guid? BookSeriesId { get; init; } = null; /// /// Gets the ASIN (Amazon Standard Identification Number) of the book. /// public string? ASIN { get; init; } = null!; /// /// Gets the Goodreads ID of the book. /// public string? GoodreadsId { get; init; } = null!; /// /// Gets the Library of Congress Control Number (LCCN) of the book. /// public string? LCCN { get; init; } = null!; /// /// Gets the OCLC Number (WorldCat identifier) of the book. /// public string? OCLCNumber { get; init; } = null!; /// /// Gets the Open Library ID of the book. /// public string? OpenLibraryId { get; init; } = null!; /// /// Gets the LibraryThing ID of the book. /// public string? LibraryThingId { get; init; } = null!; /// /// Gets the Google Books ID of the book. /// public string? GoogleBooksId { get; init; } = null!; /// /// Gets the Barnes & Noble ID of the book. /// public string? BarnesAndNobleId { get; init; } = null!; /// /// Gets the Apple Books ID of the book. /// public string? AppleBooksId { get; init; } = null!; /// /// Gets the list of ISBN (International Standard Book Number) of the book. /// public List ISBNs { get; set; } = []; /// /// Gets the list of media contributors (actors, directors, etc) starring in this book. /// //public List ContributorIds { get; init; } = []; /// /// Gets the list of ratings for this book. /// public List Ratings { get; init; } = []; /// /// Gets the time and date when the entity was added. /// public DateTime Created { get; set; } /// /// Gets the optional time and date when the entity was updated. /// public DateTime? Updated { get; set; } }