mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12: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
-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,
|
||||
|
||||
Reference in new issue
Block a user