#region ========================================================================= USING ===================================================================================== using System.Collections.Generic; using System.Text.Json.Serialization; #endregion namespace Nemera.Plugins.MusicBrainz.Common.Models.Contracts.Responses; /// /// Represents a response for an artist from the MusicBrainz API. /// internal sealed record MusicBrainzArtistResponse { /// /// Gets the MusicBrainz identifier of the artist. /// [JsonPropertyName("id")] public string? Id { get; init; } /// /// Gets the name of the artist. /// [JsonPropertyName("name")] public string? Name { get; init; } /// /// Gets the sort name of the artist. /// [JsonPropertyName("sort-name")] public string? SortName { get; init; } /// /// Gets the disambiguation comment of the artist. /// [JsonPropertyName("disambiguation")] public string? Disambiguation { get; init; } /// /// Gets the MusicBrainz type of the artist. /// [JsonPropertyName("type")] public string? Type { get; init; } /// /// Gets the gender of the artist. /// [JsonPropertyName("gender")] public string? Gender { get; init; } /// /// Gets the ISO 3166-1 alpha-2 code of the country of the artist. /// [JsonPropertyName("country")] public string? Country { get; init; } /// /// Gets the area the artist is primarily identified with. /// [JsonPropertyName("area")] public MusicBrainzAreaResponse? Area { get; init; } /// /// Gets the area the artist began in. /// [JsonPropertyName("begin-area")] public MusicBrainzAreaResponse? BeginArea { get; init; } /// /// Gets the area the artist ended in. /// [JsonPropertyName("end-area")] public MusicBrainzAreaResponse? EndArea { get; init; } /// /// Gets the life span of the artist. /// [JsonPropertyName("life-span")] public MusicBrainzLifeSpanResponse? LifeSpan { get; init; } /// /// Gets the ISNI codes of the artist. /// [JsonPropertyName("isnis")] public List Isnis { get; init; } = []; /// /// Gets the IPI codes of the artist. /// [JsonPropertyName("ipis")] public List Ipis { get; init; } = []; /// /// Gets the alternative names of the artist. /// [JsonPropertyName("aliases")] public List Aliases { get; init; } = []; /// /// Gets the tags of the artist. /// [JsonPropertyName("tags")] public List Tags { get; init; } = []; /// /// Gets the genres of the artist. /// [JsonPropertyName("genres")] public List Genres { get; init; } = []; /// /// Gets the relationships of the artist to other entities. /// [JsonPropertyName("relations")] public List Relations { get; init; } = []; /// /// Gets the aggregated rating of the artist. /// [JsonPropertyName("rating")] public MusicBrainzRatingResponse? Rating { get; init; } }