mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 14:01:11 +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
+4
-4
@@ -2,13 +2,13 @@
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.Common;
|
||||
namespace Lumina.Contracts.Entities.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get genre information.
|
||||
/// </summary>
|
||||
/// <param name="Name">Gets the name of the genre.</param>
|
||||
[DebuggerDisplay("{Name}")]
|
||||
public record GenreModel(
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
public record GenreEntity(
|
||||
string? Name
|
||||
);
|
||||
);
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.Common;
|
||||
namespace Lumina.Contracts.Entities.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for storage models, enforces Id.
|
||||
+5
-5
@@ -2,17 +2,17 @@
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.Common;
|
||||
namespace Lumina.Contracts.Entities.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get language information.
|
||||
/// </summary>
|
||||
/// <param name="LanguageCode">Gets the ISO code of the language (e.g., "en" for English).</param>
|
||||
/// <param name="LanguageName">Gets the name of the language in English.</param>
|
||||
/// <param name="NativeName">Gets the native name of the language (e.g., "Español" for Spanish).</param>
|
||||
[DebuggerDisplay("{LanguageName}")]
|
||||
public record LanguageInfoModel(
|
||||
/// <param name="NativeName">Gets the native name of the language (e.g., "Español" for Spanish).</param>
|
||||
[DebuggerDisplay("LanguageName: {LanguageName}")]
|
||||
public record LanguageInfoEntity(
|
||||
string? LanguageCode,
|
||||
string? LanguageName,
|
||||
string? NativeName
|
||||
);
|
||||
);
|
||||
+3
-3
@@ -2,7 +2,7 @@
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.Common;
|
||||
namespace Lumina.Contracts.Entities.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a rating.
|
||||
@@ -11,8 +11,8 @@ namespace Lumina.Contracts.Models.Common;
|
||||
/// <param name="MaxValue">Gets the maximum possible rating value.</param>
|
||||
/// <param name="VoteCount">Gets the number of votes that contributed to the rating.</param>
|
||||
[DebuggerDisplay("{Value}/{MaxValue}")]
|
||||
public abstract record RatingModel(
|
||||
public abstract record RatingEntity(
|
||||
decimal? Value,
|
||||
decimal? MaxValue,
|
||||
int? VoteCount
|
||||
);
|
||||
);
|
||||
+4
-4
@@ -3,7 +3,7 @@ using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.Common;
|
||||
namespace Lumina.Contracts.Entities.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get release information.
|
||||
@@ -14,12 +14,12 @@ namespace Lumina.Contracts.Models.Common;
|
||||
/// <param name="ReReleaseYear">Gets the re-release year of the content, if applicable.</param>
|
||||
/// <param name="ReleaseCountry">Gets the country where the content was released.</param>
|
||||
/// <param name="ReleaseVersion">Gets the version or edition of the content's release.</param>
|
||||
[DebuggerDisplay("{OriginalReleaseDate}")]
|
||||
public record ReleaseInfoModel(
|
||||
[DebuggerDisplay("OriginalReleaseDate: {OriginalReleaseDate}")]
|
||||
public record ReleaseInfoEntity(
|
||||
DateOnly? OriginalReleaseDate,
|
||||
int? OriginalReleaseYear,
|
||||
DateOnly? ReReleaseDate,
|
||||
int? ReReleaseYear,
|
||||
string? ReleaseCountry,
|
||||
string? ReleaseVersion
|
||||
);
|
||||
);
|
||||
+4
-4
@@ -2,13 +2,13 @@
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.Common;
|
||||
namespace Lumina.Contracts.Entities.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get tag information.
|
||||
/// </summary>
|
||||
/// <param name="Name">Gets the name of the tag.</param>
|
||||
[DebuggerDisplay("{Name}")]
|
||||
public record TagModel(
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
public record TagEntity(
|
||||
string? Name
|
||||
);
|
||||
);
|
||||
+6
-6
@@ -3,7 +3,7 @@ using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.FileManagement;
|
||||
namespace Lumina.Contracts.Entities.FileSystemManagement;
|
||||
|
||||
/// <summary>
|
||||
/// Generic filesystem data transfer object.
|
||||
@@ -12,10 +12,10 @@ namespace Lumina.Contracts.Models.FileManagement;
|
||||
/// <param name="Name">The name of the file system item.</param>
|
||||
/// <param name="DateCreated">The creation date of the file system item.</param>
|
||||
/// <param name="DateModified">The modification date of the file system item.</param>
|
||||
[DebuggerDisplay("{Name}")]
|
||||
public record FileSystemItemModel(
|
||||
string Path,
|
||||
string Name,
|
||||
DateTime DateCreated,
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
public record FileSystemItemEntity(
|
||||
string Path,
|
||||
string Name,
|
||||
DateTime DateCreated,
|
||||
DateTime DateModified
|
||||
);
|
||||
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Entities.MediaContributors;
|
||||
|
||||
/// <summary>
|
||||
/// Repository entity for a media contributor.
|
||||
/// </summary>
|
||||
/// <param name="Name">The name details of the media contributor, including display and legal names.</param>
|
||||
/// <param name="Role">The role details of the media contributor, including the role name and category.</param>
|
||||
[DebuggerDisplay("Name: {Name}, Role: {Role}")]
|
||||
public record MediaContributorEntity(
|
||||
MediaContributorNameEntity? Name,
|
||||
MediaContributorRoleEntity? Role
|
||||
);
|
||||
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Entities.MediaContributors;
|
||||
|
||||
/// <summary>
|
||||
/// Repository entity for a media contributor name.
|
||||
/// </summary>
|
||||
/// <param name="DisplayName">The display name of the media contributor.</param>
|
||||
/// <param name="LegalName">The legal name of the media contributor.</param>
|
||||
[DebuggerDisplay("DisplayName: {DisplayName}")]
|
||||
public record MediaContributorNameEntity(
|
||||
string? DisplayName,
|
||||
string? LegalName
|
||||
);
|
||||
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Entities.MediaContributors;
|
||||
|
||||
/// <summary>
|
||||
/// Repository entity for a media contributor role.
|
||||
/// </summary>
|
||||
/// <param name="Name">The name of the role assigned to the media contributor.</param>
|
||||
/// <param name="Category">The category of the role.</param>
|
||||
[DebuggerDisplay("Name: {Name}, Category: {Category}")]
|
||||
public record MediaContributorRoleEntity(
|
||||
string? Name,
|
||||
string? Category
|
||||
);
|
||||
+11
-11
@@ -1,17 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Models.Common;
|
||||
using Lumina.Contracts.Entities.Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.WrittenContentLibrary.BookLibrary;
|
||||
namespace Lumina.Contracts.Entities.WrittenContentLibrary.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a book.
|
||||
/// Repository entity for a book.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{Title}")]
|
||||
public class BookModel : IStorageEntity
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public class BookEntity : IStorageEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the Id of the media item.
|
||||
@@ -97,12 +97,12 @@ public class BookModel : IStorageEntity
|
||||
/// <summary>
|
||||
/// Gets the list of tags associated with the media item.
|
||||
/// </summary>
|
||||
public HashSet<TagModel> Tags { get; set; } = [];
|
||||
public HashSet<TagEntity> Tags { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of genres associated with the media item.
|
||||
/// </summary>
|
||||
public HashSet<GenreModel> Genres { get; set; } = [];
|
||||
public HashSet<GenreEntity> Genres { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets the publisher of the written content.
|
||||
@@ -128,7 +128,7 @@ public class BookModel : IStorageEntity
|
||||
/// Gets the volume or book number in the series, if applicable.
|
||||
/// </summary>
|
||||
public int? VolumeNumber { get; init; }
|
||||
|
||||
// TODO: uncomment when series is implemented
|
||||
/// <summary>
|
||||
/// Gets the series id, if the book is part of a series.
|
||||
/// </summary>
|
||||
@@ -182,7 +182,7 @@ public class BookModel : IStorageEntity
|
||||
/// <summary>
|
||||
/// Gets the list of ISBN (International Standard Book Number) of the book.
|
||||
/// </summary>
|
||||
public List<IsbnModel> ISBNs { get; set; } = [];
|
||||
public List<IsbnEntity> ISBNs { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of media contributors (actors, directors, etc) starring in this book.
|
||||
@@ -192,7 +192,7 @@ public class BookModel : IStorageEntity
|
||||
/// <summary>
|
||||
/// Gets the list of ratings for this book.
|
||||
/// </summary>
|
||||
public List<BookRatingModel> Ratings { get; init; } = [];
|
||||
public List<BookRatingEntity> Ratings { get; init; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets the time and date when the entity was added.
|
||||
@@ -203,4 +203,4 @@ public class BookModel : IStorageEntity
|
||||
/// Gets the optional time and date when the entity was updated.
|
||||
/// </summary>
|
||||
public DateTime? Updated { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Entities.Common;
|
||||
using Lumina.Contracts.Enums.BookLibrary;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Entities.WrittenContentLibrary.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Repository entity for a book rating.
|
||||
/// </summary>
|
||||
/// <param name="Value">The rating value for the book.</param>
|
||||
/// <param name="MaxValue">The maximum possible rating value for the book.</param>
|
||||
/// <param name="Source">The source of the book rating (e.g., a specific website or platform).</param>
|
||||
/// <param name="VoteCount">The number of votes that contributed to the book rating.</param>
|
||||
[DebuggerDisplay("{Value}/{MaxValue}")]
|
||||
public record BookRatingEntity(
|
||||
decimal? Value,
|
||||
decimal? MaxValue,
|
||||
BookRatingSource? Source,
|
||||
int? VoteCount
|
||||
) : RatingEntity(Value, MaxValue, VoteCount);
|
||||
+6
-6
@@ -2,13 +2,13 @@
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.WrittenContentLibrary.BookLibrary;
|
||||
namespace Lumina.Contracts.Entities.WrittenContentLibrary.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get book series information.
|
||||
/// Repository entity for book series.
|
||||
/// </summary>
|
||||
/// <param name="Title">Gets the title of the book series.</param>
|
||||
[DebuggerDisplay("{Title}")]
|
||||
public record BookSeriesModel(
|
||||
/// <param name="Title">The title of the book series.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public record BookSeriesEntity(
|
||||
string? Title
|
||||
);
|
||||
);
|
||||
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Enums.BookLibrary;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Entities.WrittenContentLibrary.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Repository entity for ISBN information.
|
||||
/// </summary>
|
||||
/// <param name="Value">The ISBN value.</param>
|
||||
/// <param name="Format">The format of the ISBN (e.g., ISBN-10 or ISBN-13).</param>
|
||||
[DebuggerDisplay("ISBN: {Value} ({Format})")]
|
||||
public record IsbnEntity(
|
||||
string? Value,
|
||||
IsbnFormat? Format
|
||||
);
|
||||
@@ -0,0 +1,34 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Entities.Common;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Entities.WrittenContentLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Repository entity for written content metadata.
|
||||
/// </summary>
|
||||
/// <param name="Title">The title of the written content.</param>
|
||||
/// <param name="OriginalTitle">The original title of the written content, if different from the current title.</param>
|
||||
/// <param name="Description">Gets a brief description or summary of the written content.</param>
|
||||
/// <param name="ReleaseInfo">The release information, including release date and other relevant details.</param>
|
||||
/// <param name="Genres">The list of genres associated with the written content.</param>
|
||||
/// <param name="Tags">The list of tags that further describe or categorize the written content.</param>
|
||||
/// <param name="Language">The language in which the written content is written.</param>
|
||||
/// <param name="OriginalLanguage">The original language of the written content, if it has been translated.</param>
|
||||
/// <param name="Publisher">The name of the publisher of the written content.</param>
|
||||
/// <param name="PageCount">The number of pages in the written content.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public record WrittenContentMetadataEntity(
|
||||
string? Title,
|
||||
string? OriginalTitle,
|
||||
string? Description,
|
||||
ReleaseInfoEntity? ReleaseInfo,
|
||||
List<GenreEntity>? Genres,
|
||||
List<TagEntity>? Tags,
|
||||
LanguageInfoEntity? Language,
|
||||
LanguageInfoEntity? OriginalLanguage,
|
||||
string? Publisher,
|
||||
int? PageCount
|
||||
);
|
||||
@@ -11,8 +11,4 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="..\AssemblyInfo_Shared.cs" Link="Properties\AssemblyInfo_Shared.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Responses\WrittenContentLibrary\BookLibrary\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,16 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.MediaContributors;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a media contributor.
|
||||
/// </summary>
|
||||
/// <param name="Name">Gets the name details of the media contributor, including display and legal names.</param>
|
||||
/// <param name="Role">Gets the role details of the media contributor, including the role name and category.</param>
|
||||
[DebuggerDisplay("{Name} {Role}")]
|
||||
public record MediaContributorModel(
|
||||
MediaContributorNameModel? Name,
|
||||
MediaContributorRoleModel? Role
|
||||
);
|
||||
@@ -1,16 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.MediaContributors;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a media contributor name.
|
||||
/// </summary>
|
||||
/// <param name="DisplayName">Gets the display name of the media contributor.</param>
|
||||
/// <param name="LegalName">Gets the legal name of the media contributor.</param>
|
||||
[DebuggerDisplay("{DisplayName}")]
|
||||
public record MediaContributorNameModel(
|
||||
string? DisplayName,
|
||||
string? LegalName
|
||||
);
|
||||
@@ -1,16 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.MediaContributors;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a media contributor role.
|
||||
/// </summary>
|
||||
/// <param name="Name">Gets the name of the role assigned to the media contributor.</param>
|
||||
/// <param name="Category">Gets the category of the role, which may describe the type or group of roles.</param>
|
||||
[DebuggerDisplay("{Name} {Category}")]
|
||||
public record MediaContributorRoleModel(
|
||||
string? Name,
|
||||
string? Category
|
||||
);
|
||||
@@ -1,22 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Enums.BookLibrary;
|
||||
using Lumina.Contracts.Models.Common;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.WrittenContentLibrary.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a book rating.
|
||||
/// </summary>
|
||||
/// <param name="Value">Gets the rating value for the book.</param>
|
||||
/// <param name="MaxValue">Gets the maximum possible rating value for the book.</param>
|
||||
/// <param name="Source">Gets the source of the book rating (e.g., a specific website or platform).</param>
|
||||
/// <param name="VoteCount">Gets the number of votes that contributed to the book rating.</param>
|
||||
[DebuggerDisplay("{Value}/{MaxValue}")]
|
||||
public record BookRatingModel(
|
||||
decimal? Value,
|
||||
decimal? MaxValue,
|
||||
BookRatingSource? Source,
|
||||
int? VoteCount
|
||||
) : RatingModel(Value, MaxValue, VoteCount);
|
||||
@@ -1,17 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Enums.BookLibrary;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.WrittenContentLibrary.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get ISBN information.
|
||||
/// </summary>
|
||||
/// <param name="Value">Gets the ISBN value.</param>
|
||||
/// <param name="Format">Gets the format of the ISBN (e.g., ISBN-10 or ISBN-13).</param>
|
||||
[DebuggerDisplay("{Value} ({Format})")]
|
||||
public record IsbnModel(
|
||||
string? Value,
|
||||
IsbnFormat? Format
|
||||
);
|
||||
@@ -1,34 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Models.Common;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.WrittenContentLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Represents written content metadata.
|
||||
/// </summary>
|
||||
/// <param name="Title">Gets the title of the written content.</param>
|
||||
/// <param name="OriginalTitle">Gets the original title of the written content, if different from the current title.</param>
|
||||
/// <param name="Description">Gets a brief description or summary of the written content.</param>
|
||||
/// <param name="ReleaseInfo">Gets the release information, including release date and other relevant details.</param>
|
||||
/// <param name="Genres">Gets the list of genres associated with the written content.</param>
|
||||
/// <param name="Tags">Gets the list of tags that further describe or categorize the written content.</param>
|
||||
/// <param name="Language">Gets the language in which the written content is written.</param>
|
||||
/// <param name="OriginalLanguage">Gets the original language of the written content, if it has been translated.</param>
|
||||
/// <param name="Publisher">Gets the name of the publisher of the written content.</param>
|
||||
/// <param name="PageCount">Gets the number of pages in the written content.</param>
|
||||
[DebuggerDisplay("{Title}")]
|
||||
public record WrittenContentMetadataModel(
|
||||
string? Title,
|
||||
string? OriginalTitle,
|
||||
string? Description,
|
||||
ReleaseInfoModel? ReleaseInfo,
|
||||
List<GenreModel>? Genres,
|
||||
List<TagModel>? Tags,
|
||||
LanguageInfoModel? Language,
|
||||
LanguageInfoModel? OriginalLanguage,
|
||||
string? Publisher,
|
||||
int? PageCount
|
||||
);
|
||||
+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
|
||||
);
|
||||
@@ -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