#region ========================================================================= USING ===================================================================================== using System.Collections.Generic; using System.Text.Json.Serialization; #endregion namespace Nemera.Plugins.MusicBrainz.Common.Models.Contracts.Responses; /// /// Represents a response for a medium of a MusicBrainz release. /// internal sealed record MusicBrainzMediumResponse { /// /// Gets the position of the medium within its release. /// [JsonPropertyName("position")] public int Position { get; init; } /// /// Gets the title of the medium. /// [JsonPropertyName("title")] public string? Title { get; init; } /// /// Gets the format of the medium (e.g., CD, Vinyl, Digital Media). /// [JsonPropertyName("format")] public string? Format { get; init; } /// /// Gets the number of tracks of the medium. /// [JsonPropertyName("track-count")] public int TrackCount { get; init; } /// /// Gets the tracks of the medium. The tracks are only returned when the recordings are included in the request. /// [JsonPropertyName("tracks")] public List Tracks { get; init; } = []; }