#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 group from the MusicBrainz API.
///
internal sealed record MusicBrainzReleaseGroupResponse
{
///
/// Gets the MusicBrainz identifier of the release group.
///
[JsonPropertyName("id")]
public string? Id { get; init; }
///
/// Gets the title of the release group.
///
[JsonPropertyName("title")]
public string? Title { get; init; }
///
/// Gets the disambiguation comment of the release group.
///
[JsonPropertyName("disambiguation")]
public string? Disambiguation { get; init; }
///
/// Gets the primary type of the release group.
///
[JsonPropertyName("primary-type")]
public string? PrimaryType { get; init; }
///
/// Gets the secondary types of the release group.
///
[JsonPropertyName("secondary-types")]
public List SecondaryTypes { get; init; } = [];
///
/// Gets the date the release group was first released.
///
[JsonPropertyName("first-release-date")]
public string? FirstReleaseDate { get; init; }
///
/// Gets the artist credit of the release group.
///
[JsonPropertyName("artist-credit")]
public List ArtistCredit { get; init; } = [];
///
/// Gets the releases of the release group.
///
[JsonPropertyName("releases")]
public List Releases { get; init; } = [];
///
/// Gets the tags of the release group.
///
[JsonPropertyName("tags")]
public List Tags { get; init; } = [];
///
/// Gets the genres of the release group.
///
[JsonPropertyName("genres")]
public List Genres { get; init; } = [];
///
/// Gets the aggregated rating of the release group.
///
[JsonPropertyName("rating")]
public MusicBrainzRatingResponse? Rating { get; init; }
}