mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 23:11:10 +00:00
Implements first stage library management system
This commit is contained in:
1 parent
5e0f94cd82
commit
36352ea9e8
291 files changed
+3733
-1384
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Enums.MediaLibrary;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.MediaLibrary.Management;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to add a media library.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The Id of the user owning the media library.</param>
|
||||
/// <param name="Title">The title of the media library.</param>
|
||||
/// <param name="LibraryType">The type of the media library.</param>
|
||||
/// <param name="ContentLocations">The file system paths of the directories where the media library elements are located.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public record AddLibraryRequest(
|
||||
Guid UserId,
|
||||
string? Title,
|
||||
LibraryType? LibraryType,
|
||||
string[]? ContentLocations
|
||||
);
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Entities.MediaContributors;
|
||||
using Lumina.Contracts.Entities.MediaLibrary.WrittenContentLibrary;
|
||||
using Lumina.Contracts.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary;
|
||||
using Lumina.Contracts.Enums.BookLibrary;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.MediaLibrary.WrittenContentLibrary.BookLibrary.Books;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to add a book.
|
||||
/// </summary>
|
||||
/// <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>
|
||||
[DebuggerDisplay("Title: {Metadata.Title}")]
|
||||
public record AddBookRequest(
|
||||
WrittenContentMetadataEntity? Metadata,
|
||||
BookFormat? Format,
|
||||
string? Edition,
|
||||
int? VolumeNumber,
|
||||
BookSeriesEntity? Series,
|
||||
string? ASIN,
|
||||
string? GoodreadsId,
|
||||
string? LCCN,
|
||||
string? OCLCNumber,
|
||||
string? OpenLibraryId,
|
||||
string? LibraryThingId,
|
||||
string? GoogleBooksId,
|
||||
string? BarnesAndNobleId,
|
||||
string? AppleBooksId,
|
||||
List<IsbnEntity>? ISBNs,
|
||||
List<MediaContributorEntity>? Contributors,
|
||||
List<BookRatingEntity>? Ratings
|
||||
);
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.MediaLibrary.WrittenContentLibrary.BookLibrary.Books;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get a book by the specified Id.
|
||||
/// </summary>
|
||||
/// <param name="Id">The Id of the book to retrieve.</param>
|
||||
[DebuggerDisplay("Id: {Id}")]
|
||||
public record GetBookRequest(
|
||||
string? Id
|
||||
);
|
||||
Reference in new issue
Block a user