#region ========================================================================= USING =====================================================================================
using System.Collections.Generic;
using System.Text.Json.Serialization;
#endregion
namespace Lumina.Plugins.CoverArtArchive.Common.Models.Contracts.Responses;
///
/// Represents a response for a single image of the artwork of a release or a release group from the Cover Art Archive API.
///
internal sealed record CoverArtArchiveImageResponse
{
///
/// Gets the URL of the full size image.
///
[JsonPropertyName("image")]
public string? Image { get; init; }
///
/// Gets the URL of the thumbnail of the image.
///
[JsonPropertyName("thumbnail")]
public string? Thumbnail { get; init; }
///
/// Gets the types of the image, like "Front", "Back", "Booklet", "Medium", "Tray", "Spine" or "Poster".
/// It is nullable because the deserializer writes a JSON null over the initializer, and may also contain null elements.
///
[JsonPropertyName("types")]
public List? Types { get; init; }
///
/// Gets a value indicating whether the image is the front cover.
///
[JsonPropertyName("front")]
public bool IsFront { get; init; }
///
/// Gets a value indicating whether the image is the back cover.
///
[JsonPropertyName("back")]
public bool IsBack { get; init; }
///
/// Gets the optional comment describing the image.
///
[JsonPropertyName("comment")]
public string? Comment { get; init; }
}