mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 08:11:10 +00:00
Replaces MVC with FastEndpoints in Lumina.Presentation.Api
This commit is contained in:
1 parent
b1a20716df
commit
c7b8bc2f1c
519 files changed
+15329
-8539
No files matched your search
@@ -1,14 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileManagement;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response to the inquiry about the existence of a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Exists">Whether a file system path exists or not.</param>
|
||||
[DebuggerDisplay("{Exists}")]
|
||||
public record PathExistsResponse(
|
||||
bool Exists
|
||||
);
|
||||
@@ -1,14 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileManagement;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response containing a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Path">The returned path.</param>
|
||||
[DebuggerDisplay("{Path}")]
|
||||
public record PathSegmentResponse(
|
||||
string Path
|
||||
);
|
||||
@@ -1,14 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileManagement;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response to the inquiry about the system's path separator.
|
||||
/// </summary>
|
||||
/// <param name="Separator">The system's path separator.</param>
|
||||
[DebuggerDisplay("{Separator}")]
|
||||
public record PathSeparatorResponse(
|
||||
string Separator
|
||||
);
|
||||
@@ -1,14 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileManagement;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response to the inquiry about the validity of a file system path.
|
||||
/// </summary>
|
||||
/// <param name="IsValid">Whether a file system path is valid or not.</param>
|
||||
[DebuggerDisplay("{IsValid}")]
|
||||
public record PathValidResponse(
|
||||
bool IsValid
|
||||
);
|
||||
+4
-4
@@ -1,15 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Enums.FileSystem;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileManagement;
|
||||
namespace Lumina.Contracts.Responses.FileSystemManagement.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Generic file system node.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{Path}")]
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public class FileSystemTreeNodeResponse
|
||||
{
|
||||
/// <summary>
|
||||
@@ -41,4 +41,4 @@ public class FileSystemTreeNodeResponse
|
||||
/// Gets or sets the list of child nodes.
|
||||
/// </summary>
|
||||
public List<FileSystemTreeNodeResponse> Children { get; set; } = [];
|
||||
}
|
||||
}
|
||||
+9
-9
@@ -1,11 +1,11 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Models.FileManagement;
|
||||
using Lumina.Contracts.Entities.FileSystemManagement;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileManagement;
|
||||
namespace Lumina.Contracts.Responses.FileSystemManagement.Directories;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response containing a file system directory.
|
||||
@@ -15,11 +15,11 @@ namespace Lumina.Contracts.Responses.FileManagement;
|
||||
/// <param name="DateCreated">The creation date of the directory.</param>
|
||||
/// <param name="DateModified">The modification date of the directory.</param>
|
||||
/// <param name="Items">The children items of the directory.</param>
|
||||
[DebuggerDisplay("{Name} (Directory)")]
|
||||
[DebuggerDisplay("Name: {Name} (Directory)")]
|
||||
public record DirectoryResponse(
|
||||
string Path,
|
||||
string Name,
|
||||
DateTime DateCreated,
|
||||
DateTime DateModified,
|
||||
List<FileSystemItemModel> Items
|
||||
) : FileSystemItemModel(Path, Name, DateCreated, DateModified);
|
||||
string Path,
|
||||
string Name,
|
||||
DateTime DateCreated,
|
||||
DateTime DateModified,
|
||||
List<FileSystemItemEntity> Items
|
||||
) : FileSystemItemEntity(Path, Name, DateCreated, DateModified);
|
||||
+4
-4
@@ -1,15 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Enums.FileSystem;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileManagement;
|
||||
namespace Lumina.Contracts.Responses.FileSystemManagement.FileSystem;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response containing the file system platform type.
|
||||
/// </summary>
|
||||
/// <param name="PlatformType">The returned file system platform type.</param>
|
||||
[DebuggerDisplay("{PlatformType}")]
|
||||
[DebuggerDisplay("PlatformType: {PlatformType}")]
|
||||
public record FileSystemTypeResponse(
|
||||
PlatformType PlatformType
|
||||
);
|
||||
);
|
||||
+8
-8
@@ -1,10 +1,10 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Models.FileManagement;
|
||||
using Lumina.Contracts.Entities.FileSystemManagement;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileManagement;
|
||||
namespace Lumina.Contracts.Responses.FileSystemManagement.Files;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response containing a file system file.
|
||||
@@ -14,11 +14,11 @@ namespace Lumina.Contracts.Responses.FileManagement;
|
||||
/// <param name="DateCreated">The creation date of the file.</param>
|
||||
/// <param name="DateModified">The modification date of the file.</param>
|
||||
/// <param name="Size">The size of the file, in bytes.</param>
|
||||
[DebuggerDisplay("{Name} (File, Size: {Size} bytes)")]
|
||||
[DebuggerDisplay("Name: {Name} (File, Size: {Size} bytes)")]
|
||||
public record FileResponse(
|
||||
string Path,
|
||||
string Name,
|
||||
DateTime DateCreated,
|
||||
DateTime DateModified,
|
||||
string Path,
|
||||
string Name,
|
||||
DateTime DateCreated,
|
||||
DateTime DateModified,
|
||||
long Size
|
||||
) : FileSystemItemModel(Path, Name, DateCreated, DateModified);
|
||||
) : FileSystemItemEntity(Path, Name, DateCreated, DateModified);
|
||||
@@ -0,0 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileSystemManagement.Path;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response to the inquiry about the existence of a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Exists">Whether a file system path exists or not.</param>
|
||||
[DebuggerDisplay("Exists: {Exists}")]
|
||||
public record PathExistsResponse(
|
||||
bool Exists
|
||||
);
|
||||
@@ -0,0 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileSystemManagement.Path;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response containing a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Path">The returned path.</param>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public record PathSegmentResponse(
|
||||
string Path
|
||||
);
|
||||
@@ -0,0 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileSystemManagement.Path;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response to the inquiry about the system's path separator.
|
||||
/// </summary>
|
||||
/// <param name="Separator">The system's path separator.</param>
|
||||
[DebuggerDisplay("Separator: {Separator}")]
|
||||
public record PathSeparatorResponse(
|
||||
string Separator
|
||||
);
|
||||
@@ -0,0 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileSystemManagement.Path;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response to the inquiry about the validity of a file system path.
|
||||
/// </summary>
|
||||
/// <param name="IsValid">Whether a file system path is valid or not.</param>
|
||||
[DebuggerDisplay("IsValid: {IsValid}")]
|
||||
public record PathValidResponse(
|
||||
bool IsValid
|
||||
);
|
||||
+3
-3
@@ -3,15 +3,15 @@ using Lumina.Contracts.Enums.PhotoLibrary;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileManagement;
|
||||
namespace Lumina.Contracts.Responses.FileSystemManagement.Thumbnails;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for thumbnails.
|
||||
/// </summary>
|
||||
/// <param name="Type">The type of the thumbnail image.</param>
|
||||
/// <param name="Bytes">The bytes representing the thumbail.</param>
|
||||
[DebuggerDisplay("{Type}")]
|
||||
[DebuggerDisplay("Type: {Type}")]
|
||||
public record ThumbnailResponse(
|
||||
ImageType Type,
|
||||
ImageType Type,
|
||||
byte[] Bytes
|
||||
);
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Entities.MediaContributors;
|
||||
using Lumina.Contracts.Entities.WrittenContentLibrary;
|
||||
using Lumina.Contracts.Entities.WrittenContentLibrary.BookLibrary;
|
||||
using Lumina.Contracts.Enums.BookLibrary;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.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 BookResponse(
|
||||
Guid Id,
|
||||
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,
|
||||
DateTime Created,
|
||||
DateTime? Updated
|
||||
);
|
||||
Reference in new issue
Block a user