mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 18:11:10 +00:00
Moves enums and errors to a shared kernel.
This commit is contained in:
1 parent
95be37602a
commit
76b9596a27
266 files changed
+393
-304
No files matched your search
@@ -0,0 +1,57 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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,
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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,
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.Enums.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for authorization permissions.
|
||||
/// </summary>
|
||||
public enum AuthorizationPermission
|
||||
{
|
||||
None = 0,
|
||||
CanViewUsers,
|
||||
CanDeleteUsers,
|
||||
CanRegisterUsers,
|
||||
CanCreateLibraries
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
//namespace Lumina.Domain.SharedKernel.Common.Enums.Authorization;
|
||||
|
||||
///// <summary>
|
||||
///// Enumeration for authorization roles.
|
||||
///// </summary>
|
||||
//public enum AuthorizationRole
|
||||
//{
|
||||
// None = 0,
|
||||
// Admin = 1
|
||||
//}
|
||||
@@ -0,0 +1,67 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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>
|
||||
/// Rating sourced from Open Library.
|
||||
/// </summary>
|
||||
OpenLibrary,
|
||||
|
||||
/// <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,
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.Enums.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the status of the metadata enrichment of a book.
|
||||
/// </summary>
|
||||
public enum MetadataStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// The metadata of the book has not been enriched yet.
|
||||
/// </summary>
|
||||
Pending,
|
||||
|
||||
/// <summary>
|
||||
/// The metadata of the book has been successfully enriched.
|
||||
/// </summary>
|
||||
Enriched,
|
||||
|
||||
/// <summary>
|
||||
/// The metadata enrichment of the book failed.
|
||||
/// </summary>
|
||||
Failed
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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,
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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,
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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,
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the statuses of the files processed during a media library scan.
|
||||
/// </summary>
|
||||
public enum LibraryScanFileStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// The file contents have been changed.
|
||||
/// </summary>
|
||||
Modified,
|
||||
|
||||
/// <summary>
|
||||
/// The file has been added.
|
||||
/// </summary>
|
||||
New,
|
||||
|
||||
/// <summary>
|
||||
/// The file has been deleted.
|
||||
/// </summary>
|
||||
Deleted
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the statuses of the jobs ran on media libraries scan.
|
||||
/// </summary>
|
||||
public enum LibraryScanJobStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Job is still pending.
|
||||
/// </summary>
|
||||
Pending,
|
||||
|
||||
/// <summary>
|
||||
/// Job is running.
|
||||
/// </summary>
|
||||
Running,
|
||||
|
||||
/// <summary>
|
||||
/// Job has finished successfully.
|
||||
/// </summary>
|
||||
Completed,
|
||||
|
||||
/// <summary>
|
||||
/// Job has been canceled.
|
||||
/// </summary>
|
||||
Canceled,
|
||||
|
||||
/// <summary>
|
||||
/// Job has failed.
|
||||
/// </summary>
|
||||
Failed
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the types of libraries.
|
||||
/// </summary>
|
||||
public enum LibraryType
|
||||
{
|
||||
/// <summary>
|
||||
/// Traditional printed books in physical format.
|
||||
/// </summary>
|
||||
Book,
|
||||
|
||||
/// <summary>
|
||||
/// Digital books in electronic format (e.g., PDF, EPUB, MOBI).
|
||||
/// </summary>
|
||||
EBook,
|
||||
|
||||
/// <summary>
|
||||
/// Comic books in digital or physical format.
|
||||
/// </summary>
|
||||
ComicBook,
|
||||
|
||||
/// <summary>
|
||||
/// Periodical publications containing articles and illustrations.
|
||||
/// </summary>
|
||||
Magazine,
|
||||
|
||||
/// <summary>
|
||||
/// Periodical publication containing news.
|
||||
/// </summary>
|
||||
Newspaper,
|
||||
|
||||
/// <summary>
|
||||
/// Japanese-style comics and graphic novels.
|
||||
/// </summary>
|
||||
Manga,
|
||||
|
||||
/// <summary>
|
||||
/// Extended comic-format narratives, typically containing a complete story.
|
||||
/// </summary>
|
||||
GraphicNovel,
|
||||
|
||||
/// <summary>
|
||||
/// Scholarly articles and research papers.
|
||||
/// </summary>
|
||||
AcademicPaper,
|
||||
|
||||
/// <summary>
|
||||
/// Musical notation and scores.
|
||||
/// </summary>
|
||||
SheetMusic,
|
||||
|
||||
/// <summary>
|
||||
/// Television series and episodic content.
|
||||
/// </summary>
|
||||
TvShow,
|
||||
|
||||
/// <summary>
|
||||
/// Feature-length films and motion pictures.
|
||||
/// </summary>
|
||||
Movie,
|
||||
|
||||
/// <summary>
|
||||
/// Non-fiction films presenting factual information.
|
||||
/// </summary>
|
||||
Documentary,
|
||||
|
||||
/// <summary>
|
||||
/// Japanese animation series and films.
|
||||
/// </summary>
|
||||
Anime,
|
||||
|
||||
/// <summary>
|
||||
/// Recorded live music performances and concerts.
|
||||
/// </summary>
|
||||
ConcertVideo,
|
||||
|
||||
/// <summary>
|
||||
/// Educational and instructional videos.
|
||||
/// </summary>
|
||||
TutorialVideo,
|
||||
|
||||
/// <summary>
|
||||
/// Personally recorded videos and family footage.
|
||||
/// </summary>
|
||||
HomeVideo,
|
||||
|
||||
/// <summary>
|
||||
/// Videos sourced from YouTube platform.
|
||||
/// </summary>
|
||||
YouTubeVideo,
|
||||
|
||||
/// <summary>
|
||||
/// Professional or amateur music video productions.
|
||||
/// </summary>
|
||||
MusicVideo,
|
||||
|
||||
/// <summary>
|
||||
/// Videos recorded during live performances or events.
|
||||
/// </summary>
|
||||
LiveRecordingVideo,
|
||||
|
||||
/// <summary>
|
||||
/// Recorded conversations and Q&A sessions in video format.
|
||||
/// </summary>
|
||||
InterviewVideo,
|
||||
|
||||
/// <summary>
|
||||
/// Videos of musical performances covering other artists' work.
|
||||
/// </summary>
|
||||
CoverSongVideo,
|
||||
|
||||
/// <summary>
|
||||
/// Video format podcasts and episodic content.
|
||||
/// </summary>
|
||||
PodcastVideo,
|
||||
|
||||
/// <summary>
|
||||
/// Audio recordings of musical content.
|
||||
/// </summary>
|
||||
Music,
|
||||
|
||||
/// <summary>
|
||||
/// Narrated books in audio format.
|
||||
/// </summary>
|
||||
Audiobook,
|
||||
|
||||
/// <summary>
|
||||
/// Audio recordings from live performances or events.
|
||||
/// </summary>
|
||||
LiveRecordingAudio,
|
||||
|
||||
/// <summary>
|
||||
/// Recorded conversations and Q&A sessions in audio format.
|
||||
/// </summary>
|
||||
InterviewAudio,
|
||||
|
||||
/// <summary>
|
||||
/// Audio recordings of musical performances covering other artists' work.
|
||||
/// </summary>
|
||||
CoverSongAudio,
|
||||
|
||||
/// <summary>
|
||||
/// Modified or reinterpreted versions of original musical recordings.
|
||||
/// </summary>
|
||||
Remix,
|
||||
|
||||
/// <summary>
|
||||
/// Audio clips used for sound design and production.
|
||||
/// </summary>
|
||||
SoundEffect,
|
||||
|
||||
/// <summary>
|
||||
/// Audio format podcasts and episodic content.
|
||||
/// </summary>
|
||||
PodcastAudio,
|
||||
|
||||
/// <summary>
|
||||
/// Digital images and photographs.
|
||||
/// </summary>
|
||||
Photo,
|
||||
|
||||
/// <summary>
|
||||
/// Curated sequences of media items.
|
||||
/// </summary>
|
||||
Playlist,
|
||||
|
||||
/// <summary>
|
||||
/// Grouped sets of related media items.
|
||||
/// </summary>
|
||||
Collection,
|
||||
|
||||
/// <summary>
|
||||
/// Text files containing dialogue translations for video content.
|
||||
/// </summary>
|
||||
Subtitles,
|
||||
|
||||
/// <summary>
|
||||
/// Text files containing words and timing for musical content.
|
||||
/// </summary>
|
||||
Lyrics,
|
||||
|
||||
/// <summary>
|
||||
/// A collection of media that does not fit into any other category.
|
||||
/// </summary>
|
||||
Other
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
|
||||
/// <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,
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.Enums.PhotoLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the types of visual content libraries.
|
||||
/// </summary>
|
||||
public enum VisualContentType
|
||||
{
|
||||
/// <summary>
|
||||
/// A collection of photographs organized together.
|
||||
/// </summary>
|
||||
PhotoAlbum,
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.Enums.Plugins;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the load status of a plugin.
|
||||
/// </summary>
|
||||
public enum PluginLoadStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// The plugin was loaded successfully.
|
||||
/// </summary>
|
||||
Loaded,
|
||||
|
||||
/// <summary>
|
||||
/// The plugin failed to load.
|
||||
/// </summary>
|
||||
FailedToLoad
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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,
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.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,
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.SharedKernel.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// File management error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class FileSystemManagement
|
||||
{
|
||||
public static Error ParentNodeCannotBeNull => Error.Failure(description: nameof(ParentNodeCannotBeNull));
|
||||
public static Error PathMustBeMaximum260CharactersLong => Error.Failure(description: nameof(PathMustBeMaximum260CharactersLong));
|
||||
public static Error FileCopyError => Error.Failure(description: nameof(FileCopyError));
|
||||
public static Error FileMoveError => Error.Failure(description: nameof(FileMoveError));
|
||||
public static Error DirectoryCopyError => Error.Failure(description: nameof(DirectoryCopyError));
|
||||
public static Error DirectoryMoveError => Error.Failure(description: nameof(DirectoryMoveError));
|
||||
public static Error FileNotFound => Error.NotFound(description: nameof(FileNotFound));
|
||||
public static Error InvalidPath => Error.Validation(description: nameof(InvalidPath));
|
||||
public static Error PathCannotBeEmpty => Error.Validation(description: nameof(PathCannotBeEmpty));
|
||||
public static Error ExtensionCannotBeEmpty => Error.Validation(description: nameof(ExtensionCannotBeEmpty));
|
||||
public static Error StreamIdCannotBeEmpty => Error.Validation(description: nameof(StreamIdCannotBeEmpty));
|
||||
public static Error CodecCannotBeEmpty => Error.Validation(description: nameof(CodecCannotBeEmpty));
|
||||
public static Error BitrateMustBeAPositiveNumber => Error.Validation(description: nameof(BitrateMustBeAPositiveNumber));
|
||||
public static Error CannotNavigateUp => Error.Failure(description: nameof(CannotNavigateUp));
|
||||
public static Error NameCannotBeEmpty => Error.Validation(description: nameof(NameCannotBeEmpty));
|
||||
public static Error FileAlreadyExists => Error.Conflict(description: nameof(FileAlreadyExists));
|
||||
public static Error DirectoryNotFound => Error.NotFound(description: nameof(DirectoryNotFound));
|
||||
public static Error DirectoryAlreadyExists => Error.Conflict(description: nameof(DirectoryAlreadyExists));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.SharedKernel.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Media Library error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class Library
|
||||
{
|
||||
public static Error CannotScanLockedLibrary => Error.Forbidden(description: nameof(CannotScanLockedLibrary));
|
||||
public static Error CannotScanDisabledLibrary => Error.Forbidden(description: nameof(CannotScanDisabledLibrary));
|
||||
public static Error LibraryIdCannotBeEmpty => Error.Validation(description: nameof(LibraryIdCannotBeEmpty));
|
||||
public static Error LibraryAlreadyExists => Error.Conflict(description: nameof(LibraryAlreadyExists));
|
||||
public static Error LibraryNotFound => Error.NotFound(description: nameof(LibraryNotFound));
|
||||
public static Error LibraryTypeCannotBeNull => Error.Validation(description: nameof(LibraryTypeCannotBeNull));
|
||||
public static Error CoverFileMustBeAnImage => Error.Validation(description: nameof(CoverFileMustBeAnImage));
|
||||
public static Error UnknownLibraryType => Error.Unexpected(description: nameof(UnknownLibraryType));
|
||||
public static Error PathsListCannotBeNull => Error.Validation(description: nameof(PathsListCannotBeNull));
|
||||
public static Error PathsListCannotBeEmpty => Error.Validation(description: nameof(PathsListCannotBeEmpty));
|
||||
public static Error TitleCannotBeEmpty => Error.Validation(description: nameof(TitleCannotBeEmpty));
|
||||
public static Error TitleMustBeMaximum255CharactersLong => Error.Validation(description: nameof(TitleMustBeMaximum255CharactersLong));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.SharedKernel.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Media Library Scan error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class LibraryScanning
|
||||
{
|
||||
public static Error LibraryScanIdCannotBeEmpty => Error.Validation(description: nameof(LibraryScanIdCannotBeEmpty));
|
||||
public static Error CanOnlyStartPendingScans => Error.Forbidden(description: nameof(CanOnlyStartPendingScans));
|
||||
public static Error CanOnlyCompleteRunningScans => Error.Forbidden(description: nameof(CanOnlyCompleteRunningScans));
|
||||
public static Error CanOnlyCancelRunningScans => Error.Forbidden(description: nameof(CanOnlyCancelRunningScans));
|
||||
public static Error CanOnlyFailRunningScans => Error.Forbidden(description: nameof(CanOnlyFailRunningScans));
|
||||
public static Error ScanIdCannotBeEmpty => Error.Validation(description: nameof(ScanIdCannotBeEmpty));
|
||||
public static Error LibraryScanAlreadyExists => Error.Conflict(description: nameof(LibraryScanAlreadyExists));
|
||||
public static Error LibraryAlreadyBeingScanned => Error.Forbidden(description: nameof(LibraryAlreadyBeingScanned));
|
||||
public static Error LibraryScanNotFound => Error.NotFound(description: nameof(LibraryScanNotFound));
|
||||
public static Error TotalScanJobItemsCountMustBePositive => Error.Validation(description: nameof(TotalScanJobItemsCountMustBePositive));
|
||||
public static Error TotalScanJobsCountMustBePositive => Error.Validation(description: nameof(TotalScanJobsCountMustBePositive));
|
||||
public static Error CompletedScanJobItemsCountMustBePositive => Error.Validation(description: nameof(CompletedScanJobItemsCountMustBePositive));
|
||||
public static Error CompletedScanJobsCountMustBePositive => Error.Validation(description: nameof(CompletedScanJobsCountMustBePositive));
|
||||
public static Error CompletedScanJobItemsCountCantExceedTotalScanJobItemsCount => Error.Validation(description: nameof(CompletedScanJobItemsCountCantExceedTotalScanJobItemsCount));
|
||||
public static Error CompletedScanJobsCountCantExceedTotalScanJobsCount => Error.Validation(description: nameof(CompletedScanJobsCountCantExceedTotalScanJobsCount));
|
||||
public static Error ScanJobCurrentOperationCannotBeEmpty => Error.Validation(description: nameof(ScanJobCurrentOperationCannotBeEmpty));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.SharedKernel.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Media contributor error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class MediaContributor
|
||||
{
|
||||
public static Error ContributorsListCannotBeNull => Error.Validation(description: nameof(ContributorsListCannotBeNull));
|
||||
public static Error ContributorNameCannotBeEmpty => Error.Validation(description: nameof(ContributorNameCannotBeEmpty));
|
||||
public static Error ContributorDisplayNameCannotBeEmpty => Error.Validation(description: nameof(ContributorDisplayNameCannotBeEmpty));
|
||||
public static Error ContributorDisplayNameMustBeMaximum100CharactersLong => Error.Validation(description: nameof(ContributorDisplayNameMustBeMaximum100CharactersLong));
|
||||
public static Error ContributorLegalNameMustBeMaximum100CharactersLong => Error.Validation(description: nameof(ContributorLegalNameMustBeMaximum100CharactersLong));
|
||||
public static Error RoleNameCannotBeEmpty => Error.Validation(description: nameof(RoleNameCannotBeEmpty));
|
||||
public static Error RoleNameMustBeMaximum50CharactersLong => Error.Validation(description: nameof(RoleNameMustBeMaximum50CharactersLong));
|
||||
public static Error RoleCategoryCannotBeEmpty => Error.Validation(description: nameof(RoleCategoryCannotBeEmpty));
|
||||
public static Error RoleCategoryMustBeMaximum50CharactersLong => Error.Validation(description: nameof(RoleCategoryMustBeMaximum50CharactersLong));
|
||||
public static Error ContributorRoleCannotBeNull => Error.Validation(description: nameof(ContributorRoleCannotBeNull));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.SharedKernel.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Metadata error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class Metadata
|
||||
{
|
||||
public static Error MetadataCannotBeNull => Error.Validation(description: nameof(MetadataCannotBeNull));
|
||||
public static Error TitleCannotBeEmpty => Error.Validation(description: nameof(TitleCannotBeEmpty));
|
||||
public static Error TitleMustBeMaximum255CharactersLong => Error.Validation(description: nameof(TitleMustBeMaximum255CharactersLong));
|
||||
public static Error OriginalTitleMustBeMaximum255CharactersLong => Error.Validation(description: nameof(OriginalTitleMustBeMaximum255CharactersLong));
|
||||
public static Error DescriptionMustBeMaximum2000CharactersLong => Error.Validation(description: nameof(DescriptionMustBeMaximum2000CharactersLong));
|
||||
public static Error GenresListCannotBeNull => Error.Validation(description: nameof(GenresListCannotBeNull));
|
||||
public static Error GenreNameCannotBeEmpty => Error.Validation(description: nameof(GenreNameCannotBeEmpty));
|
||||
public static Error GenreNameMustBeMaximum50CharactersLong => Error.Validation(description: nameof(GenreNameMustBeMaximum50CharactersLong));
|
||||
public static Error TagsListCannotBeNull => Error.Validation(description: nameof(TagsListCannotBeNull));
|
||||
public static Error TagNameCannotBeEmpty => Error.Validation(description: nameof(TagNameCannotBeEmpty));
|
||||
public static Error TagNameMustBeMaximum50CharactersLong => Error.Validation(description: nameof(TagNameMustBeMaximum50CharactersLong));
|
||||
public static Error LanguageCodeCannotBeEmpty => Error.Validation(description: nameof(LanguageCodeCannotBeEmpty));
|
||||
public static Error LanguageNameCannotBeEmpty => Error.Validation(description: nameof(LanguageNameCannotBeEmpty));
|
||||
public static Error LanguageCodeMustBe2CharactersLong => Error.Validation(description: nameof(LanguageCodeMustBe2CharactersLong));
|
||||
public static Error LanguageNameMustBeMaximum50CharactersLong => Error.Validation(description: nameof(LanguageNameMustBeMaximum50CharactersLong));
|
||||
public static Error LanguageNativeNameMustBeMaximum50CharactersLong => Error.Validation(description: nameof(LanguageNativeNameMustBeMaximum50CharactersLong));
|
||||
public static Error OriginalReleaseYearMustBeBetween1And9999 => Error.Validation(description: nameof(OriginalReleaseYearMustBeBetween1And9999));
|
||||
public static Error ReReleaseYearMustBeBetween1And9999 => Error.Validation(description: nameof(ReReleaseYearMustBeBetween1And9999));
|
||||
public static Error ReReleaseYearCannotBeEarlierThanOriginalReleaseYear => Error.Validation(description: nameof(ReReleaseYearCannotBeEarlierThanOriginalReleaseYear));
|
||||
public static Error CountryCodeMustBe2CharactersLong => Error.Validation(description: nameof(CountryCodeMustBe2CharactersLong));
|
||||
public static Error ReleaseVersionMustBeMaximum50CharactersLong => Error.Validation(description: nameof(ReleaseVersionMustBeMaximum50CharactersLong));
|
||||
public static Error OriginalReleaseDateAndYearMustMatch => Error.Validation(description: nameof(OriginalReleaseDateAndYearMustMatch));
|
||||
public static Error ReReleaseDateAndYearMustMatch => Error.Validation(description: nameof(ReReleaseDateAndYearMustMatch));
|
||||
public static Error ReReleaseDateCannotBeEarlierThanOriginalReleaseDate => Error.Validation(description: nameof(ReReleaseDateCannotBeEarlierThanOriginalReleaseDate));
|
||||
public static Error ReleaseInfoCannotBeNull => Error.Validation(description: nameof(ReleaseInfoCannotBeNull));
|
||||
public static Error RatingValueMustBePositive => Error.Validation(description: nameof(RatingValueMustBePositive));
|
||||
public static Error RatingMaxValueMustBePositive => Error.Validation(description: nameof(RatingMaxValueMustBePositive));
|
||||
public static Error RatingValueCannotBeGreaterThanMaxValue => Error.Validation(description: nameof(RatingValueCannotBeGreaterThanMaxValue));
|
||||
public static Error RatingVoteCountMustBePositive => Error.Validation(description: nameof(RatingVoteCountMustBePositive));
|
||||
public static Error RatingsListCannotBeNull => Error.Validation(description: nameof(RatingsListCannotBeNull));
|
||||
public static Error InvalidIsoCode => Error.Validation(description: nameof(InvalidIsoCode));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.SharedKernel.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Domain permission related error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class Permission
|
||||
{
|
||||
public static Error UnauthorizedAccess => Error.Failure(description: nameof(UnauthorizedAccess));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.SharedKernel.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Plugin error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class Plugins
|
||||
{
|
||||
public static Error PluginNotFound => Error.NotFound(description: nameof(PluginNotFound));
|
||||
public static Error PluginIdCannotBeEmpty => Error.Validation(description: nameof(PluginIdCannotBeEmpty));
|
||||
public static Error PluginSettingsCannotBeNull => Error.Validation(description: nameof(PluginSettingsCannotBeNull));
|
||||
public static Error LibraryIdCannotBeEmpty => Error.Validation(description: nameof(LibraryIdCannotBeEmpty));
|
||||
public static Error PluginIdsListCannotBeNull => Error.Validation(description: nameof(PluginIdsListCannotBeNull));
|
||||
public static Error PluginIdsListCannotBeEmpty => Error.Validation(description: nameof(PluginIdsListCannotBeEmpty));
|
||||
public static Error LibraryMetadataProviderConfigurationNotFound => Error.NotFound(description: nameof(LibraryMetadataProviderConfigurationNotFound));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.SharedKernel.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Domain thumbnails related error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class Thumbnails
|
||||
{
|
||||
public static Error NoThumbnail => Error.Failure(description: nameof(NoThumbnail));
|
||||
public static Error ImageQualityMustBeBetweenZeroAndOneHundred => Error.Validation(description: nameof(ImageQualityMustBeBetweenZeroAndOneHundred));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.SharedKernel.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Users error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class Users
|
||||
{
|
||||
public static Error UserAlreadyExists => Error.Conflict(description: nameof(UserAlreadyExists));
|
||||
public static Error UserDoesNotExist => Error.NotFound(description: nameof(UserDoesNotExist));
|
||||
public static Error UserIdCannotBeEmpty => Error.Validation(description: nameof(UserIdCannotBeEmpty));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.SharedKernel.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Written content error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class WrittenContent
|
||||
{
|
||||
public static Error BookAlreadyExists => Error.Conflict(description: nameof(BookAlreadyExists));
|
||||
public static Error IsbnValueCannotBeEmpty => Error.Validation(description: nameof(IsbnValueCannotBeEmpty));
|
||||
public static Error IsbnListCannotBeNull => Error.Validation(description: nameof(IsbnListCannotBeNull));
|
||||
public static Error InvalidIsbn10Format => Error.Validation(description: nameof(InvalidIsbn10Format));
|
||||
public static Error InvalidIsbn13Format => Error.Validation(description: nameof(InvalidIsbn13Format));
|
||||
public static Error UnknownIsbnFormat => Error.Unexpected(description: nameof(UnknownIsbnFormat));
|
||||
public static Error TheBookIsAlreadyInTheSeries => Error.Forbidden(description: nameof(TheBookIsAlreadyInTheSeries));
|
||||
public static Error TheBookIsNotInTheSeries => Error.Forbidden(description: nameof(TheBookIsNotInTheSeries));
|
||||
public static Error AsinMustBe10CharactersLong => Error.Validation(description: nameof(AsinMustBe10CharactersLong));
|
||||
public static Error GoodreadsIdMustBeNumeric => Error.Validation(description: nameof(GoodreadsIdMustBeNumeric));
|
||||
public static Error InvalidLccnFormat => Error.Validation(description: nameof(InvalidLccnFormat));
|
||||
public static Error InvalidOclcFormat => Error.Validation(description: nameof(InvalidOclcFormat));
|
||||
public static Error InvalidOpenLibraryId => Error.Validation(description: nameof(InvalidOpenLibraryId));
|
||||
public static Error LibraryThingIdMustBeMaximum50CharactersLong => Error.Validation(description: nameof(LibraryThingIdMustBeMaximum50CharactersLong));
|
||||
public static Error GoogleBooksIdMustBe12CharactersLong => Error.Validation(description: nameof(GoogleBooksIdMustBe12CharactersLong));
|
||||
public static Error InvalidGoogleBooksIdFormat => Error.Validation(description: nameof(InvalidGoogleBooksIdFormat));
|
||||
public static Error BarnesAndNoblesIdMustBe10CharactersLong => Error.Validation(description: nameof(BarnesAndNoblesIdMustBe10CharactersLong));
|
||||
public static Error InvalidBarnesAndNoblesIdFormat => Error.Validation(description: nameof(InvalidBarnesAndNoblesIdFormat));
|
||||
public static Error InvalidAppleBooksIdFormat => Error.Validation(description: nameof(InvalidAppleBooksIdFormat));
|
||||
public static Error PublisherMustBeMaximum100CharactersLong => Error.Validation(description: nameof(PublisherMustBeMaximum100CharactersLong));
|
||||
public static Error PageCountMustBeGreaterThanZero => Error.Validation(description: nameof(PageCountMustBeGreaterThanZero));
|
||||
public static Error UnknownBookFormat => Error.Validation(description: nameof(UnknownBookFormat));
|
||||
public static Error EditionMustBeMaximum50CharactersLong => Error.Validation(description: nameof(EditionMustBeMaximum50CharactersLong));
|
||||
public static Error VolumeNumberMustBeGreaterThanZero => Error.Validation(description: nameof(VolumeNumberMustBeGreaterThanZero));
|
||||
public static Error BookLibraryCannotBeNull => Error.Validation(description: nameof(BookLibraryCannotBeNull));
|
||||
public static Error BookPathCannotBeEmpty => Error.Validation(description: nameof(BookPathCannotBeEmpty));
|
||||
public static Error BookNotFound => Error.NotFound(description: nameof(BookNotFound));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<BaseOutputPath>$(SolutionDir)..\bin\api\</BaseOutputPath>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\AssemblyInfo_Shared.cs" Link="Properties\AssemblyInfo_Shared.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ErrorOr" Version="2.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in new issue
Block a user