Moves enums to Domain Layer

This commit is contained in:
BinaryAlley committed 2024-11-03 20:12:21 +02:00
1 parent 46617db757
commit 786bdef4b5
131 files changed
+136 -135

No files matched your search

@@ -1,7 +1,7 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Entities.Common;
using Lumina.Contracts.Entities.UsersManagement;
using Lumina.Contracts.Enums.MediaLibrary;
using Lumina.Domain.Common.Enums.MediaLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
@@ -1,6 +1,6 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Entities.Common;
using Lumina.Contracts.Enums.BookLibrary;
using Lumina.Domain.Common.Enums.BookLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
@@ -1,6 +1,6 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Entities.Common;
using Lumina.Contracts.Enums.BookLibrary;
using Lumina.Domain.Common.Enums.BookLibrary;
using System.Diagnostics;
#endregion
@@ -1,5 +1,5 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Enums.BookLibrary;
using Lumina.Domain.Common.Enums.BookLibrary;
using System.Diagnostics;
#endregion
@@ -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,187 +0,0 @@
namespace Lumina.Contracts.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
}
@@ -1,12 +0,0 @@
namespace Lumina.Contracts.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,
}
@@ -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,
}
@@ -11,4 +11,8 @@
<ItemGroup>
<Compile Include="..\AssemblyInfo_Shared.cs" Link="Properties\AssemblyInfo_Shared.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Lumina.Domain\Lumina.Domain.csproj" />
</ItemGroup>
</Project>
@@ -1,5 +1,5 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Enums.MediaLibrary;
using Lumina.Domain.Common.Enums.MediaLibrary;
using System;
using System.Diagnostics;
#endregion
@@ -2,7 +2,7 @@
using Lumina.Contracts.Entities.MediaContributors;
using Lumina.Contracts.Entities.MediaLibrary.WrittenContentLibrary;
using Lumina.Contracts.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary;
using Lumina.Contracts.Enums.BookLibrary;
using Lumina.Domain.Common.Enums.BookLibrary;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
@@ -1,5 +1,5 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Enums.FileSystem;
using Lumina.Domain.Common.Enums.FileSystem;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
@@ -1,5 +1,5 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Enums.FileSystem;
using Lumina.Domain.Common.Enums.FileSystem;
using System.Diagnostics;
#endregion
@@ -1,5 +1,5 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Enums.PhotoLibrary;
using Lumina.Domain.Common.Enums.PhotoLibrary;
using System.Diagnostics;
#endregion
@@ -1,5 +1,5 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Enums.MediaLibrary;
using Lumina.Domain.Common.Enums.MediaLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
@@ -2,7 +2,7 @@
using Lumina.Contracts.Entities.MediaContributors;
using Lumina.Contracts.Entities.MediaLibrary.WrittenContentLibrary;
using Lumina.Contracts.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary;
using Lumina.Contracts.Enums.BookLibrary;
using Lumina.Domain.Common.Enums.BookLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;