mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 16:11:10 +00:00
Adds the music metadata data transfer objects, their requests and responses, and extends the artwork data transfer object
This commit is contained in:
1 parent
5529e99024
commit
a939d8fd5f
48 files changed
+1961
-161
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
@@ -7,10 +8,16 @@ namespace Lumina.Contracts.DTO.Common;
|
||||
/// <summary>
|
||||
/// Data transfer object for the artwork of a media item, provided by an artwork provider.
|
||||
/// </summary>
|
||||
/// <param name="Type">The type of the artwork, like the cover or the back of the media item.</param>
|
||||
/// <param name="Ordinal">The ordinal of the artwork within its type, so that multiple artworks of the same type can be ordered.</param>
|
||||
/// <param name="LocalPath">The local file system path of the artwork, when the artwork is a local file.</param>
|
||||
/// <param name="RemoteUrl">The remote URL of the artwork, when the artwork is fetched over the web.</param>
|
||||
[DebuggerDisplay("LocalPath: {LocalPath}, RemoteUrl: {RemoteUrl}")]
|
||||
/// <param name="IsTemporary">Whether a local artwork is a temporary file produced by the provider, which is deleted after the artwork is stored.</param>
|
||||
[DebuggerDisplay("Type: {Type}, Ordinal: {Ordinal}, LocalPath: {LocalPath}, RemoteUrl: {RemoteUrl}")]
|
||||
public sealed record ArtworkDto(
|
||||
ArtworkType Type,
|
||||
int Ordinal,
|
||||
string? LocalPath,
|
||||
string? RemoteUrl
|
||||
string? RemoteUrl,
|
||||
bool IsTemporary = false
|
||||
);
|
||||
+36
-6
@@ -1,5 +1,7 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -9,32 +11,60 @@ using System.Diagnostics;
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the metadata of an album.
|
||||
/// Data transfer object for the metadata of an album, returned by a metadata provider.
|
||||
/// </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="Disambiguation">The disambiguation comment of the album, used to distinguish albums with the same title. 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="Script">The script used by the language of the release of the album. Optional.</param>
|
||||
/// <param name="ReleaseTypes">The set of types of the release. Optional.</param>
|
||||
/// <param name="ReleaseStatus">The status of the release. Optional.</param>
|
||||
/// <param name="MediaFormat">The physical or digital medium of the album. Optional.</param>
|
||||
/// <param name="Packaging">The outermost physical packaging of the album. 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>
|
||||
/// <param name="Barcode">The barcode of the album. Optional.</param>
|
||||
/// <param name="CatalogNumbers">The catalog numbers of the album. Optional.</param>
|
||||
/// <param name="Label">The name of the label that issued the album. Optional.</param>
|
||||
/// <param name="ASIN">The ASIN (Amazon Standard Identification Number) of the album. Optional.</param>
|
||||
/// <param name="MusicBrainzReleaseId">The MusicBrainz identifier of the release. Optional.</param>
|
||||
/// <param name="MusicBrainzReleaseGroupId">The MusicBrainz identifier of the release group. Optional.</param>
|
||||
/// <param name="MusicBrainzReleaseArtistId">The MusicBrainz identifier of the release artist. Optional.</param>
|
||||
/// <param name="Contributors">The list of media contributors that performed on the album, each with the role they played. Required.</param>
|
||||
/// <param name="Ratings">The list of ratings for the album. Required.</param>
|
||||
/// <param name="ReleaseTitle">The title of the specific release (edition) the album files match, if different from the release group title. Optional.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public record AlbumMetadataDto(
|
||||
public sealed record AlbumMetadataDto(
|
||||
string? Title,
|
||||
string? OriginalTitle,
|
||||
string? Description,
|
||||
string? Disambiguation,
|
||||
ReleaseInfoDto? ReleaseInfo,
|
||||
LanguageInfoDto? Language,
|
||||
LanguageInfoDto? OriginalLanguage,
|
||||
List<TagDto>? Tags,
|
||||
List<GenreDto>? Genres,
|
||||
MusicReleaseType? ReleaseType,
|
||||
string? Script,
|
||||
List<MusicReleaseType>? ReleaseTypes,
|
||||
MusicReleaseStatus? ReleaseStatus,
|
||||
MusicMediaFormat? MediaFormat,
|
||||
MusicReleasePackaging? Packaging,
|
||||
int? TotalDiscs,
|
||||
int? TotalTracks
|
||||
);
|
||||
int? TotalTracks,
|
||||
string? Barcode,
|
||||
List<string>? CatalogNumbers,
|
||||
string? Label,
|
||||
string? ASIN,
|
||||
Guid? MusicBrainzReleaseId,
|
||||
Guid? MusicBrainzReleaseGroupId,
|
||||
Guid? MusicBrainzReleaseArtistId,
|
||||
List<MediaContributorDto>? Contributors,
|
||||
List<AudioRatingDto>? Ratings,
|
||||
string? ReleaseTitle = null
|
||||
) : MetadataDto;
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for an album metadata lookup.
|
||||
/// </summary>
|
||||
/// <param name="LibraryId">The Id of the media library the album belongs to.</param>
|
||||
/// <param name="Path">The file system path of a track of the album.</param>
|
||||
/// <param name="MusicBrainzReleaseGroupId">The MusicBrainz identifier of the release group of the album, if applicable.</param>
|
||||
/// <param name="MusicBrainzReleaseId">The MusicBrainz identifier of the release of the album, if applicable.</param>
|
||||
/// <param name="Title">The title of the album, if applicable.</param>
|
||||
/// <param name="ArtistName">The name of the artist of the album, if applicable.</param>
|
||||
/// <param name="ReleaseYear">The year the album was released, if applicable.</param>
|
||||
/// <param name="TrackCount">The number of tracks the local album has, if applicable. It is used to select a release whose tracklist matches the local files.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public sealed record AlbumMetadataLookupDto(
|
||||
Guid LibraryId,
|
||||
string Path,
|
||||
Guid? MusicBrainzReleaseGroupId = null,
|
||||
Guid? MusicBrainzReleaseId = null,
|
||||
string? Title = null,
|
||||
string? ArtistName = null,
|
||||
int? ReleaseYear = null,
|
||||
int? TrackCount = null
|
||||
) : MetadataLookupDto;
|
||||
@@ -0,0 +1,60 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary;
|
||||
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 a music artist.
|
||||
/// </summary>
|
||||
/// <param name="Name">The name of the artist.</param>
|
||||
/// <param name="SortName">The sort name of the artist, a variant of the name used when sorting artists, if applicable.</param>
|
||||
/// <param name="Disambiguation">The disambiguation comment of the artist, used to distinguish artists with the same name, if applicable.</param>
|
||||
/// <param name="Type">The type of the artist, if applicable.</param>
|
||||
/// <param name="Gender">The gender of the artist, applicable only to artists that are persons or characters, if applicable.</param>
|
||||
/// <param name="Country">The ISO 3166-1 alpha-2 code of the country the artist is associated with, if applicable.</param>
|
||||
/// <param name="Area">The area the artist is primarily identified with, if applicable.</param>
|
||||
/// <param name="BeginArea">The area the artist began in, if applicable.</param>
|
||||
/// <param name="EndArea">The area the artist ended in, if applicable.</param>
|
||||
/// <param name="LifeSpanBegin">The date the artist started existing, if applicable.</param>
|
||||
/// <param name="LifeSpanEnd">The date the artist stopped existing, if applicable.</param>
|
||||
/// <param name="IsEnded">Whether the artist no longer exists.</param>
|
||||
/// <param name="Website">The website of the artist, if applicable.</param>
|
||||
/// <param name="MusicBrainzArtistId">The MusicBrainz identifier of the artist, if applicable.</param>
|
||||
/// <param name="Ipis">The list of IPI (Interested Party Information) codes of the artist.</param>
|
||||
/// <param name="Isnis">The list of ISNI (International Standard Name Identifier) codes of the artist.</param>
|
||||
/// <param name="Aliases">The list of alternative names of the artist.</param>
|
||||
/// <param name="Genres">The list of genres associated with the artist.</param>
|
||||
/// <param name="Tags">The list of tags that further describe or categorize the artist.</param>
|
||||
/// <param name="Ratings">The list of ratings for the artist.</param>
|
||||
/// <param name="Contributors">The list of media contributors that make up the artist, each with the role they played.</param>
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
public sealed record ArtistMetadataDto(
|
||||
string? Name,
|
||||
string? SortName,
|
||||
string? Disambiguation,
|
||||
MusicArtistType? Type,
|
||||
MusicArtistGender? Gender,
|
||||
string? Country,
|
||||
MusicAreaDto? Area,
|
||||
MusicAreaDto? BeginArea,
|
||||
MusicAreaDto? EndArea,
|
||||
DateOnly? LifeSpanBegin,
|
||||
DateOnly? LifeSpanEnd,
|
||||
bool IsEnded,
|
||||
string? Website,
|
||||
Guid? MusicBrainzArtistId,
|
||||
List<string>? Ipis,
|
||||
List<string>? Isnis,
|
||||
List<MusicArtistAliasDto>? Aliases,
|
||||
List<GenreDto>? Genres,
|
||||
List<TagDto>? Tags,
|
||||
List<AudioRatingDto>? Ratings,
|
||||
List<MediaContributorDto>? Contributors
|
||||
) : MetadataDto;
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for a music artist metadata lookup.
|
||||
/// </summary>
|
||||
/// <param name="LibraryId">The Id of the media library the artist belongs to.</param>
|
||||
/// <param name="Path">The file system path of a track of the artist.</param>
|
||||
/// <param name="MusicBrainzArtistId">The MusicBrainz identifier of the artist, if applicable.</param>
|
||||
/// <param name="Name">The name of the artist, if applicable.</param>
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
public sealed record ArtistMetadataLookupDto(
|
||||
Guid LibraryId,
|
||||
string Path,
|
||||
Guid? MusicBrainzArtistId = null,
|
||||
string? Name = null
|
||||
) : MetadataLookupDto;
|
||||
+31
-4
@@ -1,5 +1,8 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
@@ -8,36 +11,60 @@ using System.Diagnostics;
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the audio metadata of a track.
|
||||
/// Data transfer object for the audio metadata of a track, returned by a metadata provider.
|
||||
/// </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="Disambiguation">The disambiguation comment of the track, used to distinguish tracks with the same title. 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="Script">The script used by the language of the track. Optional.</param>
|
||||
/// <param name="Key">The musical key of the track. Optional.</param>
|
||||
/// <param name="Bpm">The tempo of the track in beats per minute. Optional.</param>
|
||||
/// <param name="IsVideo">Whether the recording of the track is a video recording.</param>
|
||||
/// <param name="Work">The work the track is a recording of, if applicable. Optional.</param>
|
||||
/// <param name="Isrcs">The list of ISRC (International Standard Recording Code) of the track. Optional.</param>
|
||||
/// <param name="Moods">The list of moods of the track. Optional.</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>
|
||||
/// <param name="MusicBrainzRecordingId">The MusicBrainz identifier of the recording. Optional.</param>
|
||||
/// <param name="MusicBrainzTrackId">The MusicBrainz identifier of the track. Optional.</param>
|
||||
/// <param name="Contributors">The list of media contributors that performed on the track, each with the role they played. Required.</param>
|
||||
/// <param name="Ratings">The list of ratings for the track. Required.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public record AudioMetadataDto(
|
||||
public sealed record AudioMetadataDto(
|
||||
string? Title,
|
||||
string? OriginalTitle,
|
||||
string? Description,
|
||||
string? Disambiguation,
|
||||
ReleaseInfoDto? ReleaseInfo,
|
||||
LanguageInfoDto? Language,
|
||||
LanguageInfoDto? OriginalLanguage,
|
||||
List<TagDto>? Tags,
|
||||
List<GenreDto>? Genres,
|
||||
string? Script,
|
||||
MusicKey? Key,
|
||||
int? Bpm,
|
||||
bool IsVideo,
|
||||
MusicWorkDto? Work,
|
||||
List<IsrcDto>? Isrcs,
|
||||
List<MoodDto>? Moods,
|
||||
int? DurationInSeconds,
|
||||
int? SampleRate,
|
||||
int? Channels,
|
||||
int? BitDepth,
|
||||
string? AudioCodec,
|
||||
int? Bitrate
|
||||
);
|
||||
int? Bitrate,
|
||||
Guid? MusicBrainzRecordingId,
|
||||
Guid? MusicBrainzTrackId,
|
||||
List<MediaContributorDto>? Contributors,
|
||||
List<AudioRatingDto>? Ratings
|
||||
) : MetadataDto;
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||
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, as used by the API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The identifiers, the contributors and the ratings of the album are kept alongside this object, as siblings, rather than inside it.
|
||||
/// </remarks>
|
||||
/// <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="Disambiguation">The disambiguation comment of the album, used to distinguish albums with the same title. 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="Script">The script used by the language of the release of the album. Optional.</param>
|
||||
/// <param name="ReleaseTypes">The set of types 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>
|
||||
/// <param name="ReleaseTitle">The title of the specific release (edition) the album files match, if different from the release group title. Optional.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public record MusicAlbumMetadataDto(
|
||||
string? Title,
|
||||
string? OriginalTitle,
|
||||
string? Description,
|
||||
string? Disambiguation,
|
||||
ReleaseInfoDto? ReleaseInfo,
|
||||
LanguageInfoDto? Language,
|
||||
LanguageInfoDto? OriginalLanguage,
|
||||
List<TagDto>? Tags,
|
||||
List<GenreDto>? Genres,
|
||||
string? Script,
|
||||
List<MusicReleaseType>? ReleaseTypes,
|
||||
MusicReleaseStatus? ReleaseStatus,
|
||||
int? TotalDiscs,
|
||||
int? TotalTracks,
|
||||
string? ReleaseTitle = null
|
||||
);
|
||||
@@ -0,0 +1,25 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for a MusicBrainz area, the geographic area a music artist is associated with.
|
||||
/// </summary>
|
||||
/// <param name="MusicBrainzAreaId">The MusicBrainz identifier of the area.</param>
|
||||
/// <param name="Name">The name of the area.</param>
|
||||
/// <param name="SortName">The sort name of the area, if applicable.</param>
|
||||
/// <param name="Disambiguation">The disambiguation comment of the area, if applicable.</param>
|
||||
/// <param name="Type">The MusicBrainz type of the area, if applicable.</param>
|
||||
/// <param name="Iso3166Code">The ISO 3166 code of the area, if applicable.</param>
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
public sealed record MusicAreaDto(
|
||||
Guid? MusicBrainzAreaId,
|
||||
string? Name,
|
||||
string? SortName,
|
||||
string? Disambiguation,
|
||||
string? Type,
|
||||
string? Iso3166Code
|
||||
);
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for an alternative name of a music artist.
|
||||
/// </summary>
|
||||
/// <param name="Name">The name of the alias.</param>
|
||||
/// <param name="SortName">The sort name of the alias, if applicable.</param>
|
||||
/// <param name="Type">The type of the alias, if applicable.</param>
|
||||
/// <param name="Locale">The locale the alias is used in, if applicable.</param>
|
||||
/// <param name="IsPrimary">Whether this is the primary alias of the artist.</param>
|
||||
/// <param name="BeginDate">The date the alias began being used, if applicable.</param>
|
||||
/// <param name="EndDate">The date the alias stopped being used, if applicable.</param>
|
||||
/// <param name="IsEnded">Whether the alias is no longer used.</param>
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
public sealed record MusicArtistAliasDto(
|
||||
string? Name,
|
||||
string? SortName,
|
||||
string? Type,
|
||||
string? Locale,
|
||||
bool IsPrimary,
|
||||
DateOnly? BeginDate,
|
||||
DateOnly? EndDate,
|
||||
bool IsEnded
|
||||
);
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
#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 a music artist, as used by the API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The identifiers, the contributors and the ratings of the artist are kept alongside this object, as siblings, rather than inside it.
|
||||
/// </remarks>
|
||||
/// <param name="Name">The name of the artist.</param>
|
||||
/// <param name="SortName">The sort name of the artist, a variant of the name used when sorting artists, if applicable.</param>
|
||||
/// <param name="Disambiguation">The disambiguation comment of the artist, used to distinguish artists with the same name, if applicable.</param>
|
||||
/// <param name="Type">The type of the artist, if applicable.</param>
|
||||
/// <param name="Gender">The gender of the artist, applicable only to artists that are persons or characters, if applicable.</param>
|
||||
/// <param name="Country">The ISO 3166-1 alpha-2 code of the country the artist is associated with, if applicable.</param>
|
||||
/// <param name="Area">The area the artist is primarily identified with, if applicable.</param>
|
||||
/// <param name="BeginArea">The area the artist began in, if applicable.</param>
|
||||
/// <param name="EndArea">The area the artist ended in, if applicable.</param>
|
||||
/// <param name="LifeSpanBegin">The date the artist started existing, if applicable.</param>
|
||||
/// <param name="LifeSpanEnd">The date the artist stopped existing, if applicable.</param>
|
||||
/// <param name="IsEnded">Whether the artist no longer exists.</param>
|
||||
/// <param name="Genres">The list of genres associated with the artist.</param>
|
||||
/// <param name="Tags">The list of tags that further describe or categorize the artist.</param>
|
||||
/// <param name="Aliases">The list of alternative names of the artist.</param>
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
public record MusicArtistMetadataDto(
|
||||
string? Name,
|
||||
string? SortName,
|
||||
string? Disambiguation,
|
||||
MusicArtistType? Type,
|
||||
MusicArtistGender? Gender,
|
||||
string? Country,
|
||||
MusicAreaDto? Area,
|
||||
MusicAreaDto? BeginArea,
|
||||
MusicAreaDto? EndArea,
|
||||
DateOnly? LifeSpanBegin,
|
||||
DateOnly? LifeSpanEnd,
|
||||
bool IsEnded,
|
||||
List<GenreDto>? Genres,
|
||||
List<TagDto>? Tags,
|
||||
List<MusicArtistAliasDto>? Aliases
|
||||
);
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
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, as used by the API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The identifiers, the contributors and the ratings of the track are kept alongside this object, as siblings, rather than inside it.
|
||||
/// </remarks>
|
||||
/// <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="Disambiguation">The disambiguation comment of the track, used to distinguish tracks with the same title. 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="IsVideo">Whether the recording of the track is a video recording.</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>
|
||||
/// <param name="AcoustId">The AcoustID fingerprint identifier of the audio file of the track. Optional.</param>
|
||||
/// <param name="ReplayGainTrackGain">The ReplayGain track gain of the track in decibels. Optional.</param>
|
||||
/// <param name="ReplayGainTrackPeak">The ReplayGain track peak of the track. Optional.</param>
|
||||
/// <param name="ReplayGainAlbumGain">The ReplayGain album gain of the track in decibels. Optional.</param>
|
||||
/// <param name="ReplayGainAlbumPeak">The ReplayGain album peak of the track. Optional.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public record MusicTrackMetadataDto(
|
||||
string? Title,
|
||||
string? OriginalTitle,
|
||||
string? Description,
|
||||
string? Disambiguation,
|
||||
ReleaseInfoDto? ReleaseInfo,
|
||||
LanguageInfoDto? Language,
|
||||
LanguageInfoDto? OriginalLanguage,
|
||||
List<TagDto>? Tags,
|
||||
List<GenreDto>? Genres,
|
||||
bool IsVideo,
|
||||
int? DurationInSeconds,
|
||||
int? SampleRate,
|
||||
int? Channels,
|
||||
int? BitDepth,
|
||||
string? AudioCodec,
|
||||
int? Bitrate,
|
||||
string? AcoustId = null,
|
||||
decimal? ReplayGainTrackGain = null,
|
||||
decimal? ReplayGainTrackPeak = null,
|
||||
decimal? ReplayGainAlbumGain = null,
|
||||
decimal? ReplayGainAlbumPeak = null
|
||||
);
|
||||
@@ -0,0 +1,28 @@
|
||||
#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 a MusicBrainz work, the musical composition a track is a recording of.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The contributors credited on the work are carried by the contributors of the metadata of the track.
|
||||
/// </remarks>
|
||||
/// <param name="MusicBrainzWorkId">The MusicBrainz identifier of the work.</param>
|
||||
/// <param name="Title">The title of the work.</param>
|
||||
/// <param name="Type">The MusicBrainz type of the work, if applicable.</param>
|
||||
/// <param name="Languages">The list of languages of the work.</param>
|
||||
/// <param name="Iswcs">The list of ISWC (International Standard Musical Work Code) of the work.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public sealed record MusicWorkDto(
|
||||
Guid? MusicBrainzWorkId,
|
||||
string? Title,
|
||||
string? Type,
|
||||
List<LanguageInfoDto>? Languages,
|
||||
List<string>? Iswcs
|
||||
);
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for a track metadata lookup.
|
||||
/// </summary>
|
||||
/// <param name="LibraryId">The Id of the media library the track belongs to.</param>
|
||||
/// <param name="Path">The file system path of the track.</param>
|
||||
/// <param name="MusicBrainzRecordingId">The MusicBrainz identifier of the recording of the track, if applicable.</param>
|
||||
/// <param name="Isrc">The ISRC (International Standard Recording Code) of the track, if applicable.</param>
|
||||
/// <param name="Title">The title of the track, if applicable.</param>
|
||||
/// <param name="ArtistName">The name of the artist of the track, if applicable.</param>
|
||||
/// <param name="ReleaseName">The name of the release the track belongs to, if applicable.</param>
|
||||
/// <param name="TrackNumber">The number of the track on its disc, if applicable.</param>
|
||||
/// <param name="DurationInSeconds">The duration of the track in seconds, if applicable.</param>
|
||||
/// <param name="MusicBrainzReleaseId">The MusicBrainz identifier of the release the track belongs to, if applicable.</param>
|
||||
/// <param name="DiscNumber">The number of the disc the track belongs to, if applicable.</param>
|
||||
/// <param name="MusicBrainzWorkId">The MusicBrainz identifier of the work the track is a recording of, read from the tags, if applicable. It is used as a fallback when MusicBrainz does not link the recording to a work.</param>
|
||||
/// <param name="WorkTitle">The title of the work the track is a recording of, read from the tags, if applicable. Its presence means the work of the tags is already complete, so the work is not resolved from MusicBrainz again.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public sealed record TrackMetadataLookupDto(
|
||||
Guid LibraryId,
|
||||
string Path,
|
||||
Guid? MusicBrainzRecordingId = null,
|
||||
string? Isrc = null,
|
||||
string? Title = null,
|
||||
string? ArtistName = null,
|
||||
string? ReleaseName = null,
|
||||
int? TrackNumber = null,
|
||||
int? DurationInSeconds = null,
|
||||
Guid? MusicBrainzReleaseId = null,
|
||||
int? DiscNumber = null,
|
||||
Guid? MusicBrainzWorkId = null,
|
||||
string? WorkTitle = null
|
||||
) : MetadataLookupDto;
|
||||
+9
-4
@@ -1,5 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
@@ -17,8 +16,11 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Album
|
||||
/// </summary>
|
||||
/// <param name="Metadata">The album metadata of the album. Required.</param>
|
||||
/// <param name="MediaFormat">The physical or digital medium of the album. Optional.</param>
|
||||
/// <param name="Packaging">The outermost physical packaging of the album. Optional.</param>
|
||||
/// <param name="Barcode">The barcode of the album. Optional.</param>
|
||||
/// <param name="CatalogNumber">The catalog number of the album. Optional.</param>
|
||||
/// <param name="CatalogNumbers">The catalog numbers of the album. Optional.</param>
|
||||
/// <param name="Label">The name of the label that issued the album. Optional.</param>
|
||||
/// <param name="ASIN">The ASIN (Amazon Standard Identification Number) of the album. Optional.</param>
|
||||
/// <param name="MusicBrainzReleaseId">The MusicBrainz identifier of the release. Optional.</param>
|
||||
/// <param name="MusicBrainzReleaseGroupId">The MusicBrainz identifier of the release group. Optional.</param>
|
||||
/// <param name="MusicBrainzReleaseArtistId">The MusicBrainz identifier of the release artist. Optional.</param>
|
||||
@@ -27,10 +29,13 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Album
|
||||
/// <param name="Tracks">The list of tracks of the album. Required.</param>
|
||||
[DebuggerDisplay("Title: {Metadata.Title}")]
|
||||
public record AddAlbumRequest(
|
||||
AlbumMetadataDto? Metadata,
|
||||
MusicAlbumMetadataDto? Metadata,
|
||||
MusicMediaFormat? MediaFormat,
|
||||
MusicReleasePackaging? Packaging,
|
||||
string? Barcode,
|
||||
string? CatalogNumber,
|
||||
List<string>? CatalogNumbers,
|
||||
string? Label,
|
||||
string? ASIN,
|
||||
Guid? MusicBrainzReleaseId,
|
||||
Guid? MusicBrainzReleaseGroupId,
|
||||
Guid? MusicBrainzReleaseArtistId,
|
||||
|
||||
+9
-4
@@ -1,5 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
@@ -16,8 +15,11 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Album
|
||||
/// </summary>
|
||||
/// <param name="Metadata">The album metadata of the album. Required.</param>
|
||||
/// <param name="MediaFormat">The physical or digital medium of the album. Optional.</param>
|
||||
/// <param name="Packaging">The outermost physical packaging of the album. Optional.</param>
|
||||
/// <param name="Barcode">The barcode of the album. Optional.</param>
|
||||
/// <param name="CatalogNumber">The catalog number of the album. Optional.</param>
|
||||
/// <param name="CatalogNumbers">The catalog numbers of the album. Optional.</param>
|
||||
/// <param name="Label">The name of the label that issued the album. Optional.</param>
|
||||
/// <param name="ASIN">The ASIN (Amazon Standard Identification Number) of the album. Optional.</param>
|
||||
/// <param name="MusicBrainzReleaseId">The MusicBrainz identifier of the release. Optional.</param>
|
||||
/// <param name="MusicBrainzReleaseGroupId">The MusicBrainz identifier of the release group. Optional.</param>
|
||||
/// <param name="MusicBrainzReleaseArtistId">The MusicBrainz identifier of the release artist. Optional.</param>
|
||||
@@ -25,10 +27,13 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Album
|
||||
/// <param name="Ratings">The list of ratings for this album. Required.</param>
|
||||
[DebuggerDisplay("Title: {Metadata.Title}")]
|
||||
public record UpdateAlbumRequest(
|
||||
AlbumMetadataDto? Metadata,
|
||||
MusicAlbumMetadataDto? Metadata,
|
||||
MusicMediaFormat? MediaFormat,
|
||||
MusicReleasePackaging? Packaging,
|
||||
string? Barcode,
|
||||
string? CatalogNumber,
|
||||
List<string>? CatalogNumbers,
|
||||
string? Label,
|
||||
string? ASIN,
|
||||
Guid? MusicBrainzReleaseId,
|
||||
Guid? MusicBrainzReleaseGroupId,
|
||||
Guid? MusicBrainzReleaseArtistId,
|
||||
|
||||
+11
-3
@@ -1,5 +1,7 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
using Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Albums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -11,16 +13,22 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Artis
|
||||
/// <summary>
|
||||
/// Represents a request to add an artist, together with the albums of the artist and the tracks of those albums.
|
||||
/// </summary>
|
||||
/// <param name="Name">The name of the artist. Required.</param>
|
||||
/// <param name="Metadata">The metadata of the artist. Required.</param>
|
||||
/// <param name="Website">The website of the artist. Optional.</param>
|
||||
/// <param name="MusicBrainzArtistId">The MusicBrainz identifier of the artist. Optional.</param>
|
||||
/// <param name="Ipis">The list of IPI (Interested Party Information) codes of the artist. Optional.</param>
|
||||
/// <param name="Isnis">The list of ISNI (International Standard Name Identifier) codes of the artist. Optional.</param>
|
||||
/// <param name="Contributors">The list of media contributors that make up the artist. Required.</param>
|
||||
/// <param name="Ratings">The list of ratings for the artist. Required.</param>
|
||||
/// <param name="Albums">The list of albums of the artist, each with its own list of tracks. Required.</param>
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
[DebuggerDisplay("Name: {Metadata.Name}")]
|
||||
public record AddArtistRequest(
|
||||
string? Name,
|
||||
MusicArtistMetadataDto? Metadata,
|
||||
string? Website,
|
||||
Guid? MusicBrainzArtistId,
|
||||
List<string>? Ipis,
|
||||
List<string>? Isnis,
|
||||
List<MediaContributorReferenceDto>? Contributors,
|
||||
List<AudioRatingDto>? Ratings,
|
||||
List<AddAlbumRequest>? Albums
|
||||
);
|
||||
+9
-3
@@ -16,8 +16,11 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Artis
|
||||
/// <param name="AlbumId">The Id of the album, when the album already exists. Optional.</param>
|
||||
/// <param name="Metadata">The album metadata of the album. Required.</param>
|
||||
/// <param name="MediaFormat">The physical or digital medium of the album. Optional.</param>
|
||||
/// <param name="Packaging">The outermost physical packaging of the album. Optional.</param>
|
||||
/// <param name="Barcode">The barcode of the album. Optional.</param>
|
||||
/// <param name="CatalogNumber">The catalog number of the album. Optional.</param>
|
||||
/// <param name="CatalogNumbers">The catalog numbers of the album. Optional.</param>
|
||||
/// <param name="Label">The name of the label that issued the album. Optional.</param>
|
||||
/// <param name="ASIN">The ASIN (Amazon Standard Identification Number) of the album. Optional.</param>
|
||||
/// <param name="MusicBrainzReleaseId">The MusicBrainz identifier of the release. Optional.</param>
|
||||
/// <param name="MusicBrainzReleaseGroupId">The MusicBrainz identifier of the release group. Optional.</param>
|
||||
/// <param name="MusicBrainzReleaseArtistId">The MusicBrainz identifier of the release artist. Optional.</param>
|
||||
@@ -27,10 +30,13 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Artis
|
||||
[DebuggerDisplay("Title: {Metadata.Title}")]
|
||||
public record UpdateArtistAlbumRequest(
|
||||
Guid? AlbumId,
|
||||
AlbumMetadataDto? Metadata,
|
||||
MusicAlbumMetadataDto? Metadata,
|
||||
MusicMediaFormat? MediaFormat,
|
||||
MusicReleasePackaging? Packaging,
|
||||
string? Barcode,
|
||||
string? CatalogNumber,
|
||||
List<string>? CatalogNumbers,
|
||||
string? Label,
|
||||
string? ASIN,
|
||||
Guid? MusicBrainzReleaseId,
|
||||
Guid? MusicBrainzReleaseGroupId,
|
||||
Guid? MusicBrainzReleaseArtistId,
|
||||
|
||||
+11
-3
@@ -1,5 +1,7 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
@@ -10,16 +12,22 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Artis
|
||||
/// <summary>
|
||||
/// Represents a request to update an existing artist.
|
||||
/// </summary>
|
||||
/// <param name="Name">The name of the artist. Required.</param>
|
||||
/// <param name="Metadata">The metadata of the artist. Required.</param>
|
||||
/// <param name="Website">The website of the artist. Optional.</param>
|
||||
/// <param name="MusicBrainzArtistId">The MusicBrainz identifier of the artist. Optional.</param>
|
||||
/// <param name="Ipis">The list of IPI (Interested Party Information) codes of the artist. Optional.</param>
|
||||
/// <param name="Isnis">The list of ISNI (International Standard Name Identifier) codes of the artist. Optional.</param>
|
||||
/// <param name="Contributors">The list of media contributors that make up the artist. Required.</param>
|
||||
/// <param name="Ratings">The list of ratings for the artist. Required.</param>
|
||||
/// <param name="Albums">The list of albums of the artist, each with its own list of tracks. Required.</param>
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
[DebuggerDisplay("Name: {Metadata.Name}")]
|
||||
public record UpdateArtistRequest(
|
||||
string? Name,
|
||||
MusicArtistMetadataDto? Metadata,
|
||||
string? Website,
|
||||
Guid? MusicBrainzArtistId,
|
||||
List<string>? Ipis,
|
||||
List<string>? Isnis,
|
||||
List<MediaContributorReferenceDto>? Contributors,
|
||||
List<AudioRatingDto>? Ratings,
|
||||
List<UpdateArtistAlbumRequest>? Albums
|
||||
);
|
||||
+3
-5
@@ -22,10 +22,9 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Artis
|
||||
/// <param name="Script">The script used by the language of the track. Optional.</param>
|
||||
/// <param name="Key">The musical key of the track. Optional.</param>
|
||||
/// <param name="Bpm">The tempo of the track in beats per minute. Optional.</param>
|
||||
/// <param name="Work">The title of the work the track is a recording of. Optional.</param>
|
||||
/// <param name="Work">The work the track is a recording of. Optional.</param>
|
||||
/// <param name="MusicBrainzRecordingId">The MusicBrainz identifier of the recording. Optional.</param>
|
||||
/// <param name="MusicBrainzTrackId">The MusicBrainz identifier of the track. Optional.</param>
|
||||
/// <param name="MusicBrainzWorkId">The MusicBrainz identifier of the work. Optional.</param>
|
||||
/// <param name="Moods">The list of moods of the track. Optional.</param>
|
||||
/// <param name="Isrcs">The list of ISRC (International Standard Recording Code) of the track. Optional.</param>
|
||||
/// <param name="Contributors">The list of media contributors that performed on the track. Required.</param>
|
||||
@@ -34,16 +33,15 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Artis
|
||||
public record UpdateArtistTrackRequest(
|
||||
Guid? TrackId,
|
||||
string? Path,
|
||||
AudioMetadataDto? Metadata,
|
||||
MusicTrackMetadataDto? Metadata,
|
||||
int? TrackNumber,
|
||||
int? DiscNumber,
|
||||
string? Script,
|
||||
MusicKey? Key,
|
||||
int? Bpm,
|
||||
string? Work,
|
||||
MusicWorkDto? Work,
|
||||
Guid? MusicBrainzRecordingId,
|
||||
Guid? MusicBrainzTrackId,
|
||||
Guid? MusicBrainzWorkId,
|
||||
List<MoodDto>? Moods,
|
||||
List<IsrcDto>? Isrcs,
|
||||
List<MediaContributorReferenceDto>? Contributors,
|
||||
|
||||
+3
-5
@@ -21,10 +21,9 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Track
|
||||
/// <param name="Script">The script used by the language of the track. Optional.</param>
|
||||
/// <param name="Key">The musical key of the track. Optional.</param>
|
||||
/// <param name="Bpm">The tempo of the track in beats per minute. Optional.</param>
|
||||
/// <param name="Work">The title of the work the track is a recording of. Optional.</param>
|
||||
/// <param name="Work">The work the track is a recording of. Optional.</param>
|
||||
/// <param name="MusicBrainzRecordingId">The MusicBrainz identifier of the recording. Optional.</param>
|
||||
/// <param name="MusicBrainzTrackId">The MusicBrainz identifier of the track. Optional.</param>
|
||||
/// <param name="MusicBrainzWorkId">The MusicBrainz identifier of the work. Optional.</param>
|
||||
/// <param name="Moods">The list of moods of the track. Optional.</param>
|
||||
/// <param name="Isrcs">The list of ISRC (International Standard Recording Code) of the track. Optional.</param>
|
||||
/// <param name="Contributors">The list of media contributors that performed on the track. Required.</param>
|
||||
@@ -32,16 +31,15 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Track
|
||||
[DebuggerDisplay("Title: {Metadata.Title}")]
|
||||
public record AddTrackRequest(
|
||||
string? Path,
|
||||
AudioMetadataDto? Metadata,
|
||||
MusicTrackMetadataDto? Metadata,
|
||||
int? TrackNumber,
|
||||
int? DiscNumber,
|
||||
string? Script,
|
||||
MusicKey? Key,
|
||||
int? Bpm,
|
||||
string? Work,
|
||||
MusicWorkDto? Work,
|
||||
Guid? MusicBrainzRecordingId,
|
||||
Guid? MusicBrainzTrackId,
|
||||
Guid? MusicBrainzWorkId,
|
||||
List<MoodDto>? Moods,
|
||||
List<IsrcDto>? Isrcs,
|
||||
List<MediaContributorReferenceDto>? Contributors,
|
||||
|
||||
+3
-5
@@ -21,10 +21,9 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Track
|
||||
/// <param name="Script">The script used by the language of the track. Optional.</param>
|
||||
/// <param name="Key">The musical key of the track. Optional.</param>
|
||||
/// <param name="Bpm">The tempo of the track in beats per minute. Optional.</param>
|
||||
/// <param name="Work">The title of the work the track is a recording of. Optional.</param>
|
||||
/// <param name="Work">The work the track is a recording of. Optional.</param>
|
||||
/// <param name="MusicBrainzRecordingId">The MusicBrainz identifier of the recording. Optional.</param>
|
||||
/// <param name="MusicBrainzTrackId">The MusicBrainz identifier of the track. Optional.</param>
|
||||
/// <param name="MusicBrainzWorkId">The MusicBrainz identifier of the work. Optional.</param>
|
||||
/// <param name="Moods">The list of moods of the track. Optional.</param>
|
||||
/// <param name="Isrcs">The list of ISRC (International Standard Recording Code) of the track. Optional.</param>
|
||||
/// <param name="Contributors">The list of media contributors that performed on the track. Required.</param>
|
||||
@@ -32,16 +31,15 @@ namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Track
|
||||
[DebuggerDisplay("Title: {Metadata.Title}")]
|
||||
public record UpdateTrackRequest(
|
||||
string? Path,
|
||||
AudioMetadataDto? Metadata,
|
||||
MusicTrackMetadataDto? Metadata,
|
||||
int? TrackNumber,
|
||||
int? DiscNumber,
|
||||
string? Script,
|
||||
MusicKey? Key,
|
||||
int? Bpm,
|
||||
string? Work,
|
||||
MusicWorkDto? Work,
|
||||
Guid? MusicBrainzRecordingId,
|
||||
Guid? MusicBrainzTrackId,
|
||||
Guid? MusicBrainzWorkId,
|
||||
List<MoodDto>? Moods,
|
||||
List<IsrcDto>? Isrcs,
|
||||
List<MediaContributorReferenceDto>? Contributors,
|
||||
|
||||
+9
-3
@@ -19,8 +19,11 @@ namespace Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Albu
|
||||
/// <param name="LibraryId">The Id of the media library this album belongs to.</param>
|
||||
/// <param name="Metadata">The album metadata of the album.</param>
|
||||
/// <param name="MediaFormat">The physical or digital medium of the album, if applicable.</param>
|
||||
/// <param name="Packaging">The outermost physical packaging of the album, if applicable.</param>
|
||||
/// <param name="Barcode">The barcode of the album, if applicable.</param>
|
||||
/// <param name="CatalogNumber">The catalog number of the album, if applicable.</param>
|
||||
/// <param name="CatalogNumbers">The catalog numbers of the album, if applicable.</param>
|
||||
/// <param name="Label">The name of the label that issued the album, if applicable.</param>
|
||||
/// <param name="ASIN">The ASIN (Amazon Standard Identification Number) of the album, if applicable.</param>
|
||||
/// <param name="MusicBrainzReleaseId">The MusicBrainz identifier of the release, if applicable.</param>
|
||||
/// <param name="MusicBrainzReleaseGroupId">The MusicBrainz identifier of the release group, if applicable.</param>
|
||||
/// <param name="MusicBrainzReleaseArtistId">The MusicBrainz identifier of the release artist, if applicable.</param>
|
||||
@@ -34,10 +37,13 @@ public record AlbumResponse(
|
||||
Guid Id,
|
||||
Guid ArtistId,
|
||||
Guid LibraryId,
|
||||
AlbumMetadataDto Metadata,
|
||||
MusicAlbumMetadataDto Metadata,
|
||||
MusicMediaFormat? MediaFormat,
|
||||
MusicReleasePackaging? Packaging,
|
||||
string? Barcode,
|
||||
string? CatalogNumber,
|
||||
List<string>? CatalogNumbers,
|
||||
string? Label,
|
||||
string? ASIN,
|
||||
Guid? MusicBrainzReleaseId,
|
||||
Guid? MusicBrainzReleaseGroupId,
|
||||
Guid? MusicBrainzReleaseArtistId,
|
||||
|
||||
+16
-8
@@ -1,5 +1,7 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary;
|
||||
using Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Albums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -13,22 +15,28 @@ namespace Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Arti
|
||||
/// </summary>
|
||||
/// <param name="Id">The Id of the artist.</param>
|
||||
/// <param name="LibraryId">The Id of the media library this artist belongs to.</param>
|
||||
/// <param name="Name">The name of the artist.</param>
|
||||
/// <param name="Metadata">The metadata of the artist.</param>
|
||||
/// <param name="Website">The website of the artist, if applicable.</param>
|
||||
/// <param name="MusicBrainzArtistId">The MusicBrainz identifier of the artist, if applicable.</param>
|
||||
/// <param name="Contributors">The list of references to the media contributors that make up the artist, each with the role they played.</param>
|
||||
/// <param name="Albums">The list of albums of the artist, each with its own list of tracks.</param>
|
||||
/// <param name="Ipis">The list of IPI (Interested Party Information) codes of the artist.</param>
|
||||
/// <param name="Isnis">The list of ISNI (International Standard Name Identifier) codes of the artist.</param>
|
||||
/// <param name="CreatedOnUtc">The date and time when the artist was created.</param>
|
||||
/// <param name="UpdatedOnUtc">The optional date and time when the artist was updated.</param>
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
/// <param name="Contributors">The list of references to the media contributors that make up the artist, each with the role they played.</param>
|
||||
/// <param name="Ratings">The list of ratings for this artist.</param>
|
||||
/// <param name="Albums">The list of albums of the artist, each with its own list of tracks.</param>
|
||||
[DebuggerDisplay("Name: {Metadata.Name}")]
|
||||
public record ArtistResponse(
|
||||
Guid Id,
|
||||
Guid LibraryId,
|
||||
string Name,
|
||||
MusicArtistMetadataDto Metadata,
|
||||
string? Website,
|
||||
Guid? MusicBrainzArtistId,
|
||||
List<MediaContributorReferenceDto>? Contributors,
|
||||
List<AlbumResponse>? Albums,
|
||||
List<string>? Ipis,
|
||||
List<string>? Isnis,
|
||||
DateTime CreatedOnUtc,
|
||||
DateTime? UpdatedOnUtc
|
||||
DateTime? UpdatedOnUtc,
|
||||
List<MediaContributorReferenceDto>? Contributors,
|
||||
List<AudioRatingDto>? Ratings,
|
||||
List<AlbumResponse>? Albums
|
||||
);
|
||||
+3
-5
@@ -24,10 +24,9 @@ namespace Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Trac
|
||||
/// <param name="Script">The script used by the language of the track, if applicable.</param>
|
||||
/// <param name="Key">The musical key of the track, if applicable.</param>
|
||||
/// <param name="Bpm">The tempo of the track in beats per minute, if applicable.</param>
|
||||
/// <param name="Work">The title of the work the track is a recording of, if applicable.</param>
|
||||
/// <param name="Work">The work the track is a recording of, if applicable.</param>
|
||||
/// <param name="MusicBrainzRecordingId">The MusicBrainz identifier of the recording, if applicable.</param>
|
||||
/// <param name="MusicBrainzTrackId">The MusicBrainz identifier of the track, if applicable.</param>
|
||||
/// <param name="MusicBrainzWorkId">The MusicBrainz identifier of the work, if applicable.</param>
|
||||
/// <param name="CreatedOnUtc">The date and time when the track was created.</param>
|
||||
/// <param name="UpdatedOnUtc">The optional date and time when the track was updated.</param>
|
||||
/// <param name="Moods">The list of moods of the track.</param>
|
||||
@@ -40,16 +39,15 @@ public record TrackResponse(
|
||||
Guid AlbumId,
|
||||
Guid LibraryId,
|
||||
string Path,
|
||||
AudioMetadataDto Metadata,
|
||||
MusicTrackMetadataDto Metadata,
|
||||
int TrackNumber,
|
||||
int? DiscNumber,
|
||||
string? Script,
|
||||
MusicKey? Key,
|
||||
int? Bpm,
|
||||
string? Work,
|
||||
MusicWorkDto? Work,
|
||||
Guid? MusicBrainzRecordingId,
|
||||
Guid? MusicBrainzTrackId,
|
||||
Guid? MusicBrainzWorkId,
|
||||
DateTime CreatedOnUtc,
|
||||
DateTime? UpdatedOnUtc,
|
||||
List<MoodDto>? Moods,
|
||||
|
||||
Reference in new issue
Block a user