#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;
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
///
/// Represents a track response.
///
/// The Id of the track.
/// The Id of the album the track belongs to.
/// The Id of the media library this track belongs to.
/// The file system path of the track.
/// The audio metadata of the track.
/// The number of the track on its disc.
/// The number of the disc the track belongs to, if applicable.
/// The script used by the language of the track, if applicable.
/// The musical key of the track, if applicable.
/// The tempo of the track in beats per minute, if applicable.
/// The work the track is a recording of, if applicable.
/// The MusicBrainz identifier of the recording, if applicable.
/// The MusicBrainz identifier of the track, if applicable.
/// The date and time when the track was created.
/// The optional date and time when the track was updated.
/// The list of moods of the track.
/// The list of ISRC (International Standard Recording Code) of the track.
/// The list of references to the media contributors that performed on the track, each with the role they played.
/// The list of ratings for this track.
/// The container of the audio file of the track, for example MP3, FLAC, OGG, AAC, MP4 or WAV, captured from the file itself. Read only, and not settable through a request. Optional.
[DebuggerDisplay("Title: {Metadata.Title}")]
public record TrackResponse(
Guid Id,
Guid AlbumId,
Guid LibraryId,
string Path,
MusicTrackMetadataDto Metadata,
int TrackNumber,
int? DiscNumber,
string? Script,
MusicKey? Key,
int? Bpm,
MusicWorkDto? Work,
Guid? MusicBrainzRecordingId,
Guid? MusicBrainzTrackId,
DateTime CreatedOnUtc,
DateTime? UpdatedOnUtc,
List? Moods,
List? Isrcs,
List? Contributors,
List? Ratings,
string? Container = null
);