#region ========================================================================= USING =====================================================================================
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
#endregion
namespace Lumina.Plugins.OpenLibrary.Common.Models.Contracts.Responses;
///
/// Represents a response for an edition from the Open Library API.
///
internal sealed record OpenLibraryEditionResponse
{
///
/// Gets the key of the edition.
///
[JsonPropertyName("key")]
public string? Key { get; init; }
///
/// Gets the title of the edition.
///
[JsonPropertyName("title")]
public string? Title { get; init; }
///
/// Gets the subtitle of the edition.
///
[JsonPropertyName("subtitle")]
public string? Subtitle { get; init; }
///
/// Gets the notes of the edition.
///
[JsonPropertyName("notes")]
public JsonElement Notes { get; init; }
///
/// Gets the publication date of the edition.
///
[JsonPropertyName("publish_date")]
public string? PublishDate { get; init; }
///
/// Gets the publishers of the edition.
///
[JsonPropertyName("publishers")]
public List Publishers { get; init; } = [];
///
/// Gets the MARC 21 country code of the publication place of the edition.
///
[JsonPropertyName("publish_country")]
public string? PublishCountry { get; init; }
///
/// Gets the number of pages of the edition.
///
[JsonPropertyName("number_of_pages")]
public int? NumberOfPages { get; init; }
///
/// Gets the physical format of the edition.
///
[JsonPropertyName("physical_format")]
public string? PhysicalFormat { get; init; }
///
/// Gets the name of the edition.
///
[JsonPropertyName("edition_name")]
public string? EditionName { get; init; }
///
/// Gets the series the edition belongs to.
///
[JsonPropertyName("series")]
public List Series { get; init; } = [];
///
/// Gets the volume of the edition within its series.
///
[JsonPropertyName("volume")]
public string? Volume { get; init; }
///
/// Gets the ISBN-10 identifiers of the edition.
///
[JsonPropertyName("isbn_10")]
public List Isbn10 { get; init; } = [];
///
/// Gets the ISBN-13 identifiers of the edition.
///
[JsonPropertyName("isbn_13")]
public List Isbn13 { get; init; } = [];
///
/// Gets the LCCN identifiers of the edition.
///
[JsonPropertyName("lccn")]
public List Lccn { get; init; } = [];
///
/// Gets the OCLC numbers of the edition.
///
[JsonPropertyName("oclc_numbers")]
public List OclcNumbers { get; init; } = [];
///
/// Gets the external identifiers of the edition, keyed by identifier name.
///
[JsonPropertyName("identifiers")]
public JsonElement Identifiers { get; init; }
///
/// Gets the source records of the edition.
///
[JsonPropertyName("source_records")]
public List SourceRecords { get; init; } = [];
///
/// Gets the languages of the edition.
///
[JsonPropertyName("languages")]
public List Languages { get; init; } = [];
///
/// Gets the authors of the edition.
///
[JsonPropertyName("authors")]
public List Authors { get; init; } = [];
///
/// Gets the works the edition belongs to.
///
[JsonPropertyName("works")]
public List Works { get; init; } = [];
///
/// Gets the contributions of the edition.
///
[JsonPropertyName("contributions")]
public List Contributions { get; init; } = [];
}