#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.MediaContributors;
using Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary;
using Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary.BookLibrary;
using Lumina.Presentation.Web.Common.Enums.BookLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary.BookLibrary;
///
/// Data transfer object carrying the full details of a book, as stored in the media library.
///
[DebuggerDisplay("Title: {Metadata?.Title}")]
public class BookDetailsDto
{
///
/// Gets or sets the Id of the book.
///
public Guid Id { get; set; }
///
/// Gets or sets the Id of the media library this book belongs to.
///
public Guid LibraryId { get; set; }
///
/// Gets or sets the file system path of the book.
///
public string Path { get; set; } = null!;
///
/// Gets or sets the written content metadata of the book.
///
public WrittenContentMetadataDto? Metadata { get; set; }
///
/// Gets or sets the format of the book (e.g., Hardcover, Paperback), if applicable.
///
public BookFormat? Format { get; set; }
///
/// Gets or sets the edition of the book, if applicable.
///
public string? Edition { get; set; }
///
/// Gets or sets the volume or book number in the series, if applicable.
///
public float? VolumeNumber { get; set; }
///
/// Gets or sets the ASIN (Amazon Standard Identification Number) of the book, if applicable.
///
public string? ASIN { get; set; }
///
/// Gets or sets the Goodreads Id of the book, if applicable.
///
public string? GoodreadsId { get; set; }
///
/// Gets or sets the Library of Congress Control Number (LCCN) of the book, if applicable.
///
public string? LCCN { get; set; }
///
/// Gets or sets the OCLC Number (WorldCat identifier) of the book, if applicable.
///
public string? OCLCNumber { get; set; }
///
/// Gets or sets the Open Library Id of the book, if applicable.
///
public string? OpenLibraryId { get; set; }
///
/// Gets or sets the LibraryThing Id of the book, if applicable.
///
public string? LibraryThingId { get; set; }
///
/// Gets or sets the Google Books Id of the book, if applicable.
///
public string? GoogleBooksId { get; set; }
///
/// Gets or sets the Barnes & Noble Id of the book, if applicable.
///
public string? BarnesAndNobleId { get; set; }
///
/// Gets or sets the Apple Books Id of the book, if applicable.
///
public string? AppleBooksId { get; set; }
///
/// Gets or sets the list of ISBN (International Standard Book Number) of the book.
///
public List? ISBNs { get; set; }
///
/// Gets or sets the list of media contributors of the book.
///
public List? Contributors { get; set; }
///
/// Gets or sets the list of ratings of the book.
///
public List? Ratings { get; set; }
///
/// Gets or sets the status of the metadata enrichment of the book.
///
public string? MetadataStatus { get; set; }
///
/// Gets or sets the date and time when the metadata of the book was last enriched, if applicable.
///
public DateTime? LastMetadataUpdateUtc { get; set; }
///
/// Gets or sets the name of the plugin that enriched the metadata of the book, if applicable.
///
public string? MetadataProvider { get; set; }
///
/// Gets or sets the date and time when the book was created.
///
public DateTime CreatedOnUtc { get; set; }
///
/// Gets or sets the optional date and time when the book was updated.
///
public DateTime? UpdatedOnUtc { get; set; }
///
/// Gets or sets the path of the cover image of the book, if available.
///
public string? CoverPath { get; set; }
}