#region ========================================================================= USING =====================================================================================
using System.Collections.Generic;
using System.Text.Json.Serialization;
#endregion
namespace Lumina.Plugins.MusicBrainz.Common.Models.Contracts.Responses;
///
/// Represents a response for a work from the MusicBrainz API.
///
internal sealed record MusicBrainzWorkResponse
{
///
/// Gets the MusicBrainz identifier of the work.
///
[JsonPropertyName("id")]
public string? Id { get; init; }
///
/// Gets the title of the work.
///
[JsonPropertyName("title")]
public string? Title { get; init; }
///
/// Gets the MusicBrainz type of the work.
///
[JsonPropertyName("type")]
public string? Type { get; init; }
///
/// Gets the disambiguation comment of the work.
///
[JsonPropertyName("disambiguation")]
public string? Disambiguation { get; init; }
///
/// Gets the languages of the work.
///
[JsonPropertyName("languages")]
public List Languages { get; init; } = [];
///
/// Gets the ISWC (International Standard Musical Work Code) of the work.
///
[JsonPropertyName("iswcs")]
public List Iswcs { get; init; } = [];
///
/// Gets the relationships of the work to other entities (e.g., its composers and lyricists).
///
[JsonPropertyName("relations")]
public List Relations { get; init; } = [];
///
/// Gets the tags of the work.
///
[JsonPropertyName("tags")]
public List Tags { get; init; } = [];
///
/// Gets the genres of the work.
///
[JsonPropertyName("genres")]
public List Genres { get; init; } = [];
}