mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 21: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
+17
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Directories;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get the directories of a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Path">The file system path for which to get the directories.</param>
|
||||
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public record GetDirectoriesRequest(
|
||||
string? Path,
|
||||
bool IncludeHiddenElements
|
||||
);
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Directories;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get the tree of directories that make up a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Path">The file system path for which to get the directory tree.</param>
|
||||
/// <param name="IncludeFiles">Whether to include files along the directories or not.</param>
|
||||
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public record GetDirectoryTreeRequest(
|
||||
string? Path,
|
||||
bool IncludeFiles,
|
||||
bool IncludeHiddenElements
|
||||
);
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Directories;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get the directories of a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Path">The file system path for which to get the directory tree.</param>
|
||||
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public record GetTreeDirectoriesRequest(
|
||||
string? Path,
|
||||
bool IncludeHiddenElements
|
||||
);
|
||||
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Files;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get the files at a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Path">The file system path for which to get the files.</param>
|
||||
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public record GetFilesRequest(
|
||||
string? Path,
|
||||
bool IncludeHiddenElements
|
||||
);
|
||||
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Files;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get the files of a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Path">The file system path for which to get the tree files.</param>
|
||||
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public record GetTreeFilesRequest(
|
||||
string? Path,
|
||||
bool IncludeHiddenElements
|
||||
);
|
||||
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to check the existence of a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Path">The file system path to check the exitence of.</param>
|
||||
/// <param name="IncludeHiddenElements">Whether to include hidden elements in the search results, or not.</param>
|
||||
[DebuggerDisplay("Path: {Path}, IncludeHiddenElements: {IncludeHiddenElements}")]
|
||||
public record CheckPathExistsRequest(
|
||||
string? Path,
|
||||
bool IncludeHiddenElements
|
||||
);
|
||||
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get the root of a file system path.
|
||||
/// </summary>
|
||||
/// <param name="OriginalPath">The file system path to combine to.</param>
|
||||
/// <param name="NewPath">The file system path to combine with.</param>
|
||||
[DebuggerDisplay("OriginalPath: {OriginalPath}, NewPath: {NewPath}")]
|
||||
public record CombinePathRequest(
|
||||
string? OriginalPath,
|
||||
string? NewPath
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get the root of a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Path">The file system path for which to get the root.</param>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public record GetPathParentRequest(
|
||||
string? Path
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get the root of a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Path">The file system path for which to get the root.</param>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public record GetPathRootRequest(
|
||||
string? Path
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to split a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Path">The file system path for which to get the path segments.</param>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public record SplitPathRequest(
|
||||
string? Path
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to check the validity of a file system path.
|
||||
/// </summary>
|
||||
/// <param name="Path">The file system path to validate.</param>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public record ValidatePathRequest(
|
||||
string? Path
|
||||
);
|
||||
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Thumbnails;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get the thumbnail of a file system file.
|
||||
/// </summary>
|
||||
/// <param name="Path">The path of the file for which to get the thumbnail.</param>
|
||||
/// <param name="Quality">The quality to use for the thumbnail.</param>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public record GetThumbnailRequest(
|
||||
string? Path,
|
||||
int Quality
|
||||
);
|
||||
+12
-10
@@ -1,12 +1,13 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Entities.MediaContributors;
|
||||
using Lumina.Contracts.Entities.WrittenContentLibrary;
|
||||
using Lumina.Contracts.Entities.WrittenContentLibrary.BookLibrary;
|
||||
using Lumina.Contracts.Enums.BookLibrary;
|
||||
using Lumina.Contracts.Models.MediaContributors;
|
||||
using Lumina.Contracts.Models.WrittenContentLibrary;
|
||||
using Lumina.Contracts.Models.WrittenContentLibrary.BookLibrary;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.WrittenContentLibrary.BookLibrary;
|
||||
namespace Lumina.Contracts.Requests.WrittenContentLibrary.BookLibrary.Books;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to add a book.
|
||||
@@ -28,12 +29,13 @@ namespace Lumina.Contracts.Requests.WrittenContentLibrary.BookLibrary;
|
||||
/// <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(
|
||||
WrittenContentMetadataModel? Metadata,
|
||||
WrittenContentMetadataEntity? Metadata,
|
||||
BookFormat? Format,
|
||||
string? Edition,
|
||||
int? VolumeNumber,
|
||||
BookSeriesModel? Series,
|
||||
BookSeriesEntity? Series,
|
||||
string? ASIN,
|
||||
string? GoodreadsId,
|
||||
string? LCCN,
|
||||
@@ -43,7 +45,7 @@ public record AddBookRequest(
|
||||
string? GoogleBooksId,
|
||||
string? BarnesAndNobleId,
|
||||
string? AppleBooksId,
|
||||
List<IsbnModel>? ISBNs,
|
||||
List<MediaContributorModel>? Contributors,
|
||||
List<BookRatingModel>? Ratings
|
||||
);
|
||||
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.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