Implements first stage library management system

This commit is contained in:
BinaryAlley committed 2024-11-03 19:43:46 +02:00
1 parent 5e0f94cd82
commit 36352ea9e8
291 files changed
+3733 -1384

No files matched your search

@@ -0,0 +1,29 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Enums.MediaLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Responses.MediaLibrary.Management;
/// <summary>
/// Represents a media library response.
/// </summary>
/// <param name="Id">The id of the media library.</param>
/// <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>
/// <param name="Created">The date and time when the library was created.</param>
/// <param name="Updated">The optional date and time when the library was updated.</param>
[DebuggerDisplay("Title: {Title}")]
public record LibraryResponse(
Guid Id,
Guid UserId,
string Title,
LibraryType LibraryType,
List<string> ContentLocations,
DateTime Created,
DateTime? Updated
);
@@ -1,18 +1,19 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Entities.MediaContributors;
using Lumina.Contracts.Entities.WrittenContentLibrary;
using Lumina.Contracts.Entities.WrittenContentLibrary.BookLibrary;
using Lumina.Contracts.Entities.MediaLibrary.WrittenContentLibrary;
using Lumina.Contracts.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary;
using Lumina.Contracts.Enums.BookLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Responses.WrittenContentLibrary.BookLibrary.Books;
namespace Lumina.Contracts.Responses.MediaLibrary.WrittenContentLibrary.BookLibrary.Books;
/// <summary>
/// Represents a request to add a book.
/// Represents a book response.
/// </summary>
/// <param name="Id">The id 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>
@@ -30,6 +31,8 @@ namespace Lumina.Contracts.Responses.WrittenContentLibrary.BookLibrary.Books;
/// <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="Created">The date and time when the book was created.</param>
/// <param name="Updated">The optional date and time when the book was updated.</param>
[DebuggerDisplay("Title: {Metadata.Title}")]
public record BookResponse(
Guid Id,
@@ -0,0 +1,21 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Responses.UsersManagement.Users;
/// <summary>
/// Represents a user response.
/// </summary>
/// <param name="Id">The id of the user.</param>
/// <param name="Username">The username of the user.</param>
/// <param name="Created">The date and time when the user was created.</param>
/// <param name="Updated">The optional date and time when the user was updated.</param>
[DebuggerDisplay("Username: {Username}")]
public record UserResponse(
Guid Id,
string Username,
DateTime Created,
DateTime? Updated
);