#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 release from the MusicBrainz API. /// internal sealed record MusicBrainzReleaseResponse { /// /// Gets the MusicBrainz identifier of the release. /// [JsonPropertyName("id")] public string? Id { get; init; } /// /// Gets the title of the release. /// [JsonPropertyName("title")] public string? Title { get; init; } /// /// Gets the disambiguation comment of the release. /// [JsonPropertyName("disambiguation")] public string? Disambiguation { get; init; } /// /// Gets the status of the release (e.g., Official, Bootleg). /// [JsonPropertyName("status")] public string? Status { get; init; } /// /// Gets the date the release was issued. /// [JsonPropertyName("date")] public string? Date { get; init; } /// /// Gets the ISO 3166-1 alpha-2 code of the country the release was issued in. /// [JsonPropertyName("country")] public string? Country { get; init; } /// /// Gets the release events of the release. /// [JsonPropertyName("release-events")] public List ReleaseEvents { get; init; } = []; /// /// Gets the barcode of the release. /// [JsonPropertyName("barcode")] public string? Barcode { get; init; } /// /// Gets the outermost packaging of the release. /// [JsonPropertyName("packaging")] public string? Packaging { get; init; } /// /// Gets the language and script of the titles of the release. /// [JsonPropertyName("text-representation")] public MusicBrainzTextRepresentationResponse? TextRepresentation { get; init; } /// /// Gets the artist credit of the release. /// [JsonPropertyName("artist-credit")] public List ArtistCredit { get; init; } = []; /// /// Gets the release group the release belongs to. /// [JsonPropertyName("release-group")] public MusicBrainzReleaseGroupResponse? ReleaseGroup { get; init; } /// /// Gets the label information of the release. /// [JsonPropertyName("label-info")] public List LabelInfo { get; init; } = []; /// /// Gets the media of the release. /// [JsonPropertyName("media")] public List Media { get; init; } = []; /// /// Gets the ASIN (Amazon Standard Identification Number) of the release. /// [JsonPropertyName("asin")] public string? Asin { get; init; } /// /// Gets the tags of the release. /// [JsonPropertyName("tags")] public List Tags { get; init; } = []; /// /// Gets the genres of the release. /// [JsonPropertyName("genres")] public List Genres { get; init; } = []; /// /// Gets the relationships of the release to other entities (e.g., its producers and engineers). /// [JsonPropertyName("relations")] public List Relations { get; init; } = []; }