#region ========================================================================= USING ===================================================================================== using System.Text.Json.Serialization; #endregion namespace Lumina.Plugins.MusicBrainz.Common.Models.Contracts.Responses; /// /// Represents a response for a track of a medium of a MusicBrainz release, including the recording it is a performance of. /// internal sealed record MusicBrainzTrackResponse { /// /// Gets the MusicBrainz identifier of the track. /// [JsonPropertyName("id")] public string? Id { get; init; } /// /// Gets the track number, as displayed on the medium (for example, "1" or "A1"). /// [JsonPropertyName("number")] public string? Number { get; init; } /// /// Gets the position of the track within its medium. /// [JsonPropertyName("position")] public int Position { get; init; } /// /// Gets the title of the track. /// [JsonPropertyName("title")] public string? Title { get; init; } /// /// Gets the length of the track in milliseconds. /// [JsonPropertyName("length")] public long? Length { get; init; } /// /// Gets the recording the track is a performance of. /// [JsonPropertyName("recording")] public MusicBrainzRecordingResponse? Recording { get; init; } }