#region ========================================================================= USING =====================================================================================
using System.Collections.Generic;
using System.Text.Json.Serialization;
#endregion
namespace Nemera.Plugins.OpenLibrary.Common.Models.Contracts.Responses;
///
/// Represents a response for a search document from the Open Library API.
///
internal sealed record OpenLibrarySearchDocumentResponse
{
///
/// Gets the key of the search document.
///
[JsonPropertyName("key")]
public string? Key { get; init; }
///
/// Gets the title of the search document.
///
[JsonPropertyName("title")]
public string? Title { get; init; }
///
/// Gets the author names of the search document.
///
[JsonPropertyName("author_name")]
public List AuthorNames { get; init; } = [];
///
/// Gets the author keys of the search document.
///
[JsonPropertyName("author_key")]
public List AuthorKeys { get; init; } = [];
///
/// Gets the first publication year of the search document.
///
[JsonPropertyName("first_publish_year")]
public int? FirstPublishYear { get; init; }
///
/// Gets the edition keys of the search document.
///
[JsonPropertyName("edition_key")]
public List EditionKeys { get; init; } = [];
///
/// Gets the ISBNs of the search document.
///
[JsonPropertyName("isbn")]
public List Isbns { get; init; } = [];
///
/// Gets the languages of the search document.
///
[JsonPropertyName("language")]
public List Languages { get; init; } = [];
///
/// Gets the publishers of the search document.
///
[JsonPropertyName("publisher")]
public List Publishers { get; init; } = [];
///
/// Gets the subjects of the search document.
///
[JsonPropertyName("subject")]
public List Subjects { get; init; } = [];
///
/// Gets the median number of pages of the search document.
///
[JsonPropertyName("number_of_pages_median")]
public int? NumberOfPagesMedian { get; init; }
///
/// Gets the average rating of the search document.
///
[JsonPropertyName("ratings_average")]
public decimal? RatingsAverage { get; init; }
///
/// Gets the number of ratings of the search document.
///
[JsonPropertyName("ratings_count")]
public int? RatingsCount { get; init; }
///
/// Gets the Amazon identifiers of the search document.
///
[JsonPropertyName("id_amazon")]
public List AmazonIds { get; init; } = [];
///
/// Gets the Goodreads identifiers of the search document.
///
[JsonPropertyName("id_goodreads")]
public List GoodreadsIds { get; init; } = [];
///
/// Gets the Google identifiers of the search document.
///
[JsonPropertyName("id_google")]
public List GoogleIds { get; init; } = [];
///
/// Gets the LibraryThing identifiers of the search document.
///
[JsonPropertyName("id_librarything")]
public List LibraryThingIds { get; init; } = [];
///
/// Gets the LCCN identifiers of the search document.
///
[JsonPropertyName("lccn")]
public List Lccn { get; init; } = [];
///
/// Gets the OCLC identifiers of the search document.
///
[JsonPropertyName("oclc")]
public List Oclc { get; init; } = [];
}