mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 08:11:10 +00:00
Updates to .NET 9.0
This commit is contained in:
commit
acbdb0a5f8
853 files changed
+34993
-10123
No files matched your search
+5
-5
@@ -2,13 +2,13 @@
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.Common;
|
||||
namespace Lumina.Contracts.DTO.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get genre information.
|
||||
/// Data transfer object for a genre.
|
||||
/// </summary>
|
||||
/// <param name="Name">Gets the name of the genre.</param>
|
||||
[DebuggerDisplay("{Name}")]
|
||||
public record GenreModel(
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
public record GenreDto(
|
||||
string? Name
|
||||
);
|
||||
);
|
||||
+6
-6
@@ -2,17 +2,17 @@
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.Common;
|
||||
namespace Lumina.Contracts.DTO.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get language information.
|
||||
/// Data transfer object for 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 LanguageInfoDto(
|
||||
string? LanguageCode,
|
||||
string? LanguageName,
|
||||
string? NativeName
|
||||
);
|
||||
);
|
||||
+4
-4
@@ -2,17 +2,17 @@
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.Common;
|
||||
namespace Lumina.Contracts.DTO.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a rating.
|
||||
/// Data transfer object for a rating.
|
||||
/// </summary>
|
||||
/// <param name="Value">Gets the rating value.</param>
|
||||
/// <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 RatingDto(
|
||||
decimal? Value,
|
||||
decimal? MaxValue,
|
||||
int? VoteCount
|
||||
);
|
||||
);
|
||||
+5
-5
@@ -3,10 +3,10 @@ using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.Common;
|
||||
namespace Lumina.Contracts.DTO.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get release information.
|
||||
/// Data transfer object for a release information.
|
||||
/// </summary>
|
||||
/// <param name="OriginalReleaseDate">Gets the original release date of the content.</param>
|
||||
/// <param name="OriginalReleaseYear">Gets the original release year of the content.</param>
|
||||
@@ -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 ReleaseInfoDto(
|
||||
DateOnly? OriginalReleaseDate,
|
||||
int? OriginalReleaseYear,
|
||||
DateOnly? ReReleaseDate,
|
||||
int? ReReleaseYear,
|
||||
string? ReleaseCountry,
|
||||
string? ReleaseVersion
|
||||
);
|
||||
);
|
||||
+5
-5
@@ -2,13 +2,13 @@
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.Common;
|
||||
namespace Lumina.Contracts.DTO.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get tag information.
|
||||
/// Data transfer object for a tag.
|
||||
/// </summary>
|
||||
/// <param name="Name">Gets the name of the tag.</param>
|
||||
[DebuggerDisplay("{Name}")]
|
||||
public record TagModel(
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
public record TagDto(
|
||||
string? Name
|
||||
);
|
||||
);
|
||||
+6
-6
@@ -3,7 +3,7 @@ using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.FileManagement;
|
||||
namespace Lumina.Contracts.DTO.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 FileSystemItemDto(
|
||||
string Path,
|
||||
string Name,
|
||||
DateTime DateCreated,
|
||||
DateTime DateModified
|
||||
);
|
||||
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.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 MediaContributorDto(
|
||||
MediaContributorNameDto? Name,
|
||||
MediaContributorRoleDto? Role
|
||||
);
|
||||
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.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 MediaContributorNameDto(
|
||||
string? DisplayName,
|
||||
string? LegalName
|
||||
);
|
||||
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.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 MediaContributorRoleDto(
|
||||
string? Name,
|
||||
string? Category
|
||||
);
|
||||
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.Management;
|
||||
|
||||
/// <summary>
|
||||
/// Repository entity for a media library content location.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public class LibraryContentLocationDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the path of the media library content location.
|
||||
/// </summary>
|
||||
public required string Path { get; set; }
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using Lumina.Domain.Common.Enums.BookLibrary;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for 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 BookRatingDto(
|
||||
decimal? Value,
|
||||
decimal? MaxValue,
|
||||
BookRatingSource? Source,
|
||||
int? VoteCount
|
||||
) : RatingDto(Value, MaxValue, VoteCount);
|
||||
+6
-6
@@ -2,13 +2,13 @@
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.WrittenContentLibrary.BookLibrary;
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to get book series information.
|
||||
/// Data transfer object 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 BookSeriesDto(
|
||||
string? Title
|
||||
);
|
||||
);
|
||||
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.Common.Enums.BookLibrary;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.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 IsbnDto(
|
||||
string? Value,
|
||||
IsbnFormat? Format
|
||||
);
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object 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 WrittenContentMetadataDto(
|
||||
string? Title,
|
||||
string? OriginalTitle,
|
||||
string? Description,
|
||||
ReleaseInfoDto? ReleaseInfo,
|
||||
List<GenreDto>? Genres,
|
||||
List<TagDto>? Tags,
|
||||
LanguageInfoDto? Language,
|
||||
LanguageInfoDto? OriginalLanguage,
|
||||
string? Publisher,
|
||||
int? PageCount
|
||||
);
|
||||
@@ -1,57 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.AudioLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the types of audio content libraries.
|
||||
/// </summary>
|
||||
public enum AudioContentType
|
||||
{
|
||||
/// <summary>
|
||||
/// A musical composition typically consisting of vocals and/or instruments.
|
||||
/// </summary>
|
||||
Music,
|
||||
|
||||
/// <summary>
|
||||
/// A recording of a book or other written work being read aloud.
|
||||
/// </summary>
|
||||
AudioBook,
|
||||
|
||||
/// <summary>
|
||||
/// An audio recording of a live musical or spoken word performance.
|
||||
/// </summary>
|
||||
LivePerformance,
|
||||
|
||||
/// <summary>
|
||||
/// A recorded conversation where one person asks questions and another provides answers.
|
||||
/// </summary>
|
||||
Interview,
|
||||
|
||||
/// <summary>
|
||||
/// A new performance or recording of a previously released song.
|
||||
/// </summary>
|
||||
Cover,
|
||||
|
||||
/// <summary>
|
||||
/// An alternative version of a recorded song, typically with altered instrumentation or structure.
|
||||
/// </summary>
|
||||
Remix,
|
||||
|
||||
/// <summary>
|
||||
/// An audio recording used to create a specific acoustic environment or impression.
|
||||
/// </summary>
|
||||
Soundeffect,
|
||||
|
||||
/// <summary>
|
||||
/// A digital audio file made available on the internet for downloading to a computer or mobile device.
|
||||
/// </summary>
|
||||
Podcast,
|
||||
|
||||
/// <summary>
|
||||
/// A regularly scheduled broadcast program consisting of music, talk, or other audio content.
|
||||
/// </summary>
|
||||
RadioShow,
|
||||
|
||||
/// <summary>
|
||||
/// A collection of music used as background sound for a movie, TV show, video game, or other media.
|
||||
/// </summary>
|
||||
Soundtrack,
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.AudioLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the various sources of audio ratings.
|
||||
/// </summary>
|
||||
public enum AudioRatingSource
|
||||
{
|
||||
/// <summary>
|
||||
/// Ratings provided by users of the Lumina media library.
|
||||
/// </summary>
|
||||
User,
|
||||
|
||||
/// <summary>
|
||||
/// Ratings sourced from MusicBrainz, an open music encyclopedia that collects music metadata.
|
||||
/// </summary>
|
||||
MusicBrainz,
|
||||
|
||||
/// <summary>
|
||||
/// Ratings obtained from Discogs, a database and marketplace for music recordings.
|
||||
/// </summary>
|
||||
Discogs,
|
||||
|
||||
/// <summary>
|
||||
/// Ratings from Last.fm, a music website that provides music recommendations based on user listening habits.
|
||||
/// </summary>
|
||||
LastFm,
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for various book formats.
|
||||
/// </summary>
|
||||
public enum BookFormat
|
||||
{
|
||||
/// <summary>
|
||||
/// A book bound with rigid protective covers (typically cardboard covered with cloth, heavy paper, or leather).
|
||||
/// </summary>
|
||||
Hardcover,
|
||||
|
||||
/// <summary>
|
||||
/// A book with a flexible paper cover, typically less durable than a hardcover.
|
||||
/// </summary>
|
||||
Paperback,
|
||||
|
||||
/// <summary>
|
||||
/// A small, usually non-illustrated, and inexpensive paperback book.
|
||||
/// </summary>
|
||||
MassMarketPaperback,
|
||||
|
||||
/// <summary>
|
||||
/// A larger, often higher-quality paperback book, typically used for literary fiction and nonfiction.
|
||||
/// </summary>
|
||||
TradePaperback,
|
||||
|
||||
/// <summary>
|
||||
/// A digital version of a book that can be read on electronic devices.
|
||||
/// </summary>
|
||||
eBook,
|
||||
|
||||
/// <summary>
|
||||
/// A recorded audio version of a book, either on physical media or as a digital file.
|
||||
/// </summary>
|
||||
Audiobook,
|
||||
|
||||
/// <summary>
|
||||
/// A book printed with larger text for easier reading, often used by those with visual impairments.
|
||||
/// </summary>
|
||||
LargePrint,
|
||||
|
||||
/// <summary>
|
||||
/// A sturdy book with thick cardboard pages, typically designed for young children.
|
||||
/// </summary>
|
||||
BoardBook,
|
||||
|
||||
/// <summary>
|
||||
/// A book bound with a spiral wire or plastic coil, allowing it to lay flat when open.
|
||||
/// </summary>
|
||||
SpiralBound,
|
||||
|
||||
/// <summary>
|
||||
/// A reinforced binding designed for frequent use, often used in schools and public libraries.
|
||||
/// </summary>
|
||||
LibraryBinding,
|
||||
|
||||
/// <summary>
|
||||
/// A book bound in leather, often used for luxury or collector's editions.
|
||||
/// </summary>
|
||||
LeatherBound,
|
||||
|
||||
/// <summary>
|
||||
/// A book with three-dimensional paper engineering, creating pop-up or movable parts.
|
||||
/// </summary>
|
||||
PopupBook
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the various sources of book ratings.
|
||||
/// </summary>
|
||||
public enum BookRatingSource
|
||||
{
|
||||
/// <summary>
|
||||
/// Ratings provided by users of the Lumina system.
|
||||
/// </summary>
|
||||
User,
|
||||
|
||||
/// <summary>
|
||||
/// Ratings sourced from Goodreads, a social network for book readers that provides book recommendations and reviews.
|
||||
/// </summary>
|
||||
Goodreads,
|
||||
|
||||
/// <summary>
|
||||
/// Ratings obtained from Amazon, an e-commerce platform that includes customer reviews and ratings for books.
|
||||
/// </summary>
|
||||
Amazon,
|
||||
|
||||
/// <summary>
|
||||
/// Ratings from Google Books, a service that searches the full text of books and magazines that Google has scanned and converted to text.
|
||||
/// </summary>
|
||||
GoogleBooks,
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the different ISBN (International Standard Book Number) formats.
|
||||
/// </summary>
|
||||
public enum IsbnFormat
|
||||
{
|
||||
/// <summary>
|
||||
/// The 10-digit ISBN format used for books published before 2007.
|
||||
/// Example: 0-306-40615-2
|
||||
/// </summary>
|
||||
Isbn10,
|
||||
|
||||
/// <summary>
|
||||
/// The 13-digit ISBN format introduced in 2007, now the standard for all new books.
|
||||
/// Example: 978-0-306-40615-7
|
||||
/// </summary>
|
||||
Isbn13
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the types of written content libraries.
|
||||
/// </summary>
|
||||
public enum WrittenContentType
|
||||
{
|
||||
/// <summary>
|
||||
/// A printed or written literary work.
|
||||
/// </summary>
|
||||
Book,
|
||||
|
||||
/// <summary>
|
||||
/// An electronic version of a printed book.
|
||||
/// </summary>
|
||||
EBook,
|
||||
|
||||
/// <summary>
|
||||
/// A set of related books published in succession.
|
||||
/// </summary>
|
||||
BookSeries,
|
||||
|
||||
/// <summary>
|
||||
/// A magazine or book containing sequential art in the form of a narrative.
|
||||
/// </summary>
|
||||
ComicBook,
|
||||
|
||||
/// <summary>
|
||||
/// A set of related comic books published in succession.
|
||||
/// </summary>
|
||||
ComicSeries,
|
||||
|
||||
/// <summary>
|
||||
/// A periodical publication containing articles, stories, and other content.
|
||||
/// </summary>
|
||||
Magazine,
|
||||
|
||||
/// <summary>
|
||||
/// A style of Japanese comic books and graphic novels.
|
||||
/// </summary>
|
||||
Manga,
|
||||
|
||||
/// <summary>
|
||||
/// A novel in comic-strip format, typically with sophisticated artwork and complex storylines.
|
||||
/// </summary>
|
||||
GraphicNovel,
|
||||
|
||||
/// <summary>
|
||||
/// A scholarly article presenting original research or analysis.
|
||||
/// </summary>
|
||||
AcademicPaper,
|
||||
|
||||
/// <summary>
|
||||
/// A handwritten or printed form of musical notation.
|
||||
/// </summary>
|
||||
SheetMusic,
|
||||
|
||||
/// <summary>
|
||||
/// A script for a film, television program, or other visual media.
|
||||
/// </summary>
|
||||
Screenplay,
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.FileSystem;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for file access mode types.
|
||||
/// </summary>
|
||||
public enum FileAccessMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the ability to list the contents of a directory.
|
||||
/// </summary>
|
||||
ListDirectory,
|
||||
|
||||
/// <summary>
|
||||
/// Represents the ability to read file or directory properties.
|
||||
/// </summary>
|
||||
ReadProperties,
|
||||
|
||||
/// <summary>
|
||||
/// Represents the ability to read the contents of a file.
|
||||
/// </summary>
|
||||
ReadContents,
|
||||
|
||||
/// <summary>
|
||||
/// Represents the ability to write to a file or directory.
|
||||
/// </summary>
|
||||
Write,
|
||||
|
||||
/// <summary>
|
||||
/// Represents the ability to execute a file.
|
||||
/// </summary>
|
||||
Execute,
|
||||
|
||||
/// <summary>
|
||||
/// Represents the ability to delete a file or directory.
|
||||
/// </summary>
|
||||
Delete,
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.FileSystem;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for file system item statuses types.
|
||||
/// </summary>
|
||||
public enum FileSystemItemStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicates that the file system item is accessible.
|
||||
/// </summary>
|
||||
Accessible,
|
||||
|
||||
/// <summary>
|
||||
/// Indicates that the file system item is inaccessible due to permissions or other restrictions.
|
||||
/// </summary>
|
||||
Inaccessible,
|
||||
|
||||
/// <summary>
|
||||
/// Indicates that the status of the file system item could not be determined due to an unknown error.
|
||||
/// </summary>
|
||||
UnknownError
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.FileSystem;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the types of file system elements.
|
||||
/// </summary>
|
||||
public enum FileSystemItemType
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a file system root, which can be a drive on Windows, and a path separator on Unix.
|
||||
/// </summary>
|
||||
Root,
|
||||
|
||||
/// <summary>
|
||||
/// Represents a directory, which is a directory that can contain other directories or files.
|
||||
/// </summary>
|
||||
Directory,
|
||||
|
||||
/// <summary>
|
||||
/// Represents a file, which is a document, executable, or other data stored on the file system.
|
||||
/// </summary>
|
||||
File
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.FileSystem;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for platform types.
|
||||
/// </summary>
|
||||
public enum PlatformType
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents Unix-based operating systems, including Linux and macOS.
|
||||
/// </summary>
|
||||
Unix,
|
||||
|
||||
/// <summary>
|
||||
/// Represents Microsoft Windows operating systems.
|
||||
/// </summary>
|
||||
Windows,
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.Library;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the types of libraries.
|
||||
/// </summary>
|
||||
public enum LibraryType
|
||||
{
|
||||
/// <summary>
|
||||
/// Content that is written, such as books, articles, or other written works.
|
||||
/// </summary>
|
||||
WrittenContent,
|
||||
|
||||
/// <summary>
|
||||
/// Content that is video, such as movies, TV shows, or other video works.
|
||||
/// </summary>
|
||||
VideoContent,
|
||||
|
||||
/// <summary>
|
||||
/// Content that is audio, such as podcasts, radio shows, or other audio works.
|
||||
/// </summary>
|
||||
AudioContent,
|
||||
|
||||
/// <summary>
|
||||
/// Content that is visual, such as images, paintings, or other visual works.
|
||||
/// </summary>
|
||||
VisualContent,
|
||||
|
||||
/// <summary>
|
||||
/// Content that is miscellaneous, such as lyrics, movie posters, or other miscellaneous works.
|
||||
/// </summary>
|
||||
MiscellaneousContent,
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.Library;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the types of miscellaneous content libraries.
|
||||
/// </summary>
|
||||
public enum MiscellaneousContentType
|
||||
{
|
||||
/// <summary>
|
||||
/// A collection of media that does not fit into any other category.
|
||||
/// </summary>
|
||||
Other,
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.PhotoLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for known image types.
|
||||
/// </summary>
|
||||
public enum ImageType
|
||||
{
|
||||
/// <summary>
|
||||
/// No image type specified.
|
||||
/// </summary>
|
||||
None,
|
||||
|
||||
/// <summary>
|
||||
/// Bitmap image format.
|
||||
/// </summary>
|
||||
BMP,
|
||||
|
||||
/// <summary>
|
||||
/// Graphics Interchange Format (GIF).
|
||||
/// </summary>
|
||||
GIF,
|
||||
|
||||
/// <summary>
|
||||
/// Portable Network Graphics (PNG) format.
|
||||
/// </summary>
|
||||
PNG,
|
||||
|
||||
/// <summary>
|
||||
/// Tagged Image File Format (TIFF).
|
||||
/// </summary>
|
||||
TIFF,
|
||||
|
||||
/// <summary>
|
||||
/// Joint Photographic Experts Group (JPEG) format.
|
||||
/// </summary>
|
||||
JPEG,
|
||||
|
||||
/// <summary>
|
||||
/// Canon-specific JPEG format.
|
||||
/// </summary>
|
||||
JPEG_CANON,
|
||||
|
||||
/// <summary>
|
||||
/// Unknown JPEG format.
|
||||
/// </summary>
|
||||
JPEG_UNKNOWN,
|
||||
|
||||
/// <summary>
|
||||
/// Macintosh Picture (PICT) format.
|
||||
/// </summary>
|
||||
PICT,
|
||||
|
||||
/// <summary>
|
||||
/// Icon (ICO) format.
|
||||
/// </summary>
|
||||
ICO,
|
||||
|
||||
/// <summary>
|
||||
/// Photoshop Document (PSD) format.
|
||||
/// </summary>
|
||||
PSD,
|
||||
|
||||
/// <summary>
|
||||
/// JPEG 2000 format.
|
||||
/// </summary>
|
||||
JPEG2000,
|
||||
|
||||
/// <summary>
|
||||
/// AV1 Image File Format (AVIF).
|
||||
/// </summary>
|
||||
AVIF,
|
||||
|
||||
/// <summary>
|
||||
/// Web Picture (WEBP) format.
|
||||
/// </summary>
|
||||
WEBP,
|
||||
|
||||
/// <summary>
|
||||
/// Truevision TGA format.
|
||||
/// </summary>
|
||||
TGA,
|
||||
|
||||
/// <summary>
|
||||
/// Scalable Vector Graphics (SVG) format.
|
||||
/// </summary>
|
||||
SVG
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.PhotoLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the types of visual content libraries.
|
||||
/// </summary>
|
||||
public enum VisualContentType
|
||||
{
|
||||
/// <summary>
|
||||
/// A collection of photographs organized together.
|
||||
/// </summary>
|
||||
PhotoAlbum,
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.VideoLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the types of video content libraries.
|
||||
/// </summary>
|
||||
public enum VideoContentType
|
||||
{
|
||||
/// <summary>
|
||||
/// A series of related episodes broadcast on television or streaming platforms.
|
||||
/// </summary>
|
||||
TvShow,
|
||||
|
||||
/// <summary>
|
||||
/// A feature-length film produced for cinema or home viewing.
|
||||
/// </summary>
|
||||
Movie,
|
||||
|
||||
/// <summary>
|
||||
/// A collection of related films released in succession.
|
||||
/// </summary>
|
||||
FilmSeries,
|
||||
|
||||
/// <summary>
|
||||
/// A collection of related films, TV shows, and other media sharing a fictional universe.
|
||||
/// </summary>
|
||||
FilmFranchise,
|
||||
|
||||
/// <summary>
|
||||
/// A live musical performance recorded on video.
|
||||
/// </summary>
|
||||
Concert,
|
||||
|
||||
/// <summary>
|
||||
/// A non-fictional film or TV program presenting facts and information about a specific subject.
|
||||
/// </summary>
|
||||
Documentary,
|
||||
|
||||
/// <summary>
|
||||
/// An instructional video designed to teach a skill or provide information on a specific topic.
|
||||
/// </summary>
|
||||
Tutorial,
|
||||
|
||||
/// <summary>
|
||||
/// Privately recorded videos, often for personal use or sharing with friends and family.
|
||||
/// </summary>
|
||||
Personal,
|
||||
|
||||
/// <summary>
|
||||
/// Japanese animated productions, typically characterized by colorful graphics and vibrant characters.
|
||||
/// </summary>
|
||||
Anime,
|
||||
|
||||
/// <summary>
|
||||
/// Videos hosted on or originating from the YouTube platform.
|
||||
/// </summary>
|
||||
Youtube,
|
||||
|
||||
/// <summary>
|
||||
/// A short video, typically set to music, such as a music video or promotional clip.
|
||||
/// </summary>
|
||||
Videoclip,
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
namespace Lumina.Contracts.Enums.VideoLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the various sources of video ratings.
|
||||
/// </summary>
|
||||
public enum VideoRatingSource
|
||||
{
|
||||
/// <summary>
|
||||
/// Ratings provided by users of the Lumina media library.
|
||||
/// </summary>
|
||||
User,
|
||||
|
||||
/// <summary>
|
||||
/// Ratings sourced from IMDb (Internet Movie Database), an online database of information related to films, TV programs, and video games.
|
||||
/// </summary>
|
||||
Imdb,
|
||||
|
||||
/// <summary>
|
||||
/// Ratings obtained from TheTVDB, an open database for television shows, including episode information and user ratings.
|
||||
/// </summary>
|
||||
TheTvDb,
|
||||
|
||||
/// <summary>
|
||||
/// Ratings from The Movie Database (TMDb), a community-built movie and TV database.
|
||||
/// </summary>
|
||||
TheMovieDb,
|
||||
|
||||
/// <summary>
|
||||
/// Ratings from Rotten Tomatoes, a review-aggregation website for film and television.
|
||||
/// </summary>
|
||||
RottenTomatoes,
|
||||
}
|
||||
@@ -3,9 +3,10 @@
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<BaseOutputPath>$(SolutionDir)..\bin\server\</BaseOutputPath>
|
||||
<BaseOutputPath>$(SolutionDir)..\bin\api\</BaseOutputPath>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -13,6 +14,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Responses\WrittenContentLibrary\BookLibrary\" />
|
||||
<ProjectReference Include="..\Lumina.Domain\Lumina.Domain.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,26 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for storage models, enforces Id.
|
||||
/// </summary>
|
||||
public interface IStorageEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier of the entity.
|
||||
/// </summary>
|
||||
Guid Id { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The time and date when the entity was added.
|
||||
/// </summary>
|
||||
DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The time and date when the entity was updated.
|
||||
/// </summary>
|
||||
DateTime? Updated { get; set; }
|
||||
}
|
||||
@@ -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,206 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Models.Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Models.WrittenContentLibrary.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a book.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{Title}")]
|
||||
public class BookModel : IStorageEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the Id of the media item.
|
||||
/// </summary>
|
||||
public Guid Id { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the title of the media item.
|
||||
/// </summary>
|
||||
public string Title { get; init; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the original title of the media item.
|
||||
/// </summary>
|
||||
public string? OriginalTitle { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional description of the media item.
|
||||
/// </summary>
|
||||
public string? Description { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional original release date of the media item.
|
||||
/// </summary>
|
||||
public DateOnly? OriginalReleaseDate { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional original release year of the media item.
|
||||
/// This is useful when only the year of original release is known.
|
||||
/// </summary>
|
||||
public int? OriginalReleaseYear { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional re-release or reissue date of the media item.
|
||||
/// </summary>
|
||||
public DateOnly? ReReleaseDate { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional re-release or reissue year of the media item.
|
||||
/// </summary>
|
||||
public int? ReReleaseYear { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional country or region of release.
|
||||
/// </summary>
|
||||
public string? ReleaseCountry { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional release version or edition. (e.g. "Original", "Director's Cut", "2.0")
|
||||
/// </summary>
|
||||
public string? ReleaseVersion { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the ISO 639-1 two-letter language code.
|
||||
/// </summary>
|
||||
public string? LanguageCode { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the full name of the language in English.
|
||||
/// </summary>
|
||||
public string? LanguageName { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets an optional native name of the language.
|
||||
/// </summary>
|
||||
public string? LanguageNativeName { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional ISO 639-1 two-letter original language code.
|
||||
/// </summary>
|
||||
public string? OriginalLanguageCode { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional full name of the original language in English.
|
||||
/// </summary>
|
||||
public string? OriginalLanguageName { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets an optional native name of the original language.
|
||||
/// </summary>
|
||||
public string? OriginalLanguageNativeName { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of tags associated with the media item.
|
||||
/// </summary>
|
||||
public HashSet<TagModel> Tags { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of genres associated with the media item.
|
||||
/// </summary>
|
||||
public HashSet<GenreModel> Genres { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets the publisher of the written content.
|
||||
/// </summary>
|
||||
public string? Publisher { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the number of pages in the written content.
|
||||
/// </summary>
|
||||
public int? PageCount { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the format of the book (e.g., Hardcover, Paperback), if applicable.
|
||||
/// </summary>
|
||||
public string Format { get; init; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the edition of the book, if applicable.
|
||||
/// </summary>
|
||||
public string? Edition { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the volume or book number in the series, if applicable.
|
||||
/// </summary>
|
||||
public int? VolumeNumber { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the series id, if the book is part of a series.
|
||||
/// </summary>
|
||||
//public Guid? BookSeriesId { get; init; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the ASIN (Amazon Standard Identification Number) of the book.
|
||||
/// </summary>
|
||||
public string? ASIN { get; init; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Goodreads ID of the book.
|
||||
/// </summary>
|
||||
public string? GoodreadsId { get; init; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Library of Congress Control Number (LCCN) of the book.
|
||||
/// </summary>
|
||||
public string? LCCN { get; init; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the OCLC Number (WorldCat identifier) of the book.
|
||||
/// </summary>
|
||||
public string? OCLCNumber { get; init; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Open Library ID of the book.
|
||||
/// </summary>
|
||||
public string? OpenLibraryId { get; init; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the LibraryThing ID of the book.
|
||||
/// </summary>
|
||||
public string? LibraryThingId { get; init; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Google Books ID of the book.
|
||||
/// </summary>
|
||||
public string? GoogleBooksId { get; init; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Barnes & Noble ID of the book.
|
||||
/// </summary>
|
||||
public string? BarnesAndNobleId { get; init; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Apple Books ID of the book.
|
||||
/// </summary>
|
||||
public string? AppleBooksId { get; init; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of ISBN (International Standard Book Number) of the book.
|
||||
/// </summary>
|
||||
public List<IsbnModel> ISBNs { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of media contributors (actors, directors, etc) starring in this book.
|
||||
/// </summary>
|
||||
//public List<ContributorIdModel> ContributorIds { get; init; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of ratings for this book.
|
||||
/// </summary>
|
||||
public List<BookRatingModel> Ratings { get; init; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets the time and date when the entity was added.
|
||||
/// </summary>
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional time and date when the entity was updated.
|
||||
/// </summary>
|
||||
public DateTime? Updated { get; set; }
|
||||
}
|
||||
@@ -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
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace Lumina.Contracts.Requests.Authentication;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the request model for account password change.
|
||||
/// </summary>
|
||||
/// <param name="CurrentPassword">The username of the account.</param>
|
||||
/// <param name="CurrentPassword">The current password of the account.</param>
|
||||
/// <param name="NewPassword">The new password of the account.</param>
|
||||
/// <param name="NewPasswordConfirm">The confirmation of the new password of the account.</param>
|
||||
public record ChangePasswordRequest(
|
||||
string? Username,
|
||||
string? CurrentPassword,
|
||||
string? NewPassword,
|
||||
string? NewPasswordConfirm
|
||||
);
|
||||
@@ -0,0 +1,18 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.Authentication;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the request model for user authentication.
|
||||
/// </summary>
|
||||
/// <param name="Username">The username of the account to authenticate.</param>
|
||||
/// <param name="Password">The password of the account to authenticate.</param>
|
||||
/// <param name="TotpCode">The TOTP (Time-Based One-Time Password) of the account to authenticate.</param>
|
||||
[DebuggerDisplay("Username: {Username}")]
|
||||
public record LoginRequest(
|
||||
string? Username,
|
||||
string? Password,
|
||||
string? TotpCode = null
|
||||
);
|
||||
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.Authentication;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the request model for account password recovery.
|
||||
/// </summary>
|
||||
/// <param name="Username">The username of the account for which to recover the password.</param>
|
||||
/// <param name="TotpCode">The TOTP (Time-Based One-Time Password) of the account for which to recover the password.</param>
|
||||
[DebuggerDisplay("Username: {Username}")]
|
||||
public record RecoverPasswordRequest(
|
||||
string? Username,
|
||||
string? TotpCode
|
||||
);
|
||||
@@ -0,0 +1,20 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.Authentication;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the request model for user registration.
|
||||
/// </summary>
|
||||
/// <param name="Username">The desired username for the new account.</param>
|
||||
/// <param name="Password">The password for the new account.</param>
|
||||
/// <param name="PasswordConfirm">The confirmation of the entered password, used to ensure consistency.</param>
|
||||
/// <param name="Use2fa">Indicates whether two-factor authentication (2FA) should be enabled for the new account.</param>
|
||||
[DebuggerDisplay("Username: {Username}")]
|
||||
public record RegistrationRequest(
|
||||
string? Username = null,
|
||||
string? Password = null,
|
||||
string? PasswordConfirm = null,
|
||||
bool Use2fa = true
|
||||
);
|
||||
+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
|
||||
);
|
||||
@@ -0,0 +1,22 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.Common.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
|
||||
);
|
||||
+13
-11
@@ -1,12 +1,13 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Enums.BookLibrary;
|
||||
using Lumina.Contracts.Models.MediaContributors;
|
||||
using Lumina.Contracts.Models.WrittenContentLibrary;
|
||||
using Lumina.Contracts.Models.WrittenContentLibrary.BookLibrary;
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
|
||||
using Lumina.Domain.Common.Enums.BookLibrary;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.WrittenContentLibrary.BookLibrary;
|
||||
namespace Lumina.Contracts.Requests.MediaLibrary.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,
|
||||
WrittenContentMetadataDto? Metadata,
|
||||
BookFormat? Format,
|
||||
string? Edition,
|
||||
int? VolumeNumber,
|
||||
BookSeriesModel? Series,
|
||||
BookSeriesDto? 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<IsbnDto>? ISBNs,
|
||||
List<MediaContributorDto>? Contributors,
|
||||
List<BookRatingDto>? 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
|
||||
);
|
||||
@@ -0,0 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.Authentication;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the response model for an account password change request.
|
||||
/// </summary>
|
||||
/// <param name="IsPasswordChanged">Whether the password was changed or not.</param>
|
||||
[DebuggerDisplay("IsPasswordChanged: {IsPasswordChanged}")]
|
||||
public record ChangePasswordResponse(
|
||||
bool IsPasswordChanged
|
||||
);
|
||||
@@ -0,0 +1,21 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.Authentication;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the response model for user authentication.
|
||||
/// </summary>
|
||||
/// <param name="Id">The Id of the user to authenticate.</param>
|
||||
/// <param name="Username">The username of the user to authenticate.</param>
|
||||
/// <param name="Token">The authentication token used for subsequent requests.</param>
|
||||
/// <param name="UsesTotp">Whether the user uses 2FA authentication, or not.</param>
|
||||
[DebuggerDisplay("Username: {Username}")]
|
||||
public record LoginResponse(
|
||||
Guid Id,
|
||||
string Username,
|
||||
string Token,
|
||||
bool UsesTotp
|
||||
);
|
||||
@@ -0,0 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.Authentication;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the response model for an account password reset request.
|
||||
/// </summary>
|
||||
/// <param name="IsPasswordReset">Whether the password was reset or not.</param>
|
||||
[DebuggerDisplay("IsPasswordReset: {IsPasswordReset}")]
|
||||
public record RecoverPasswordResponse(
|
||||
bool IsPasswordReset
|
||||
);
|
||||
@@ -0,0 +1,19 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.Authentication;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the response model for user registration.
|
||||
/// </summary>
|
||||
/// <param name="Id">The Id of the user.</param>
|
||||
/// <param name="Username">The username of the user.</param>
|
||||
/// <param name="TotpSecret">The TOTP (Time-Based One-Time Password) secret used for two-factor authentication.</param>
|
||||
[DebuggerDisplay("Username: {Username}")]
|
||||
public record RegistrationResponse(
|
||||
Guid Id,
|
||||
string Username,
|
||||
string? TotpSecret
|
||||
);
|
||||
@@ -1,15 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Enums.FileSystem;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.FileManagement;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response containing the file system platform type.
|
||||
/// </summary>
|
||||
/// <param name="PlatformType">The returned file system platform type.</param>
|
||||
[DebuggerDisplay("{PlatformType}")]
|
||||
public record FileSystemTypeResponse(
|
||||
PlatformType PlatformType
|
||||
);
|
||||
@@ -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
|
||||
);
|
||||
+5
-5
@@ -1,15 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Enums.FileSystem;
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.Common.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.DTO.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<FileSystemItemDto> Items
|
||||
) : FileSystemItemDto(Path, Name, DateCreated, DateModified);
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.Common.Enums.FileSystem;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
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: {PlatformType}")]
|
||||
public record FileSystemTypeResponse(
|
||||
PlatformType PlatformType
|
||||
);
|
||||
+8
-8
@@ -1,10 +1,10 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Models.FileManagement;
|
||||
using Lumina.Contracts.DTO.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);
|
||||
) : FileSystemItemDto(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
|
||||
);
|
||||
+4
-4
@@ -1,17 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Enums.PhotoLibrary;
|
||||
using Lumina.Domain.Common.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
|
||||
);
|
||||
@@ -0,0 +1,29 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.Common.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
|
||||
);
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
|
||||
using Lumina.Domain.Common.Enums.BookLibrary;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.MediaLibrary.WrittenContentLibrary.BookLibrary.Books;
|
||||
|
||||
/// <summary>
|
||||
/// 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>
|
||||
/// <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>
|
||||
/// <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,
|
||||
WrittenContentMetadataDto Metadata,
|
||||
BookFormat? Format,
|
||||
string? Edition,
|
||||
int? VolumeNumber,
|
||||
BookSeriesDto? Series,
|
||||
string? ASIN,
|
||||
string? GoodreadsId,
|
||||
string? LCCN,
|
||||
string? OCLCNumber,
|
||||
string? OpenLibraryId,
|
||||
string? LibraryThingId,
|
||||
string? GoogleBooksId,
|
||||
string? BarnesAndNobleId,
|
||||
string? AppleBooksId,
|
||||
List<IsbnDto>? ISBNs,
|
||||
List<MediaContributorDto>? Contributors,
|
||||
List<BookRatingDto>? Ratings,
|
||||
DateTime Created,
|
||||
DateTime? Updated
|
||||
);
|
||||
@@ -0,0 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.UsersManagement;
|
||||
|
||||
/// </summary>
|
||||
/// Represents a response for verifying the initialization status of the application.
|
||||
/// </summary>
|
||||
/// <param name="IsInitialized">Indicates whether the application has been run before, and the super admin account has been created.</param>
|
||||
[DebuggerDisplay("IsInitialized: {IsInitialized}")]
|
||||
public record InitializationResponse(
|
||||
bool IsInitialized
|
||||
);
|
||||
@@ -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
|
||||
);
|
||||
Reference in new issue
Block a user