mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 18:11:10 +00:00
Replaces MVC with FastEndpoints in Lumina.Presentation.Api
This commit is contained in:
1 parent
b1a20716df
commit
c7b8bc2f1c
519 files changed
+15329
-8539
No files matched your search
@@ -23,12 +23,12 @@ public abstract class BaseMetadata : ValueObject
|
||||
public string Title { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the original title of the media item.
|
||||
/// Gets the original title of the media item, if applicable.
|
||||
/// </summary>
|
||||
public Optional<string> OriginalTitle { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional description of the media item.
|
||||
/// Gets the optional description of the media item, if applicable.
|
||||
/// </summary>
|
||||
public Optional<string> Description { get; private set; }
|
||||
|
||||
@@ -38,12 +38,12 @@ public abstract class BaseMetadata : ValueObject
|
||||
public ReleaseInfo ReleaseInfo { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional language of the media item.
|
||||
/// Gets the optional language of the media item, if applicable.
|
||||
/// </summary>
|
||||
public Optional<LanguageInfo> Language { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional original language of the media item.
|
||||
/// Gets the optional original language of the media item, if applicable.
|
||||
/// </summary>
|
||||
public Optional<LanguageInfo> OriginalLanguage { get; private set; }
|
||||
|
||||
@@ -61,13 +61,13 @@ public abstract class BaseMetadata : ValueObject
|
||||
/// Initializes a new instance of the <see cref="BaseMetadata"/> class.
|
||||
/// </summary>
|
||||
/// <param name="title">The title of the element to which this metadata object belongs to.</param>
|
||||
/// <param name="originalTitle">The optional original title of the element to which this metadata object belongs to.</param>
|
||||
/// <param name="description">The optional description of the element to which this metadata object belongs to.</param>
|
||||
/// <param name="originalTitle">The optional original title of the element to which this metadata object belongs to, if applicable.</param>
|
||||
/// <param name="description">The optional description of the element to which this metadata object belongs to, if applicable.</param>
|
||||
/// <param name="releaseInfo">The optional release information of the media item.</param>
|
||||
/// <param name="genres">The list of genres of the element to which this metadata object belongs to.</param>
|
||||
/// <param name="tags">The list of tags of the element to which this metadata object belongs to.</param>
|
||||
/// <param name="language">The optional language of the element to which this metadata object belongs to.</param>
|
||||
/// <param name="originalLanguage">The optional original language of the element to which this metadata object belongs to.</param>
|
||||
/// <param name="language">The optional language of the element to which this metadata object belongs to, if applicable.</param>
|
||||
/// <param name="originalLanguage">The optional original language of the element to which this metadata object belongs to, if applicable.</param>
|
||||
/// <exception cref="ArgumentNullException">Thrown when the <see cref="title"/> value is <see langword="null"/></exception>
|
||||
protected BaseMetadata(
|
||||
string title,
|
||||
@@ -103,4 +103,4 @@ public abstract class BaseMetadata : ValueObject
|
||||
yield return Language;
|
||||
yield return OriginalLanguage;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@ public class Genre : ValueObject
|
||||
/// <returns>
|
||||
/// An <see cref="ErrorOr{TValue}"/> containing either a successfully created <see cref="Genre"/>, or an error message.
|
||||
/// </returns>
|
||||
public static ErrorOr<Genre> Create(string name)
|
||||
public static ErrorOr<Genre> Create(string? name)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(name))
|
||||
return Errors.Errors.Metadata.GenreNameCannotBeEmpty;
|
||||
|
||||
@@ -51,7 +51,7 @@ public class LanguageInfo : ValueObject
|
||||
/// <returns>
|
||||
/// An <see cref="ErrorOr{TValue}"/> containing either a successfully created <see cref="LanguageInfo"/>, or an error message.
|
||||
/// </returns>
|
||||
public static ErrorOr<LanguageInfo> Create(string languageCode, string languageName, Optional<string> nativeName)
|
||||
public static ErrorOr<LanguageInfo> Create(string? languageCode, string? languageName, Optional<string> nativeName)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(languageCode))
|
||||
return Errors.Errors.Metadata.LanguageCodeCannotBeEmpty;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class Tag : ValueObject
|
||||
/// <returns>
|
||||
/// An <see cref="ErrorOr{TValue}"/> containing either a successfully created <see cref="Tag"/>, or an error message.
|
||||
/// </returns>
|
||||
public static ErrorOr<Tag> Create(string name)
|
||||
public static ErrorOr<Tag> Create(string? name)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(name))
|
||||
return Errors.Errors.Metadata.TagNameCannotBeEmpty;
|
||||
|
||||
Reference in new issue
Block a user