mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 00:11:10 +00:00
Refactors the book, artist, and album slices across the stack
This commit is contained in:
1 parent
8aaf9fe64e
commit
ea6eb9f796
439 files changed
+28235
-3156
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.AudioLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the rating of an audio media element.
|
||||
/// </summary>
|
||||
/// <param name="Value">The rating value of the audio media element.</param>
|
||||
/// <param name="MaxValue">The maximum possible rating value of the audio media element.</param>
|
||||
/// <param name="Source">The source of the audio rating (e.g., a specific website or platform).</param>
|
||||
/// <param name="VoteCount">The number of votes that contributed to the audio rating.</param>
|
||||
[DebuggerDisplay("{Value}/{MaxValue}")]
|
||||
public record AudioRatingDto(
|
||||
decimal? Value,
|
||||
decimal? MaxValue,
|
||||
AudioRatingSource? Source,
|
||||
int? VoteCount
|
||||
) : RatingDto(Value, MaxValue, VoteCount);
|
||||
@@ -0,0 +1,40 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the metadata of an album.
|
||||
/// </summary>
|
||||
/// <param name="Title">The title of the album. Required.</param>
|
||||
/// <param name="OriginalTitle">The original title of the album, if different from the current title. Optional.</param>
|
||||
/// <param name="Description">A brief description or summary of the album. Optional.</param>
|
||||
/// <param name="ReleaseInfo">The release information, including release date and other relevant details. Required.</param>
|
||||
/// <param name="Language">The language of the album. Optional.</param>
|
||||
/// <param name="OriginalLanguage">The original language of the album, if it has been translated. Optional.</param>
|
||||
/// <param name="Tags">The list of tags that further describe or categorize the album. Required.</param>
|
||||
/// <param name="Genres">The list of genres associated with the album. Required.</param>
|
||||
/// <param name="ReleaseType">The type of the release. Optional.</param>
|
||||
/// <param name="ReleaseStatus">The status of the release. Optional.</param>
|
||||
/// <param name="TotalDiscs">The number of discs of the release. Optional.</param>
|
||||
/// <param name="TotalTracks">The number of tracks of the release. Required.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public record AlbumMetadataDto(
|
||||
string? Title,
|
||||
string? OriginalTitle,
|
||||
string? Description,
|
||||
ReleaseInfoDto? ReleaseInfo,
|
||||
LanguageInfoDto? Language,
|
||||
LanguageInfoDto? OriginalLanguage,
|
||||
List<TagDto>? Tags,
|
||||
List<GenreDto>? Genres,
|
||||
MusicReleaseType? ReleaseType,
|
||||
MusicReleaseStatus? ReleaseStatus,
|
||||
int? TotalDiscs,
|
||||
int? TotalTracks
|
||||
);
|
||||
@@ -0,0 +1,43 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the audio metadata of a track.
|
||||
/// </summary>
|
||||
/// <param name="Title">The title of the track. Required.</param>
|
||||
/// <param name="OriginalTitle">The original title of the track, if different from the current title. Optional.</param>
|
||||
/// <param name="Description">A brief description or summary of the track. Optional.</param>
|
||||
/// <param name="ReleaseInfo">The release information, including release date and other relevant details. Required.</param>
|
||||
/// <param name="Language">The language of the track. Optional.</param>
|
||||
/// <param name="OriginalLanguage">The original language of the track, if it has been translated. Optional.</param>
|
||||
/// <param name="Tags">The list of tags that further describe or categorize the track. Required.</param>
|
||||
/// <param name="Genres">The list of genres associated with the track. Required.</param>
|
||||
/// <param name="DurationInSeconds">The duration of the audio of the track in seconds. Required.</param>
|
||||
/// <param name="SampleRate">The sample rate of the audio of the track in Hz. Required.</param>
|
||||
/// <param name="Channels">The number of audio channels of the track. Required.</param>
|
||||
/// <param name="BitDepth">The bit depth of the audio of the track. Optional.</param>
|
||||
/// <param name="AudioCodec">The audio codec used by the track. Optional.</param>
|
||||
/// <param name="Bitrate">The bitrate of the audio of the track in kbps. Optional.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public record AudioMetadataDto(
|
||||
string? Title,
|
||||
string? OriginalTitle,
|
||||
string? Description,
|
||||
ReleaseInfoDto? ReleaseInfo,
|
||||
LanguageInfoDto? Language,
|
||||
LanguageInfoDto? OriginalLanguage,
|
||||
List<TagDto>? Tags,
|
||||
List<GenreDto>? Genres,
|
||||
int? DurationInSeconds,
|
||||
int? SampleRate,
|
||||
int? Channels,
|
||||
int? BitDepth,
|
||||
string? AudioCodec,
|
||||
int? Bitrate
|
||||
);
|
||||
@@ -0,0 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for an ISRC (International Standard Recording Code) of a track.
|
||||
/// </summary>
|
||||
/// <param name="Value">The value of the ISRC.</param>
|
||||
[DebuggerDisplay("Value: {Value}")]
|
||||
public record IsrcDto(
|
||||
string? Value
|
||||
);
|
||||
Reference in new issue
Block a user