Adds the music library browsing and editing pages to the web client.

This commit is contained in:
BinaryAlley committed 2026-10-13 13:27:28 +03:00
1 parent c7aab63552
commit 5a2c6c2bd8
215 files changed
+60042 -3

No files matched your search

@@ -0,0 +1,19 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.Enums.AudioLibrary;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary;
/// <summary>
/// Data transfer object for the rating of an audio media element.
/// </summary>
[DebuggerDisplay("Value: {Value}, MaxValue: {MaxValue}")]
public class AudioRatingDto : RatingDto
{
/// <summary>
/// Gets or sets the source of the audio rating (e.g., a specific website or platform).
/// </summary>
public AudioRatingSource? Source { get; set; }
}
@@ -0,0 +1,17 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for an ISRC (International Standard Recording Code) of a track.
/// </summary>
[DebuggerDisplay("Value: {Value}")]
public class IsrcDto
{
/// <summary>
/// Gets or sets the value of the ISRC.
/// </summary>
public string? Value { get; set; }
}
@@ -0,0 +1,118 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.DTO.MediaContributors;
using Lumina.Presentation.Web.Common.Enums.AudioLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object carrying the full details of an album, as stored in the media library.
/// </summary>
[DebuggerDisplay("Title: {Metadata?.Title}")]
public class MusicAlbumDto
{
/// <summary>
/// Gets or sets the Id of the album.
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Gets or sets the Id of the artist the album belongs to.
/// </summary>
public Guid ArtistId { get; set; }
/// <summary>
/// Gets or sets the Id of the media library this album belongs to.
/// </summary>
public Guid LibraryId { get; set; }
/// <summary>
/// Gets or sets the path of the image representing the album, if available.
/// </summary>
public string? CoverPath { get; set; }
/// <summary>
/// Gets or sets the stored artwork of the album, in display order, so that all of its pieces can be presented, not just the cover.
/// </summary>
public List<MediaArtworkDto>? Artwork { get; set; }
/// <summary>
/// Gets or sets the album metadata of the album.
/// </summary>
public MusicAlbumMetadataDto? Metadata { get; set; }
/// <summary>
/// Gets or sets the physical or digital medium of the album, if applicable.
/// </summary>
public MusicMediaFormat? MediaFormat { get; set; }
/// <summary>
/// Gets or sets the outermost physical packaging of the album, if applicable.
/// </summary>
public MusicReleasePackaging? Packaging { get; set; }
/// <summary>
/// Gets or sets the barcode of the album, if applicable.
/// </summary>
public string? Barcode { get; set; }
/// <summary>
/// Gets or sets the catalog numbers of the album, if applicable.
/// </summary>
public List<string>? CatalogNumbers { get; set; }
/// <summary>
/// Gets or sets the name of the label that issued the album, if applicable.
/// </summary>
public string? Label { get; set; }
/// <summary>
/// Gets or sets the ASIN (Amazon Standard Identification Number) of the album, if applicable.
/// </summary>
public string? ASIN { get; set; }
/// <summary>
/// Gets or sets the MusicBrainz identifier of the release, if applicable.
/// </summary>
public Guid? MusicBrainzReleaseId { get; set; }
/// <summary>
/// Gets or sets the MusicBrainz identifier of the release group, if applicable.
/// </summary>
public Guid? MusicBrainzReleaseGroupId { get; set; }
/// <summary>
/// Gets or sets the MusicBrainz identifier of the release artist, if applicable.
/// </summary>
public Guid? MusicBrainzReleaseArtistId { get; set; }
/// <summary>
/// Gets or sets the date and time when the album was created.
/// </summary>
public DateTime CreatedOnUtc { get; set; }
/// <summary>
/// Gets or sets the optional date and time when the album was updated.
/// </summary>
public DateTime? UpdatedOnUtc { get; set; }
/// <summary>
/// Gets or sets the list of references to the media contributors that performed on the album, each with the role they played.
/// </summary>
public List<MediaContributorReferenceDto>? Contributors { get; set; }
/// <summary>
/// Gets or sets the list of ratings for this album.
/// </summary>
public List<AudioRatingDto>? Ratings { get; set; }
/// <summary>
/// Gets or sets the list of tracks of the album.
/// </summary>
public List<MusicTrackDto>? Tracks { get; set; }
}
@@ -0,0 +1,45 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Enums.AudioLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for a lightweight album element, containing only the properties needed by the client for card-style navigation.
/// </summary>
[DebuggerDisplay("Title: {Title}")]
public class MusicAlbumLiteDto
{
/// <summary>
/// Gets or sets the Id of the album.
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Gets or sets the title of the album.
/// </summary>
public string Title { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the number of tracks of the release.
/// </summary>
public int TotalTracks { get; set; }
/// <summary>
/// Gets or sets the path of the image representing the album, if available.
/// </summary>
public string? CoverPath { get; set; }
/// <summary>
/// Gets or sets the release year of the album (the re-release year, if available, or the original release year), if known.
/// </summary>
public int? ReleaseYear { get; set; }
/// <summary>
/// Gets or sets the set of types of the release.
/// </summary>
public List<MusicReleaseType>? ReleaseTypes { get; set; }
}
@@ -0,0 +1,90 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.Enums.AudioLibrary;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for the metadata of an album.
/// </summary>
[DebuggerDisplay("Title: {Title}")]
public class MusicAlbumMetadataDto
{
/// <summary>
/// Gets or sets the title of the album.
/// </summary>
public string? Title { get; set; }
/// <summary>
/// Gets or sets the original title of the album, if different from the current title.
/// </summary>
public string? OriginalTitle { get; set; }
/// <summary>
/// Gets or sets a brief description or summary of the album.
/// </summary>
public string? Description { get; set; }
/// <summary>
/// Gets or sets the disambiguation comment of the album, used to distinguish albums with the same title.
/// </summary>
public string? Disambiguation { get; set; }
/// <summary>
/// Gets or sets the release information, including release date and other relevant details.
/// </summary>
public ReleaseInfoDto? ReleaseInfo { get; set; }
/// <summary>
/// Gets or sets the language of the album.
/// </summary>
public LanguageInfoDto? Language { get; set; }
/// <summary>
/// Gets or sets the original language of the album, if it has been translated.
/// </summary>
public LanguageInfoDto? OriginalLanguage { get; set; }
/// <summary>
/// Gets or sets the list of tags that further describe or categorize the album.
/// </summary>
public List<TagDto>? Tags { get; set; }
/// <summary>
/// Gets or sets the list of genres associated with the album.
/// </summary>
public List<GenreDto>? Genres { get; set; }
/// <summary>
/// Gets or sets the script used by the language of the release of the album.
/// </summary>
public string? Script { get; set; }
/// <summary>
/// Gets or sets the set of types of the release.
/// </summary>
public List<MusicReleaseType>? ReleaseTypes { get; set; }
/// <summary>
/// Gets or sets the status of the release.
/// </summary>
public MusicReleaseStatus? ReleaseStatus { get; set; }
/// <summary>
/// Gets or sets the number of discs of the release.
/// </summary>
public int? TotalDiscs { get; set; }
/// <summary>
/// Gets or sets the number of tracks of the release.
/// </summary>
public int? TotalTracks { get; set; }
/// <summary>
/// Gets or sets the title of the specific release (edition) the album files match, if different from the release group title.
/// </summary>
public string? ReleaseTitle { get; set; }
}
@@ -0,0 +1,43 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for a MusicBrainz area, the geographic area a music artist is associated with.
/// </summary>
[DebuggerDisplay("Name: {Name}")]
public class MusicAreaDto
{
/// <summary>
/// Gets or sets the MusicBrainz identifier of the area.
/// </summary>
public Guid? MusicBrainzAreaId { get; set; }
/// <summary>
/// Gets or sets the name of the area.
/// </summary>
public string? Name { get; set; }
/// <summary>
/// Gets or sets the sort name of the area, if applicable.
/// </summary>
public string? SortName { get; set; }
/// <summary>
/// Gets or sets the disambiguation comment of the area, if applicable.
/// </summary>
public string? Disambiguation { get; set; }
/// <summary>
/// Gets or sets the MusicBrainz type of the area, if applicable.
/// </summary>
public string? Type { get; set; }
/// <summary>
/// Gets or sets the ISO 3166 code of the area, if applicable.
/// </summary>
public string? Iso3166Code { get; set; }
}
@@ -0,0 +1,53 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for an alternative name of a music artist.
/// </summary>
[DebuggerDisplay("Name: {Name}")]
public class MusicArtistAliasDto
{
/// <summary>
/// Gets or sets the name of the alias.
/// </summary>
public string? Name { get; set; }
/// <summary>
/// Gets or sets the sort name of the alias, if applicable.
/// </summary>
public string? SortName { get; set; }
/// <summary>
/// Gets or sets the type of the alias, if applicable.
/// </summary>
public string? Type { get; set; }
/// <summary>
/// Gets or sets the locale the alias is used in, if applicable.
/// </summary>
public string? Locale { get; set; }
/// <summary>
/// Gets or sets whether this is the primary alias of the artist.
/// </summary>
public bool IsPrimary { get; set; }
/// <summary>
/// Gets or sets the date the alias began being used, if applicable.
/// </summary>
public DateOnly? BeginDate { get; set; }
/// <summary>
/// Gets or sets the date the alias stopped being used, if applicable.
/// </summary>
public DateOnly? EndDate { get; set; }
/// <summary>
/// Gets or sets whether the alias is no longer used.
/// </summary>
public bool IsEnded { get; set; }
}
@@ -0,0 +1,81 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
using Lumina.Presentation.Web.Common.DTO.MediaContributors;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object carrying the full details of a music artist, as stored in the media library.
/// </summary>
[DebuggerDisplay("Name: {Metadata?.Name}")]
public class MusicArtistDto
{
/// <summary>
/// Gets or sets the Id of the artist.
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Gets or sets the Id of the media library this artist belongs to.
/// </summary>
public Guid LibraryId { get; set; }
/// <summary>
/// Gets or sets the path of the image representing the artist, if available.
/// </summary>
public string? CoverPath { get; set; }
/// <summary>
/// Gets or sets the metadata of the artist.
/// </summary>
public MusicArtistMetadataDto? Metadata { get; set; }
/// <summary>
/// Gets or sets the website of the artist, if applicable.
/// </summary>
public string? Website { get; set; }
/// <summary>
/// Gets or sets the MusicBrainz identifier of the artist, if applicable.
/// </summary>
public Guid? MusicBrainzArtistId { get; set; }
/// <summary>
/// Gets or sets the list of IPI (Interested Party Information) codes of the artist.
/// </summary>
public List<string>? Ipis { get; set; }
/// <summary>
/// Gets or sets the list of ISNI (International Standard Name Identifier) codes of the artist.
/// </summary>
public List<string>? Isnis { get; set; }
/// <summary>
/// Gets or sets the date and time when the artist was created.
/// </summary>
public DateTime CreatedOnUtc { get; set; }
/// <summary>
/// Gets or sets the optional date and time when the artist was updated.
/// </summary>
public DateTime? UpdatedOnUtc { get; set; }
/// <summary>
/// Gets or sets the list of references to the media contributors that make up the artist, each with the role they played.
/// </summary>
public List<MediaContributorReferenceDto>? Contributors { get; set; }
/// <summary>
/// Gets or sets the list of ratings for this artist.
/// </summary>
public List<AudioRatingDto>? Ratings { get; set; }
/// <summary>
/// Gets or sets the list of albums of the artist, each with its own list of tracks.
/// </summary>
public List<MusicAlbumDto>? Albums { get; set; }
}
@@ -0,0 +1,28 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for a lightweight music artist element, containing only the properties needed by the client for card-style navigation.
/// </summary>
[DebuggerDisplay("Name: {Name}")]
public class MusicArtistLiteDto
{
/// <summary>
/// Gets or sets the Id of the artist.
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Gets or sets the name of the artist.
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the path of the image representing the artist, if available.
/// </summary>
public string? CoverPath { get; set; }
}
@@ -0,0 +1,91 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.Enums.AudioLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for the metadata of a music artist.
/// </summary>
[DebuggerDisplay("Name: {Name}")]
public class MusicArtistMetadataDto
{
/// <summary>
/// Gets or sets the name of the artist.
/// </summary>
public string? Name { get; set; }
/// <summary>
/// Gets or sets the sort name of the artist, a variant of the name used when sorting artists, if applicable.
/// </summary>
public string? SortName { get; set; }
/// <summary>
/// Gets or sets the disambiguation comment of the artist, used to distinguish artists with the same name, if applicable.
/// </summary>
public string? Disambiguation { get; set; }
/// <summary>
/// Gets or sets the type of the artist, if applicable.
/// </summary>
public MusicArtistType? Type { get; set; }
/// <summary>
/// Gets or sets the gender of the artist, applicable only to artists that are persons or characters, if applicable.
/// </summary>
public MusicArtistGender? Gender { get; set; }
/// <summary>
/// Gets or sets the ISO 3166-1 alpha-2 code of the country the artist is associated with, if applicable.
/// </summary>
public string? Country { get; set; }
/// <summary>
/// Gets or sets the area the artist is primarily identified with, if applicable.
/// </summary>
public MusicAreaDto? Area { get; set; }
/// <summary>
/// Gets or sets the area the artist began in, if applicable.
/// </summary>
public MusicAreaDto? BeginArea { get; set; }
/// <summary>
/// Gets or sets the area the artist ended in, if applicable.
/// </summary>
public MusicAreaDto? EndArea { get; set; }
/// <summary>
/// Gets or sets the date the artist started existing, if applicable.
/// </summary>
public DateOnly? LifeSpanBegin { get; set; }
/// <summary>
/// Gets or sets the date the artist stopped existing, if applicable.
/// </summary>
public DateOnly? LifeSpanEnd { get; set; }
/// <summary>
/// Gets or sets whether the artist no longer exists.
/// </summary>
public bool IsEnded { get; set; }
/// <summary>
/// Gets or sets the list of genres associated with the artist.
/// </summary>
public List<GenreDto>? Genres { get; set; }
/// <summary>
/// Gets or sets the list of tags that further describe or categorize the artist.
/// </summary>
public List<TagDto>? Tags { get; set; }
/// <summary>
/// Gets or sets the list of alternative names of the artist.
/// </summary>
public List<MusicArtistAliasDto>? Aliases { get; set; }
}
@@ -0,0 +1,113 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.DTO.MediaContributors;
using Lumina.Presentation.Web.Common.Enums.AudioLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object carrying the full details of a track, as stored in the media library.
/// </summary>
[DebuggerDisplay("Title: {Metadata?.Title}")]
public class MusicTrackDto
{
/// <summary>
/// Gets or sets the Id of the track.
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Gets or sets the Id of the album the track belongs to.
/// </summary>
public Guid AlbumId { get; set; }
/// <summary>
/// Gets or sets the Id of the media library this track belongs to.
/// </summary>
public Guid LibraryId { get; set; }
/// <summary>
/// Gets or sets the file system path of the track.
/// </summary>
public string Path { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the audio metadata of the track.
/// </summary>
public MusicTrackMetadataDto? Metadata { get; set; }
/// <summary>
/// Gets or sets the number of the track on its disc.
/// </summary>
public int TrackNumber { get; set; }
/// <summary>
/// Gets or sets the number of the disc the track belongs to, if applicable.
/// </summary>
public int? DiscNumber { get; set; }
/// <summary>
/// Gets or sets the script used by the language of the track, if applicable.
/// </summary>
public string? Script { get; set; }
/// <summary>
/// Gets or sets the musical key of the track, if applicable.
/// </summary>
public MusicKey? Key { get; set; }
/// <summary>
/// Gets or sets the tempo of the track in beats per minute, if applicable.
/// </summary>
public int? Bpm { get; set; }
/// <summary>
/// Gets or sets the work the track is a recording of, if applicable.
/// </summary>
public MusicWorkDto? Work { get; set; }
/// <summary>
/// Gets or sets the MusicBrainz identifier of the recording, if applicable.
/// </summary>
public Guid? MusicBrainzRecordingId { get; set; }
/// <summary>
/// Gets or sets the MusicBrainz identifier of the track, if applicable.
/// </summary>
public Guid? MusicBrainzTrackId { get; set; }
/// <summary>
/// Gets or sets the date and time when the track was created.
/// </summary>
public DateTime CreatedOnUtc { get; set; }
/// <summary>
/// Gets or sets the optional date and time when the track was updated.
/// </summary>
public DateTime? UpdatedOnUtc { get; set; }
/// <summary>
/// Gets or sets the list of moods of the track.
/// </summary>
public List<MoodDto>? Moods { get; set; }
/// <summary>
/// Gets or sets the list of ISRC (International Standard Recording Code) of the track.
/// </summary>
public List<IsrcDto>? Isrcs { get; set; }
/// <summary>
/// Gets or sets the list of references to the media contributors that performed on the track, each with the role they played.
/// </summary>
public List<MediaContributorReferenceDto>? Contributors { get; set; }
/// <summary>
/// Gets or sets the list of ratings for this track.
/// </summary>
public List<AudioRatingDto>? Ratings { get; set; }
}
@@ -0,0 +1,38 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for a lightweight track element, containing only the properties needed by the client to display the tracks of an album.
/// </summary>
[DebuggerDisplay("Title: {Title}")]
public class MusicTrackLiteDto
{
/// <summary>
/// Gets or sets the Id of the track.
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Gets or sets the title of the track.
/// </summary>
public string Title { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the number of the track on its disc.
/// </summary>
public int TrackNumber { get; set; }
/// <summary>
/// Gets or sets the number of the disc the track belongs to, if applicable.
/// </summary>
public int? DiscNumber { get; set; }
/// <summary>
/// Gets or sets the duration of the track in seconds.
/// </summary>
public int DurationInSeconds { get; set; }
}
@@ -0,0 +1,119 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.Common;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for the audio metadata of a track.
/// </summary>
[DebuggerDisplay("Title: {Title}")]
public class MusicTrackMetadataDto
{
/// <summary>
/// Gets or sets the title of the track.
/// </summary>
public string? Title { get; set; }
/// <summary>
/// Gets or sets the original title of the track, if different from the current title.
/// </summary>
public string? OriginalTitle { get; set; }
/// <summary>
/// Gets or sets a brief description or summary of the track.
/// </summary>
public string? Description { get; set; }
/// <summary>
/// Gets or sets the disambiguation comment of the track, used to distinguish tracks with the same title.
/// </summary>
public string? Disambiguation { get; set; }
/// <summary>
/// Gets or sets the release information, including release date and other relevant details.
/// </summary>
public ReleaseInfoDto? ReleaseInfo { get; set; }
/// <summary>
/// Gets or sets the language of the track.
/// </summary>
public LanguageInfoDto? Language { get; set; }
/// <summary>
/// Gets or sets the original language of the track, if it has been translated.
/// </summary>
public LanguageInfoDto? OriginalLanguage { get; set; }
/// <summary>
/// Gets or sets the list of tags that further describe or categorize the track.
/// </summary>
public List<TagDto>? Tags { get; set; }
/// <summary>
/// Gets or sets the list of genres associated with the track.
/// </summary>
public List<GenreDto>? Genres { get; set; }
/// <summary>
/// Gets or sets whether the recording of the track is a video recording.
/// </summary>
public bool IsVideo { get; set; }
/// <summary>
/// Gets or sets the duration of the audio of the track in seconds.
/// </summary>
public int? DurationInSeconds { get; set; }
/// <summary>
/// Gets or sets the sample rate of the audio of the track in Hz.
/// </summary>
public int? SampleRate { get; set; }
/// <summary>
/// Gets or sets the number of audio channels of the track.
/// </summary>
public int? Channels { get; set; }
/// <summary>
/// Gets or sets the bit depth of the audio of the track.
/// </summary>
public int? BitDepth { get; set; }
/// <summary>
/// Gets or sets the audio codec used by the track.
/// </summary>
public string? AudioCodec { get; set; }
/// <summary>
/// Gets or sets the bitrate of the audio of the track in kbps.
/// </summary>
public int? Bitrate { get; set; }
/// <summary>
/// Gets or sets the AcoustID fingerprint identifier of the audio file of the track.
/// </summary>
public string? AcoustId { get; set; }
/// <summary>
/// Gets or sets the ReplayGain track gain of the track in decibels.
/// </summary>
public decimal? ReplayGainTrackGain { get; set; }
/// <summary>
/// Gets or sets the ReplayGain track peak of the track.
/// </summary>
public decimal? ReplayGainTrackPeak { get; set; }
/// <summary>
/// Gets or sets the ReplayGain album gain of the track in decibels.
/// </summary>
public decimal? ReplayGainAlbumGain { get; set; }
/// <summary>
/// Gets or sets the ReplayGain album peak of the track.
/// </summary>
public decimal? ReplayGainAlbumPeak { get; set; }
}
@@ -0,0 +1,40 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.Common;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for a MusicBrainz work, the musical composition a track is a recording of.
/// </summary>
[DebuggerDisplay("Title: {Title}")]
public class MusicWorkDto
{
/// <summary>
/// Gets or sets the MusicBrainz identifier of the work.
/// </summary>
public Guid? MusicBrainzWorkId { get; set; }
/// <summary>
/// Gets or sets the title of the work.
/// </summary>
public string? Title { get; set; }
/// <summary>
/// Gets or sets the MusicBrainz type of the work, if applicable.
/// </summary>
public string? Type { get; set; }
/// <summary>
/// Gets or sets the list of languages of the work.
/// </summary>
public List<LanguageInfoDto>? Languages { get; set; }
/// <summary>
/// Gets or sets the list of ISWC (International Standard Musical Work Code) of the work.
/// </summary>
public List<string>? Iswcs { get; set; }
}
@@ -0,0 +1,38 @@
#region ========================================================================= USING =====================================================================================
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for a paginated collection of lightweight album elements, together with pagination metadata.
/// </summary>
[DebuggerDisplay("CurrentPage: {CurrentPage}; Count: {Count}")]
public class PaginatedMusicAlbumLiteDto
{
/// <summary>
/// Gets or sets the collection of lightweight album elements associated with this instance.
/// </summary>
public IReadOnlyList<MusicAlbumLiteDto> Data { get; set; } = [];
/// <summary>
/// Gets or sets the current page number in a paginated collection.
/// </summary>
public int CurrentPage { get; set; }
/// <summary>
/// Gets or sets the number of items to include per page in paginated results.
/// </summary>
public int PerPage { get; set; }
/// <summary>
/// Gets or sets the total number of elements available in the paginated result set.
/// </summary>
public int Count { get; set; }
/// <summary>
/// Gets or sets the total number of pages based on elements available in the result set and per page.
/// </summary>
public int NumberOfPages { get; set; }
}
@@ -0,0 +1,38 @@
#region ========================================================================= USING =====================================================================================
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for a paginated collection of lightweight music artist elements, together with pagination metadata.
/// </summary>
[DebuggerDisplay("CurrentPage: {CurrentPage}; Count: {Count}")]
public class PaginatedMusicArtistLiteDto
{
/// <summary>
/// Gets or sets the collection of lightweight music artist elements associated with this instance.
/// </summary>
public IReadOnlyList<MusicArtistLiteDto> Data { get; set; } = [];
/// <summary>
/// Gets or sets the current page number in a paginated collection.
/// </summary>
public int CurrentPage { get; set; }
/// <summary>
/// Gets or sets the number of items to include per page in paginated results.
/// </summary>
public int PerPage { get; set; }
/// <summary>
/// Gets or sets the total number of elements available in the paginated result set.
/// </summary>
public int Count { get; set; }
/// <summary>
/// Gets or sets the total number of pages based on elements available in the result set and per page.
/// </summary>
public int NumberOfPages { get; set; }
}
@@ -0,0 +1,38 @@
#region ========================================================================= USING =====================================================================================
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for a paginated collection of lightweight track elements, together with pagination metadata.
/// </summary>
[DebuggerDisplay("CurrentPage: {CurrentPage}; Count: {Count}")]
public class PaginatedMusicTrackLiteDto
{
/// <summary>
/// Gets or sets the collection of lightweight track elements associated with this instance.
/// </summary>
public IReadOnlyList<MusicTrackLiteDto> Data { get; set; } = [];
/// <summary>
/// Gets or sets the current page number in a paginated collection.
/// </summary>
public int CurrentPage { get; set; }
/// <summary>
/// Gets or sets the number of items to include per page in paginated results.
/// </summary>
public int PerPage { get; set; }
/// <summary>
/// Gets or sets the total number of elements available in the paginated result set.
/// </summary>
public int Count { get; set; }
/// <summary>
/// Gets or sets the total number of pages based on elements available in the result set and per page.
/// </summary>
public int NumberOfPages { get; set; }
}
@@ -0,0 +1,17 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
/// <summary>
/// Data transfer object for the response of an update music cover operation.
/// </summary>
[DebuggerDisplay("CoverPath: {CoverPath}")]
public class UpdateMusicCoverDto
{
/// <summary>
/// Gets or sets the relative path of the stored cover image.
/// </summary>
public string? CoverPath { get; set; }
}
@@ -0,0 +1,28 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Enums.MediaLibrary;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.Common;
/// <summary>
/// Data transfer object for a stored piece of artwork of a media item.
/// </summary>
[DebuggerDisplay("Type: {Type}, Ordinal: {Ordinal}, Path: {Path}")]
public class MediaArtworkDto
{
/// <summary>
/// Gets or sets the type of the artwork, like the cover or the back of the media item.
/// </summary>
public ArtworkType Type { get; set; }
/// <summary>
/// Gets or sets the ordinal of the artwork within its type, so that multiple artworks of the same type can be ordered.
/// </summary>
public int Ordinal { get; set; }
/// <summary>
/// Gets or sets the relative path of the stored artwork file.
/// </summary>
public string Path { get; set; } = string.Empty;
}
@@ -0,0 +1,17 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.Common;
/// <summary>
/// Data transfer object for a mood of a media element.
/// </summary>
[DebuggerDisplay("Name: {Name}")]
public class MoodDto
{
/// <summary>
/// Gets or sets the name of the mood.
/// </summary>
public string? Name { get; set; }
}
@@ -0,0 +1,24 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Enums.MediaContributors;
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.MediaContributors;
/// <summary>
/// Data transfer object for the reference to a media contributor in a media item, carrying the role the contributor played.
/// </summary>
[DebuggerDisplay("{ContributorId} - {Role}")]
public class MediaContributorReferenceDto
{
/// <summary>
/// Gets or sets the unique identifier of the media contributor.
/// </summary>
public Guid ContributorId { get; set; }
/// <summary>
/// Gets or sets the role the contributor played.
/// </summary>
public MediaContributorRole? Role { get; set; }
}
@@ -0,0 +1,32 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Enums.AudioLibrary;
/// <summary>
/// Enumeration for the gender of a music artist, applicable only to artists that are persons or characters.
/// </summary>
[DebuggerDisplay("{ToString()}")]
public enum MusicArtistGender
{
/// <summary>
/// The artist identifies as male.
/// </summary>
Male,
/// <summary>
/// The artist identifies as female.
/// </summary>
Female,
/// <summary>
/// The artist identifies with a gender other than male or female.
/// </summary>
Other,
/// <summary>
/// The gender of the artist is not applicable, or is deliberately not stated.
/// </summary>
NotApplicable
}
@@ -0,0 +1,42 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Enums.AudioLibrary;
/// <summary>
/// Enumeration for the type of a music artist, describing whether the artist is an individual, an ensemble, or something else.
/// </summary>
[DebuggerDisplay("{ToString()}")]
public enum MusicArtistType
{
/// <summary>
/// The artist is an individual person.
/// </summary>
Person,
/// <summary>
/// The artist is a group of people that may or may not have a distinctive name.
/// </summary>
Group,
/// <summary>
/// The artist is an orchestra, a large instrumental ensemble.
/// </summary>
Orchestra,
/// <summary>
/// The artist is a choir or chorus, a large vocal ensemble.
/// </summary>
Choir,
/// <summary>
/// The artist is an individual fictional character.
/// </summary>
Character,
/// <summary>
/// The type of the artist does not fit into any of the known categories.
/// </summary>
Other
}
@@ -0,0 +1,132 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Enums.AudioLibrary;
/// <summary>
/// Enumeration for the musical key of a track, describing the pitch and the major or minor mode of the key.
/// </summary>
[DebuggerDisplay("{ToString()}")]
public enum MusicKey
{
/// <summary>
/// The musical key of C major.
/// </summary>
CMajor,
/// <summary>
/// The musical key of C sharp major.
/// </summary>
CSharpMajor,
/// <summary>
/// The musical key of D major.
/// </summary>
DMajor,
/// <summary>
/// The musical key of D sharp major.
/// </summary>
DSharpMajor,
/// <summary>
/// The musical key of E major.
/// </summary>
EMajor,
/// <summary>
/// The musical key of F major.
/// </summary>
FMajor,
/// <summary>
/// The musical key of F sharp major.
/// </summary>
FSharpMajor,
/// <summary>
/// The musical key of G major.
/// </summary>
GMajor,
/// <summary>
/// The musical key of G sharp major.
/// </summary>
GSharpMajor,
/// <summary>
/// The musical key of A major.
/// </summary>
AMajor,
/// <summary>
/// The musical key of A sharp major.
/// </summary>
ASharpMajor,
/// <summary>
/// The musical key of B major.
/// </summary>
BMajor,
/// <summary>
/// The musical key of C minor.
/// </summary>
CMinor,
/// <summary>
/// The musical key of C sharp minor.
/// </summary>
CSharpMinor,
/// <summary>
/// The musical key of D minor.
/// </summary>
DMinor,
/// <summary>
/// The musical key of D sharp minor.
/// </summary>
DSharpMinor,
/// <summary>
/// The musical key of E minor.
/// </summary>
EMinor,
/// <summary>
/// The musical key of F minor.
/// </summary>
FMinor,
/// <summary>
/// The musical key of F sharp minor.
/// </summary>
FSharpMinor,
/// <summary>
/// The musical key of G minor.
/// </summary>
GMinor,
/// <summary>
/// The musical key of G sharp minor.
/// </summary>
GSharpMinor,
/// <summary>
/// The musical key of A minor.
/// </summary>
AMinor,
/// <summary>
/// The musical key of A sharp minor.
/// </summary>
ASharpMinor,
/// <summary>
/// The musical key of B minor.
/// </summary>
BMinor
}
@@ -0,0 +1,577 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Enums.AudioLibrary;
/// <summary>
/// Enumeration for the physical or digital medium of a music release.
/// </summary>
[DebuggerDisplay("{ToString()}")]
public enum MusicMediaFormat
{
/// <summary>
/// The release was distributed on a 10 inch acetate disc.
/// </summary>
Inch10Acetate,
/// <summary>
/// The release was distributed on a 10 inch shellac disc.
/// </summary>
Inch10Shellac,
/// <summary>
/// The release was distributed on a 10 inch vinyl record.
/// </summary>
Inch10Vinyl,
/// <summary>
/// The release was distributed on a 12 inch acetate disc.
/// </summary>
Inch12Acetate,
/// <summary>
/// The release was distributed on a 12 inch LaserDisc.
/// </summary>
Inch12LaserDisc,
/// <summary>
/// The release was distributed on a 12 inch shellac disc.
/// </summary>
Inch12Shellac,
/// <summary>
/// The release was distributed on a 12 inch vinyl record.
/// </summary>
Inch12Vinyl,
/// <summary>
/// The release was distributed on a 3 inch vinyl record.
/// </summary>
Inch3Vinyl,
/// <summary>
/// The release was distributed on a 3.5 inch floppy disk.
/// </summary>
Inch3_5FloppyDisk,
/// <summary>
/// The release was distributed on a 5.25 inch floppy disk.
/// </summary>
Inch5_25FloppyDisk,
/// <summary>
/// The release was distributed on a 7 inch acetate disc.
/// </summary>
Inch7Acetate,
/// <summary>
/// The release was distributed on a 7 inch flexi disc.
/// </summary>
Inch7FlexiDisc,
/// <summary>
/// The release was distributed on a 7 inch shellac disc.
/// </summary>
Inch7Shellac,
/// <summary>
/// The release was distributed on a 7 inch vinyl record.
/// </summary>
Inch7Vinyl,
/// <summary>
/// The release was distributed on an 8 inch LaserDisc.
/// </summary>
Inch8LaserDisc,
/// <summary>
/// The release was distributed on an 8-track cartridge.
/// </summary>
EightTrackCartridge,
/// <summary>
/// The release was distributed on an 8 cm compact disc.
/// </summary>
Cm8CD,
/// <summary>
/// The release was distributed on an 8 cm compact disc with graphics.
/// </summary>
Cm8CDPlusG,
/// <summary>
/// The release was distributed on an 8 cm recordable compact disc.
/// </summary>
Cm8CDMinusR,
/// <summary>
/// The release was distributed on an acetate disc.
/// </summary>
Acetate,
/// <summary>
/// The release was distributed on a Betacam SP videotape.
/// </summary>
BetacamSP,
/// <summary>
/// The release was distributed on a Betamax videocassette.
/// </summary>
Betamax,
/// <summary>
/// The release was distributed on a Blu-ray disc.
/// </summary>
BluRay,
/// <summary>
/// The release was distributed on a recordable Blu-ray disc.
/// </summary>
BluRayMinusR,
/// <summary>
/// The release was distributed on a Blu-spec compact disc.
/// </summary>
BluSpecCD,
/// <summary>
/// The release was distributed on a cartridge.
/// </summary>
Cartridge,
/// <summary>
/// The release was distributed on a compact cassette.
/// </summary>
Cassette,
/// <summary>
/// The release was distributed on a compact disc.
/// </summary>
CD,
/// <summary>
/// The release was distributed on a compact disc with graphics.
/// </summary>
CDPlusG,
/// <summary>
/// The release was distributed on a CD-i (compact disc interactive).
/// </summary>
CDMinusi,
/// <summary>
/// The release was distributed on a recordable compact disc.
/// </summary>
CDMinusR,
/// <summary>
/// The release was distributed on a CD Video.
/// </summary>
CDV,
/// <summary>
/// The release was distributed on a Capacitance Electronic Disc.
/// </summary>
CED,
/// <summary>
/// The release was distributed on a copy-controlled compact disc.
/// </summary>
CopyControlCD,
/// <summary>
/// The release was distributed on a Digital Audio Tape.
/// </summary>
DAT,
/// <summary>
/// The release was distributed on a compact disc used for data storage.
/// </summary>
DataCD,
/// <summary>
/// The release was distributed on a DVD used for data storage.
/// </summary>
DataDVD,
/// <summary>
/// The release was distributed on a recordable DVD used for data storage.
/// </summary>
DataDVDMinusR,
/// <summary>
/// The release was distributed on a DataPlay disc.
/// </summary>
DataPlay,
/// <summary>
/// The release was distributed on a Digital Compact Cassette.
/// </summary>
DCC,
/// <summary>
/// The release was distributed as a digital download or stream.
/// </summary>
DigitalMedia,
/// <summary>
/// The release was distributed on a download card.
/// </summary>
DownloadCard,
/// <summary>
/// The release was distributed on a DTS-compatible compact disc.
/// </summary>
DTSCD,
/// <summary>
/// The release was distributed on a DualDisc.
/// </summary>
DualDisc,
/// <summary>
/// The release was distributed on the CD side of a DualDisc.
/// </summary>
DualDiscCDSide,
/// <summary>
/// The release was distributed on the DVD side of a DualDisc.
/// </summary>
DualDiscDVDSide,
/// <summary>
/// The release was distributed on the DVD-audio side of a DualDisc.
/// </summary>
DualDiscDVDAudioSide,
/// <summary>
/// The release was distributed on the DVD-video side of a DualDisc.
/// </summary>
DualDiscDVDVideoSide,
/// <summary>
/// The release was distributed on a DVD.
/// </summary>
DVD,
/// <summary>
/// The release was distributed on a DVD-Audio.
/// </summary>
DVDAudio,
/// <summary>
/// The release was distributed on a recordable DVD used for video.
/// </summary>
DVDMinusRVideo,
/// <summary>
/// The release was distributed on a DVD-Video.
/// </summary>
DVDVideo,
/// <summary>
/// The release was distributed on a DVD+.
/// </summary>
DVDPlus,
/// <summary>
/// The release was distributed on the CD side of a DVD+.
/// </summary>
DVDPlusCDSide,
/// <summary>
/// The release was distributed on the DVD-audio side of a DVD+.
/// </summary>
DVDPlusDVDAudioSide,
/// <summary>
/// The release was distributed on the DVD-video side of a DVD+.
/// </summary>
DVDPlusDVDVideoSide,
/// <summary>
/// The release was distributed on an Edison Diamond Disc.
/// </summary>
EdisonDiamondDisc,
/// <summary>
/// The release was distributed on an enhanced compact disc.
/// </summary>
EnhancedCD,
/// <summary>
/// The release was distributed on a flexi disc.
/// </summary>
FlexiDisc,
/// <summary>
/// The release was distributed on a floppy disk.
/// </summary>
FloppyDisk,
/// <summary>
/// The release was distributed on an HD DVD.
/// </summary>
HDDVD,
/// <summary>
/// The release was distributed on a High Definition Compatible Digital compact disc.
/// </summary>
HDCD,
/// <summary>
/// The release was distributed on a HiPac.
/// </summary>
HiPac,
/// <summary>
/// The release was distributed on a High Quality compact disc.
/// </summary>
HQCD,
/// <summary>
/// The release was distributed on a hybrid Super Audio CD.
/// </summary>
HybridSACD,
/// <summary>
/// The release was distributed on the CD layer of a hybrid Super Audio CD.
/// </summary>
HybridSACDCDLayer,
/// <summary>
/// The release was distributed on the SACD layer of a hybrid Super Audio CD.
/// </summary>
HybridSACDSACDLayer,
/// <summary>
/// The release was distributed on the stereo SACD layer of a hybrid Super Audio CD.
/// </summary>
HybridSACDSACDLayer2Channels,
/// <summary>
/// The release was distributed on the multichannel SACD layer of a hybrid Super Audio CD.
/// </summary>
HybridSACDSACDLayerMultichannel,
/// <summary>
/// The release was distributed on a KiT album.
/// </summary>
KiTAlbum,
/// <summary>
/// The release was distributed on a LaserDisc.
/// </summary>
LaserDisc,
/// <summary>
/// The release was distributed on a microcassette.
/// </summary>
Microcassette,
/// <summary>
/// The release was distributed on a microSD card.
/// </summary>
MicroSD,
/// <summary>
/// The release was distributed on a MiniDisc.
/// </summary>
MiniDisc,
/// <summary>
/// The release was distributed on a mini DVD.
/// </summary>
MiniDVD,
/// <summary>
/// The release was distributed on a mini DVD-Audio.
/// </summary>
MiniDVDAudio,
/// <summary>
/// The release was distributed on a mini DVD-Video.
/// </summary>
MiniDVDVideo,
/// <summary>
/// The release was distributed on a MiniMax compact disc.
/// </summary>
MinimaxCD,
/// <summary>
/// The release was distributed on a MiniMax DVD.
/// </summary>
MinimaxDVD,
/// <summary>
/// The release was distributed on a MiniMax DVD-Audio.
/// </summary>
MinimaxDVDAudio,
/// <summary>
/// The release was distributed on a MiniMax DVD-Video.
/// </summary>
MinimaxDVDVideo,
/// <summary>
/// The release was distributed on a mixed-mode compact disc.
/// </summary>
MixedModeCD,
/// <summary>
/// The medium of the release does not fall into any of the known categories.
/// </summary>
Other,
/// <summary>
/// The release was distributed on a Pathe disc.
/// </summary>
PatheDisc,
/// <summary>
/// The release was distributed on a phonograph record.
/// </summary>
PhonographRecord,
/// <summary>
/// The release was distributed on a piano roll.
/// </summary>
PianoRoll,
/// <summary>
/// The release was distributed on a Playbutton.
/// </summary>
Playbutton,
/// <summary>
/// The release was distributed on a PlayTape.
/// </summary>
PlayTape,
/// <summary>
/// The release was distributed on a reel-to-reel tape.
/// </summary>
ReelToReel,
/// <summary>
/// The release was distributed on a read-only memory cartridge.
/// </summary>
ROMCartridge,
/// <summary>
/// The release was distributed on a Super Audio CD.
/// </summary>
SACD,
/// <summary>
/// The release was distributed on a stereo Super Audio CD.
/// </summary>
SACD2Channels,
/// <summary>
/// The release was distributed on a multichannel Super Audio CD.
/// </summary>
SACDMultichannel,
/// <summary>
/// The release was distributed on an SD card.
/// </summary>
SDCard,
/// <summary>
/// The release was distributed on a shellac disc.
/// </summary>
Shellac,
/// <summary>
/// The release was distributed on a Super High Material compact disc.
/// </summary>
SHMCD,
/// <summary>
/// The release was distributed on a Super High Material Super Audio CD.
/// </summary>
SHMSACD,
/// <summary>
/// The release was distributed on a multichannel Super High Material Super Audio CD.
/// </summary>
SHMSACDMultichannel,
/// <summary>
/// The release was distributed on a slotMusic card.
/// </summary>
SlotMusic,
/// <summary>
/// The release was distributed on a Super Video CD.
/// </summary>
SVCD,
/// <summary>
/// The release was distributed on a Tefifon cartridge.
/// </summary>
Tefifon,
/// <summary>
/// The release was distributed on a Universal Media Disc.
/// </summary>
UMD,
/// <summary>
/// The release was distributed on a USB flash drive.
/// </summary>
USBFlashDrive,
/// <summary>
/// The release was distributed on a Video CD.
/// </summary>
VCD,
/// <summary>
/// The release was distributed on a Video High Density disc.
/// </summary>
VHD,
/// <summary>
/// The release was distributed on a VHS videocassette.
/// </summary>
VHS,
/// <summary>
/// The release was distributed on a vinyl record.
/// </summary>
Vinyl,
/// <summary>
/// The release was distributed on a VinylDisc.
/// </summary>
VinylDisc,
/// <summary>
/// The release was distributed on the CD side of a VinylDisc.
/// </summary>
VinylDiscCDSide,
/// <summary>
/// The release was distributed on the DVD side of a VinylDisc.
/// </summary>
VinylDiscDVDSide,
/// <summary>
/// The release was distributed on the vinyl side of a VinylDisc.
/// </summary>
VinylDiscVinylSide,
/// <summary>
/// The release was distributed on a wax cylinder.
/// </summary>
WaxCylinder,
/// <summary>
/// The release was distributed on a Zip disk.
/// </summary>
ZipDisk
}
@@ -0,0 +1,132 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Enums.AudioLibrary;
/// <summary>
/// Enumeration for the outermost physical packaging of a music release.
/// </summary>
[DebuggerDisplay("{ToString()}")]
public enum MusicReleasePackaging
{
/// <summary>
/// The release is a book with a sleeve containing a medium, usually a compact disc.
/// </summary>
Book,
/// <summary>
/// The release is a box with a lid or an opening that contains the medium and other packaging, like posters and a booklet.
/// </summary>
Box,
/// <summary>
/// The release is a sleeve made of paper, paperboard, or cardboard.
/// </summary>
CardboardPaperSleeve,
/// <summary>
/// The release is a regular plastic case for a cassette.
/// </summary>
CassetteCase,
/// <summary>
/// The release is a minimalistic plastic case where the back and the front are kept together by a small hinge.
/// </summary>
ClamshellCase,
/// <summary>
/// The release is a bounded booklet, usually in hardcover, with a sleeve bound to its spine that houses a compact disc.
/// </summary>
Digibook,
/// <summary>
/// The release is a folded cardboard compact disc packaging that has a small pocket on one side for the disc.
/// </summary>
Digifile,
/// <summary>
/// The release is a folded case, typically made of coated paperboard, with one or more plastic trays glued into it.
/// </summary>
Digipak,
/// <summary>
/// The release is a pouch-like package with an internal mechanism that pushes the contents out when the lid flap is opened.
/// </summary>
DiscboxSlider,
/// <summary>
/// The release is a double-sided, double-width jewel case normally holding two to four compact discs.
/// </summary>
Fatbox,
/// <summary>
/// The release is a cardboard sleeve that folds in halves, thirds, or more, and can hold multiple records, compact discs, booklets, or posters.
/// </summary>
GatefoldCover,
/// <summary>
/// The release is the traditional compact disc case, made of hard, brittle plastic.
/// </summary>
JewelCase,
/// <summary>
/// The release is the traditional DVD case, made of soft plastic with a thin transparent cover protecting the artwork.
/// </summary>
KeepCase,
/// <summary>
/// The release is a large cardboard box, often used to sell compact discs in North America so that they would fit vinyl racks.
/// </summary>
Longbox,
/// <summary>
/// The release is an often decorated metal tin containing one or more compact discs.
/// </summary>
MetalTin,
/// <summary>
/// The release is a sleeve made entirely of plastic that holds the medium and the other parts of the album.
/// </summary>
PlasticSleeve,
/// <summary>
/// The release is a box with openings at its two ends that contains a tray holding the medium.
/// </summary>
Slidepack,
/// <summary>
/// The release is a thinner jewel case, commonly used for compact disc singles.
/// </summary>
SlimJewelCase,
/// <summary>
/// The release is a four or five-sided box that surrounds a second inner package such as a jewel case.
/// </summary>
Slipcase,
/// <summary>
/// The release is a digipak-like case held together with a snapping plastic closure.
/// </summary>
SnapCase,
/// <summary>
/// The release is a cardboard jacket, commonly used for 8cm compact disc singles in Japan.
/// </summary>
SnapPack,
/// <summary>
/// The release is a case similar to the regular jewel case, but with rounded corners and a latch closing mechanism.
/// </summary>
SuperJewelBox,
/// <summary>
/// The packaging of the release does not fit into any of the known categories.
/// </summary>
Other,
/// <summary>
/// The release has no packaging at all, which is common for digital media.
/// </summary>
None
}
@@ -0,0 +1,47 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Enums.AudioLibrary;
/// <summary>
/// Enumeration for the status of a music release, describing the officiality of the release.
/// </summary>
[DebuggerDisplay("{ToString()}")]
public enum MusicReleaseStatus
{
/// <summary>
/// The release was distributed without the authorization of the artist or label.
/// </summary>
Bootleg,
/// <summary>
/// The release was announced but never distributed.
/// </summary>
Cancelled,
/// <summary>
/// The release was expunged from the catalog of the artist or label.
/// </summary>
Expunged,
/// <summary>
/// The release was released through official channels.
/// </summary>
Official,
/// <summary>
/// The release was distributed for promotional purposes only.
/// </summary>
Promotion,
/// <summary>
/// The release is a pseudo-release, not an actual release by the artist.
/// </summary>
PseudoRelease,
/// <summary>
/// The release was distributed but later withdrawn from circulation.
/// </summary>
Withdrawn
}
@@ -0,0 +1,97 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Enums.AudioLibrary;
/// <summary>
/// Enumeration for the type of a music release, describing the format of the release in terms of its content.
/// </summary>
[DebuggerDisplay("{ToString()}")]
public enum MusicReleaseType
{
/// <summary>
/// A release consisting of a collection of tracks.
/// </summary>
Album,
/// <summary>
/// A release that was aired as a broadcast.
/// </summary>
Broadcast,
/// <summary>
/// A release that is longer than a single but shorter than an album.
/// </summary>
Ep,
/// <summary>
/// The type of the release does not fall into any of the known categories.
/// </summary>
Other,
/// <summary>
/// A release consisting of a small number of tracks.
/// </summary>
Single,
/// <summary>
/// A release containing a dramatized audio performance.
/// </summary>
AudioDrama,
/// <summary>
/// A release containing a recording of a book being read aloud.
/// </summary>
AudioBook,
/// <summary>
/// A release that gathers tracks from various sources or artists.
/// </summary>
Compilation,
/// <summary>
/// A release containing a continuous mix of tracks by a DJ.
/// </summary>
DjMix,
/// <summary>
/// A release of demo recordings, typically distributed before the official release.
/// </summary>
Demo,
/// <summary>
/// A release containing an audio recording made outside of a studio.
/// </summary>
FieldRecording,
/// <summary>
/// A release containing a recorded interview.
/// </summary>
Interview,
/// <summary>
/// A release recorded during a live performance.
/// </summary>
Live,
/// <summary>
/// A release containing a compilation of tracks, typically distributed outside of official channels.
/// </summary>
Mixtape,
/// <summary>
/// A release containing modified or reinterpreted versions of original recordings.
/// </summary>
Remix,
/// <summary>
/// A release containing music written for a motion picture or television program.
/// </summary>
Soundtrack,
/// <summary>
/// A release containing spoken word content.
/// </summary>
SpokenWord
}
@@ -0,0 +1,92 @@
namespace Lumina.Presentation.Web.Common.Enums.MediaLibrary;
/// <summary>
/// Enumeration for the type of artwork of a media library item.
/// </summary>
public enum ArtworkType
{
/// <summary>
/// The main artwork of the media library item, like the cover of a book.
/// </summary>
Cover,
/// <summary>
/// The front of the artwork of the media library item, when it is stored separately from the cover.
/// </summary>
Front,
/// <summary>
/// The back of the artwork of the media library item.
/// </summary>
Back,
/// <summary>
/// A page of the booklet of the media library item.
/// </summary>
Booklet,
/// <summary>
/// The artwork printed on the medium of the media library item, like a disc label.
/// </summary>
Medium,
/// <summary>
/// The artwork printed on the tray of the media library item.
/// </summary>
Tray,
/// <summary>
/// The artwork printed on the spine of the media library item.
/// </summary>
Spine,
/// <summary>
/// The obi strip of the media library item.
/// </summary>
Obi,
/// <summary>
/// The sticker of the media library item.
/// </summary>
Sticker,
/// <summary>
/// The poster of the media library item.
/// </summary>
Poster,
/// <summary>
/// The liner notes of the media library item.
/// </summary>
Liner,
/// <summary>
/// A watermark carried by the artwork of the media library item.
/// </summary>
Watermark,
/// <summary>
/// The backdrop, or fanart, of the media library item.
/// </summary>
Backdrop,
/// <summary>
/// The banner of the media library item.
/// </summary>
Banner,
/// <summary>
/// The logo of the media library item.
/// </summary>
Logo,
/// <summary>
/// The thumbnail of the media library item.
/// </summary>
Thumb,
/// <summary>
/// Any other artwork of the media library item.
/// </summary>
Other,
}
@@ -0,0 +1,21 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Albums;
/// <summary>
/// Represents a request to get the lightweight details of the albums of a music artist.
/// </summary>
/// <param name="ArtistId">The unique identifier of the artist whose albums are retrieved, taken from the route. Required.</param>
/// <param name="LibraryId">The unique identifier of the media library the artist belongs to. Required.</param>
/// <param name="CurrentPage">The page of results to retrieve. Optional.</param>
/// <param name="PerPage">The maximum number of albums to retrieve per page. Optional.</param>
[DebuggerDisplay("ArtistId: {ArtistId}")]
public record GetArtistAlbumsLiteRequest(
string ArtistId,
Guid LibraryId,
int? CurrentPage,
int? PerPage
);
@@ -0,0 +1,19 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Albums;
/// <summary>
/// Represents a request for displaying the details of an album of a music artist.
/// </summary>
/// <param name="ArtistId">The unique identifier of the artist the album belongs to, taken from the route. Required.</param>
/// <param name="AlbumId">The unique identifier of the album whose details are displayed, taken from the route. Required.</param>
/// <param name="LibraryId">The Id of the media library the album belongs to. Required.</param>
[DebuggerDisplay("AlbumId: {AlbumId}")]
public record GetMusicAlbumViewRequest(
string ArtistId,
string AlbumId,
Guid LibraryId
);
@@ -0,0 +1,42 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.AudioLibrary;
using Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
using Lumina.Presentation.Web.Common.DTO.MediaContributors;
using Lumina.Presentation.Web.Common.Enums.AudioLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Albums;
/// <summary>
/// Represents a request to update an existing album of a music artist.
/// </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="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. Required.</param>
/// <param name="Ratings">The list of ratings for this album. Required.</param>
[DebuggerDisplay("Title: {Metadata?.Title}")]
public record UpdateMusicAlbumRequest(
MusicAlbumMetadataDto? Metadata,
MusicMediaFormat? MediaFormat,
MusicReleasePackaging? Packaging,
string? Barcode,
List<string>? CatalogNumbers,
string? Label,
string? ASIN,
Guid? MusicBrainzReleaseId,
Guid? MusicBrainzReleaseGroupId,
Guid? MusicBrainzReleaseArtistId,
List<MediaContributorReferenceDto>? Contributors,
List<AudioRatingDto>? Ratings
);
@@ -0,0 +1,17 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Artists;
/// <summary>
/// Represents a request for displaying the details of a music artist.
/// </summary>
/// <param name="ArtistId">The unique identifier of the artist whose details are displayed, taken from the route. Required.</param>
/// <param name="LibraryId">The Id of the media library the artist belongs to. Required.</param>
[DebuggerDisplay("ArtistId: {ArtistId}")]
public record GetMusicArtistViewRequest(
string ArtistId,
Guid LibraryId
);
@@ -0,0 +1,34 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Enums.Common;
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Artists;
/// <summary>
/// Represents a request to get the lightweight details of the artists of a media library.
/// </summary>
/// <param name="LibraryId">The unique identifier of the media library whose artists are retrieved. Required.</param>
/// <param name="CurrentPage">The page of results to retrieve. Optional.</param>
/// <param name="PerPage">The maximum number of artists to retrieve per page. Optional.</param>
/// <param name="SearchTerm">The search term used to filter the artists by name. Optional.</param>
/// <param name="FilterAlphaKey">
/// The alpha key used to filter the results by the first character of their name, for the alpha picker. Optional.
/// Can be <see langword="null"/> to disable alpha filtering, a single ASCII letter (case-insensitive) to filter by that letter,
/// "#" to filter by names whose first character is a digit, or "*" to filter by names whose first character is neither a letter nor a digit.
/// </param>
/// <param name="ShouldIgnoreThePrefixForAlphaPicker">Whether the leading "The " prefix of a name is ignored when computing the alpha key, or not. Optional.</param>
/// <param name="SortBy">The name of the field by which to sort the results. Optional.</param>
/// <param name="SortOrder">The direction in which to sort the results. Optional.</param>
[DebuggerDisplay("LibraryId: {LibraryId}")]
public record GetMusicArtistsLiteRequest(
Guid LibraryId,
int? CurrentPage,
int? PerPage,
string? SearchTerm,
string? FilterAlphaKey,
bool ShouldIgnoreThePrefixForAlphaPicker,
string? SortBy,
SortOrder? SortOrder
);
@@ -0,0 +1,15 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Artists;
/// <summary>
/// Represents a request for displaying the music artists browsing view.
/// </summary>
/// <param name="LibraryId">The unique identifier of the media library whose artists are browsed. Optional.</param>
[DebuggerDisplay("LibraryId: {LibraryId}")]
public record GetMusicArtistsViewRequest(
Guid? LibraryId
);
@@ -0,0 +1,46 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.AudioLibrary;
using Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
using Lumina.Presentation.Web.Common.DTO.MediaContributors;
using Lumina.Presentation.Web.Common.Enums.AudioLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Artists;
/// <summary>
/// Represents a request to update an album of an artist, together with the tracks of the album, within an artist update.
/// </summary>
/// <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="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. Required.</param>
/// <param name="Ratings">The list of ratings for this album. Required.</param>
/// <param name="Tracks">The list of tracks of the album, each with the Id of the track when the track already exists. Required.</param>
[DebuggerDisplay("Title: {Metadata?.Title}")]
public record UpdateMusicArtistAlbumRequest(
Guid? AlbumId,
MusicAlbumMetadataDto? Metadata,
MusicMediaFormat? MediaFormat,
MusicReleasePackaging? Packaging,
string? Barcode,
List<string>? CatalogNumbers,
string? Label,
string? ASIN,
Guid? MusicBrainzReleaseId,
Guid? MusicBrainzReleaseGroupId,
Guid? MusicBrainzReleaseArtistId,
List<MediaContributorReferenceDto>? Contributors,
List<AudioRatingDto>? Ratings,
List<UpdateMusicArtistTrackRequest>? Tracks
);
@@ -0,0 +1,33 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.AudioLibrary;
using Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
using Lumina.Presentation.Web.Common.DTO.MediaContributors;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Artists;
/// <summary>
/// Represents a request to update a music artist, together with the albums of the artist and the tracks of those albums.
/// </summary>
/// <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: {Metadata?.Name}")]
public record UpdateMusicArtistRequest(
MusicArtistMetadataDto? Metadata,
string? Website,
Guid? MusicBrainzArtistId,
List<string>? Ipis,
List<string>? Isnis,
List<MediaContributorReferenceDto>? Contributors,
List<AudioRatingDto>? Ratings,
List<UpdateMusicArtistAlbumRequest>? Albums
);
@@ -0,0 +1,49 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.AudioLibrary;
using Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.DTO.MediaContributors;
using Lumina.Presentation.Web.Common.Enums.AudioLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Artists;
/// <summary>
/// Represents a request to update a track of an album of an artist, within an artist update.
/// </summary>
/// <param name="TrackId">The Id of the track, when the track already exists. Optional.</param>
/// <param name="Path">The file system path of the track. Required.</param>
/// <param name="Metadata">The audio metadata of the track. Required.</param>
/// <param name="TrackNumber">The number of the track on its disc. Required.</param>
/// <param name="DiscNumber">The number of the disc the track belongs to. Optional.</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="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="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>
/// <param name="Ratings">The list of ratings for this track. Required.</param>
[DebuggerDisplay("Title: {Metadata?.Title}")]
public record UpdateMusicArtistTrackRequest(
Guid? TrackId,
string? Path,
MusicTrackMetadataDto? Metadata,
int? TrackNumber,
int? DiscNumber,
string? Script,
MusicKey? Key,
int? Bpm,
MusicWorkDto? Work,
Guid? MusicBrainzRecordingId,
Guid? MusicBrainzTrackId,
List<MoodDto>? Moods,
List<IsrcDto>? Isrcs,
List<MediaContributorReferenceDto>? Contributors,
List<AudioRatingDto>? Ratings
);
@@ -0,0 +1,23 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Tracks;
/// <summary>
/// Represents a request to get the lightweight details of the tracks of an album.
/// </summary>
/// <param name="ArtistId">The unique identifier of the artist the album belongs to, taken from the route. Required.</param>
/// <param name="AlbumId">The unique identifier of the album whose tracks are retrieved, taken from the route. Required.</param>
/// <param name="LibraryId">The unique identifier of the media library the album belongs to. Required.</param>
/// <param name="CurrentPage">The page of results to retrieve. Optional.</param>
/// <param name="PerPage">The maximum number of tracks to retrieve per page. Optional.</param>
[DebuggerDisplay("AlbumId: {AlbumId}")]
public record GetAlbumTracksLiteRequest(
string ArtistId,
string AlbumId,
Guid LibraryId,
int? CurrentPage,
int? PerPage
);
@@ -0,0 +1,21 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Tracks;
/// <summary>
/// Represents a request for displaying the details of a track of an album of a music artist.
/// </summary>
/// <param name="ArtistId">The unique identifier of the artist the album belongs to, taken from the route. Required.</param>
/// <param name="AlbumId">The unique identifier of the album the track belongs to, taken from the route. Required.</param>
/// <param name="TrackId">The unique identifier of the track whose details are displayed, taken from the route. Required.</param>
/// <param name="LibraryId">The Id of the media library the track belongs to. Required.</param>
[DebuggerDisplay("TrackId: {TrackId}")]
public record GetMusicTrackViewRequest(
string ArtistId,
string AlbumId,
string TrackId,
Guid LibraryId
);
@@ -0,0 +1,47 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.DTO.AudioLibrary;
using Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
using Lumina.Presentation.Web.Common.DTO.Common;
using Lumina.Presentation.Web.Common.DTO.MediaContributors;
using Lumina.Presentation.Web.Common.Enums.AudioLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Tracks;
/// <summary>
/// Represents a request to update an existing track of an album of a music artist.
/// </summary>
/// <param name="Path">The file system path of the track. Required.</param>
/// <param name="Metadata">The audio metadata of the track. Required.</param>
/// <param name="TrackNumber">The number of the track on its disc. Required.</param>
/// <param name="DiscNumber">The number of the disc the track belongs to. Optional.</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="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="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>
/// <param name="Ratings">The list of ratings for this track. Required.</param>
[DebuggerDisplay("Title: {Metadata?.Title}")]
public record UpdateMusicTrackRequest(
string? Path,
MusicTrackMetadataDto? Metadata,
int? TrackNumber,
int? DiscNumber,
string? Script,
MusicKey? Key,
int? Bpm,
MusicWorkDto? Work,
Guid? MusicBrainzRecordingId,
Guid? MusicBrainzTrackId,
List<MoodDto>? Moods,
List<IsrcDto>? Isrcs,
List<MediaContributorReferenceDto>? Contributors,
List<AudioRatingDto>? Ratings
);
@@ -0,0 +1,28 @@
namespace Lumina.Presentation.Web.Common.Routes;
/// <summary>
/// Class for the collection of remote API routes called by this Web application.
/// </summary>
public static partial class ApiRoutes
{
/// <summary>
/// Routes for the music library endpoints of the remote API.
/// </summary>
public static class Music
{
public const string GET_ARTISTS_LITE = "libraries/{libraryId}/artists/lite";
public const string GET_ARTIST = "libraries/{libraryId}/artists/{artistId}";
public const string UPDATE_ARTIST = "libraries/{libraryId}/artists/{artistId}";
public const string UPDATE_ARTIST_COVER = "libraries/{libraryId}/artists/{artistId}/cover";
public const string DELETE_ARTIST = "libraries/{libraryId}/artists/{artistId}";
public const string GET_ARTIST_ALBUMS_LITE = "libraries/{libraryId}/artists/{artistId}/albums/lite";
public const string GET_ALBUM = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}";
public const string UPDATE_ALBUM = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}";
public const string UPDATE_ALBUM_COVER = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/cover";
public const string DELETE_ALBUM = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}";
public const string GET_ALBUM_TRACKS_LITE = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/lite";
public const string GET_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
public const string UPDATE_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
public const string DELETE_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
}
}
@@ -0,0 +1,32 @@
namespace Lumina.Presentation.Web.Common.Routes;
/// <summary>
/// Class for the collection of routes defined in the Web application.
/// </summary>
public static partial class WebRoutes
{
/// <summary>
/// Routes for the music library pages.
/// </summary>
public static class Music
{
public const string ARTISTS_INDEX = "{culture}/library/audio-library/music-library/artists";
public const string GET_ARTISTS = "{culture}/library/audio-library/music-library/artists/api-get-artists";
public const string ARTIST = "{culture}/library/audio-library/music-library/artists/{artistId}";
public const string GET_ARTIST = "{culture}/library/audio-library/music-library/artists/{artistId}/api-get-artist";
public const string SAVE_ARTIST = "{culture}/library/audio-library/music-library/artists/{artistId}/api-save-artist";
public const string UPDATE_ARTIST_COVER = "{culture}/library/audio-library/music-library/artists/{artistId}/api-update-cover";
public const string DELETE_ARTIST = "{culture}/library/audio-library/music-library/artists/{artistId}/api-delete-artist";
public const string GET_ARTIST_ALBUMS = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/api-get-albums";
public const string ALBUM = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}";
public const string GET_ALBUM = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-get-album";
public const string SAVE_ALBUM = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-save-album";
public const string UPDATE_ALBUM_COVER = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-update-cover";
public const string DELETE_ALBUM = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-delete-album";
public const string GET_ALBUM_TRACKS = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/api-get-tracks";
public const string TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
public const string GET_TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-get-track";
public const string SAVE_TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-save-track";
public const string DELETE_TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-delete-track";
}
}