mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 00:11:10 +00:00
Refactors the update book slice across the stack
This commit is contained in:
1 parent
9a71a6d32b
commit
001146eefc
27 files changed
+4065
-632
No files matched your search
+3
-5
@@ -1,4 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
|
||||
@@ -12,7 +12,6 @@ namespace Lumina.Contracts.Requests.MediaLibrary.WrittenContentLibrary.BookLibra
|
||||
/// <summary>
|
||||
/// Represents a request to update an existing book.
|
||||
/// </summary>
|
||||
/// <param name="Id">The Id of the book to update, taken from the route. Required.</param>
|
||||
/// <param name="Metadata">Written content metadata of the book. Required.</param>
|
||||
/// <param name="Format">The format of the book (e.g., Hardcover, Paperback). Optional.</param>
|
||||
/// <param name="Edition">The edition of the book. Optional.</param>
|
||||
@@ -28,11 +27,10 @@ namespace Lumina.Contracts.Requests.MediaLibrary.WrittenContentLibrary.BookLibra
|
||||
/// <param name="BarnesAndNobleId">The Barnes & Noble Id of the book. Optional.</param>
|
||||
/// <param name="AppleBooksId">The Apple Books Id of the book. Optional.</param>
|
||||
/// <param name="ISBNs">The list of ISBN (International Standard Book Number) of the book. Required.</param>
|
||||
/// <param name="Contributors">The list of media contributors (actors, directors, etc) starring in this book. Required.</param>
|
||||
/// <param name="Contributors">The list of media contributors of the book. Required.</param>
|
||||
/// <param name="Ratings">The list of ratings for this book. Required.</param>
|
||||
[DebuggerDisplay("Title: {Metadata.Title}")]
|
||||
public record UpdateBookRequest(
|
||||
string? Id,
|
||||
WrittenContentMetadataDto? Metadata,
|
||||
BookFormat? Format,
|
||||
string? Edition,
|
||||
@@ -48,6 +46,6 @@ public record UpdateBookRequest(
|
||||
string? BarnesAndNobleId,
|
||||
string? AppleBooksId,
|
||||
List<IsbnDto>? ISBNs,
|
||||
List<MediaContributorDto>? Contributors,
|
||||
List<MediaContributorReferenceDto>? Contributors,
|
||||
List<BookRatingDto>? Ratings
|
||||
);
|
||||
Reference in new issue
Block a user