mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14: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
+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