mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 20:01:10 +00:00
2.1 KiB
2.1 KiB
Lumina Domain
Common
Metadata
Genre
class Genre
{
Result<Genre> Create(string name);
}
{
"name": "SF"
}
Tag
class Tag
{
Result<Tag> Create(string name);
}
{
"name": "artificial intelligence"
}
Rating
Rating is the abstract base of the ratings of media elements. It carries the numeric value, its maximum and an optional vote count, but no factory of its own, because the concrete ratings of each media type derive from it and add their own source. The rating of the audio library context, AudioRating with its AudioRatingSource, is documented alongside the music library aggregate.
abstract class Rating
{
decimal Value { get; }
decimal MaxValue { get; }
Optional<int> VoteCount { get; }
decimal AsPercentage();
}
Mood
class Mood
{
Result<Mood> Create(string name);
}
{
"name": "dramatic"
}
Release Info
class ReleaseInfo
{
Result<ReleaseInfo> Create(Optional<DateOnly> originalReleaseDate, Optional<int> originalReleaseYear,
Optional<DateOnly> reReleaseDate, Optional<int> reReleaseYear, Optional<ReleaseCountry> releaseCountry, Optional<string> releaseVersion);
}
{
"originalReleaseDate": "2024-08-18",
"originalReleaseYear": 2024,
"reReleaseDate": "2024-08-18",
"reReleaseYear": 2024,
"releaseCountry": "JP",
"releaseVersion": "director's cut"
}
Language Info
class LanguageInfo
{
LanguageInfo Create(string languageCode, string languageName, Optional<string> nativeName);
}
{
"languageCode": "FR",
"languageName": "French",
"nativeName": "Française",
}