mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
71 lines
3.7 KiB
C#
71 lines
3.7 KiB
C#
#region ========================================================================= USING =====================================================================================
|
|
using Lumina.Contracts.DTO.MediaContributors;
|
|
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary;
|
|
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
|
|
using Lumina.Domain.SharedKernel.Common.Enums.BookLibrary;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
#endregion
|
|
|
|
namespace Lumina.Contracts.Responses.MediaLibrary.WrittenContentLibrary.BookLibrary.Books;
|
|
|
|
/// <summary>
|
|
/// Represents a book response.
|
|
/// </summary>
|
|
/// <param name="Id">The id of the book.</param>
|
|
/// <param name="LibraryId">The Id of the media library this book belongs to.</param>
|
|
/// <param name="Path">The file system path of the book.</param>
|
|
/// <param name="Metadata">Written content metadata of the book.</param>
|
|
/// <param name="Format">The format of the book (e.g., Hardcover, Paperback), if applicable.</param>
|
|
/// <param name="Edition">The edition of the book, if applicable.</param>
|
|
/// <param name="VolumeNumber">The volume or book number in the series, if applicable.</param>
|
|
/// <param name="Series">The series name, if the book is part of a series.</param>
|
|
/// <param name="ASIN">The ASIN (Amazon Standard Identification Number) of the book, if applicable.</param>
|
|
/// <param name="GoodreadsId">The Goodreads ID of the book, if applicable.</param>
|
|
/// <param name="LCCN">The Library of Congress Control Number (LCCN) of the book, if applicable.</param>
|
|
/// <param name="OCLCNumber">The OCLC Number (WorldCat identifier) of the book, if applicable.</param>
|
|
/// <param name="OpenLibraryId">The Open Library ID of the book, if applicable.</param>
|
|
/// <param name="LibraryThingId">The LibraryThing ID of the book, if applicable.</param>
|
|
/// <param name="GoogleBooksId">The Google Books ID of the book, if applicable.</param>
|
|
/// <param name="BarnesAndNobleId">The Barnes & Noble ID of the book, if applicable.</param>
|
|
/// <param name="AppleBooksId">The Apple Books ID of the book, if applicable.</param>
|
|
/// <param name="ISBNs">The list of ISBN (International Standard Book Number) of the book.</param>
|
|
/// <param name="Contributors">The list of media contributors (actors, directors, etc) starring in this book.</param>
|
|
/// <param name="Ratings">The list of ratings for this book.</param>
|
|
/// <param name="MetadataStatus">The status of the metadata enrichment of the book.</param>
|
|
/// <param name="LastMetadataUpdateUtc">The date and time when the metadata of the book was last enriched, if applicable.</param>
|
|
/// <param name="MetadataProvider">The name of the plugin that enriched the metadata of the book, if applicable.</param>
|
|
/// <param name="CreatedOnUtc">The date and time when the book was created.</param>
|
|
/// <param name="UpdatedOnUtc">The optional date and time when the book was updated.</param>
|
|
/// <param name="CoverPath">The path of the cover image of the book, if available.</param>
|
|
[DebuggerDisplay("Title: {Metadata.Title}")]
|
|
public record BookResponse(
|
|
Guid Id,
|
|
Guid LibraryId,
|
|
string Path,
|
|
WrittenContentMetadataDto Metadata,
|
|
BookFormat? Format,
|
|
string? Edition,
|
|
float? VolumeNumber,
|
|
BookSeriesDto? Series,
|
|
string? ASIN,
|
|
string? GoodreadsId,
|
|
string? LCCN,
|
|
string? OCLCNumber,
|
|
string? OpenLibraryId,
|
|
string? LibraryThingId,
|
|
string? GoogleBooksId,
|
|
string? BarnesAndNobleId,
|
|
string? AppleBooksId,
|
|
List<IsbnDto>? ISBNs,
|
|
List<MediaContributorDto>? Contributors,
|
|
List<BookRatingDto>? Ratings,
|
|
MetadataStatus MetadataStatus,
|
|
DateTime? LastMetadataUpdateUtc,
|
|
string? MetadataProvider,
|
|
DateTime CreatedOnUtc,
|
|
DateTime? UpdatedOnUtc,
|
|
string? CoverPath
|
|
);
|