mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 08:11:10 +00:00
eliminates region sections
This commit is contained in:
1 parent
705c02b90d
commit
405fc1ff9a
370 files changed
+47
-1618
No files matched your search
@@ -14,12 +14,9 @@ namespace Lumina.Domain.Common.ValueObjects.Metadata;
|
||||
[DebuggerDisplay("{Title}")]
|
||||
public abstract class BaseMetadata : ValueObject
|
||||
{
|
||||
#region ================================================================== FIELD MEMBERS ================================================================================
|
||||
private readonly List<Tag> _tags;
|
||||
private readonly List<Genre> _genres;
|
||||
#endregion
|
||||
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets the title of the media item.
|
||||
/// </summary>
|
||||
@@ -59,9 +56,7 @@ public abstract class BaseMetadata : ValueObject
|
||||
/// Gets the list of genres associated with the media item.
|
||||
/// </summary>
|
||||
public IReadOnlyCollection<Genre> Genres => _genres.AsReadOnly();
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BaseMetadata"/> class.
|
||||
/// </summary>
|
||||
@@ -93,9 +88,7 @@ public abstract class BaseMetadata : ValueObject
|
||||
Language = language;
|
||||
OriginalLanguage = originalLanguage;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <inheritdoc/>
|
||||
public override IEnumerable<object> GetEqualityComponents()
|
||||
{
|
||||
@@ -110,5 +103,4 @@ public abstract class BaseMetadata : ValueObject
|
||||
yield return Language;
|
||||
yield return OriginalLanguage;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -13,14 +13,11 @@ namespace Lumina.Domain.Common.ValueObjects.Metadata;
|
||||
[DebuggerDisplay("{Name}")]
|
||||
public class Genre : ValueObject
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets the name of the genre element of the media item.
|
||||
/// </summary>
|
||||
public string Name { get; }
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Genre"/> class.
|
||||
/// </summary>
|
||||
@@ -29,9 +26,7 @@ public class Genre : ValueObject
|
||||
{
|
||||
Name = name.Trim();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <summary>
|
||||
/// Creates a new instance of the <see cref="Genre"/> class.
|
||||
/// </summary>
|
||||
@@ -60,5 +55,4 @@ public class Genre : ValueObject
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -14,7 +14,6 @@ namespace Lumina.Domain.Common.ValueObjects.Metadata;
|
||||
[DebuggerDisplay("{LanguageCode}")]
|
||||
public class LanguageInfo : ValueObject
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets the ISO 639-1 two-letter language code.
|
||||
/// </summary>
|
||||
@@ -29,9 +28,7 @@ public class LanguageInfo : ValueObject
|
||||
/// Gets an optional native name of the language.
|
||||
/// </summary>
|
||||
public Optional<string> NativeName { get; private set; }
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="LanguageInfo"/> class.
|
||||
/// </summary>
|
||||
@@ -44,9 +41,7 @@ public class LanguageInfo : ValueObject
|
||||
LanguageName = languageName;
|
||||
NativeName = nativeName;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <summary>
|
||||
/// Creates a new instance of the <see cref="LanguageInfo"/> class.
|
||||
/// </summary>
|
||||
@@ -83,5 +78,4 @@ public class LanguageInfo : ValueObject
|
||||
{
|
||||
return $"{LanguageCode} - {LanguageName}";
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -12,7 +12,6 @@ namespace Lumina.Domain.Common.ValueObjects.Metadata;
|
||||
[DebuggerDisplay("{Value}/{MaxValue}")]
|
||||
public abstract class Rating : ValueObject
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets the numeric value of the rating.
|
||||
/// </summary>
|
||||
@@ -27,9 +26,7 @@ public abstract class Rating : ValueObject
|
||||
/// Gets the optional number of votes or reviews this rating is based on.
|
||||
/// </summary>
|
||||
public Optional<int> VoteCount { get; private set; }
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Rating"/> class.
|
||||
/// </summary>
|
||||
@@ -42,9 +39,7 @@ public abstract class Rating : ValueObject
|
||||
MaxValue = maxValue;
|
||||
VoteCount = voteCount;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <summary>
|
||||
/// Returns the rating as a percentage.
|
||||
/// </summary>
|
||||
@@ -53,5 +48,4 @@ public abstract class Rating : ValueObject
|
||||
{
|
||||
return Value / MaxValue * 100;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -15,7 +15,6 @@ namespace Lumina.Domain.Common.ValueObjects.Metadata;
|
||||
[DebuggerDisplay("{ReleaseYear}")]
|
||||
public class ReleaseInfo : ValueObject
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets the optional original release date of the media item.
|
||||
/// </summary>
|
||||
@@ -46,9 +45,7 @@ public class ReleaseInfo : ValueObject
|
||||
/// Gets the optional release version or edition. (e.g. "Original", "Director's Cut", "2.0")
|
||||
/// </summary>
|
||||
public Optional<string> ReleaseVersion { get; }
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ReleaseInfo"/> class.
|
||||
/// </summary>
|
||||
@@ -73,9 +70,7 @@ public class ReleaseInfo : ValueObject
|
||||
ReleaseCountry = releaseCountry;
|
||||
ReleaseVersion = releaseVersion;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <summary>
|
||||
/// Creates a new instance of the <see cref="ReleaseInfo"/> class.
|
||||
/// </summary>
|
||||
@@ -117,5 +112,4 @@ public class ReleaseInfo : ValueObject
|
||||
yield return ReleaseCountry;
|
||||
yield return ReleaseVersion;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -13,14 +13,11 @@ namespace Lumina.Domain.Common.ValueObjects.Metadata;
|
||||
[DebuggerDisplay("{Name}")]
|
||||
public class Tag : ValueObject
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets the name of the tag element of the media item.
|
||||
/// </summary>
|
||||
public string Name { get; }
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Tag"/> class.
|
||||
/// </summary>
|
||||
@@ -29,9 +26,7 @@ public class Tag : ValueObject
|
||||
{
|
||||
Name = name.Trim();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <summary>
|
||||
/// Creates a new instance of the <see cref="Tag"/> class.
|
||||
/// </summary>
|
||||
@@ -60,5 +55,4 @@ public class Tag : ValueObject
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in new issue
Block a user