#region ========================================================================= USING ===================================================================================== using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; #endregion namespace Nemera.Plugins.OpenLibrary.Common.Models.Contracts.Responses; /// /// Represents a response for a work from the Open Library API. /// internal sealed record OpenLibraryWorkResponse { /// /// Gets the key of the work. /// [JsonPropertyName("key")] public string? Key { get; init; } /// /// Gets the title of the work. /// [JsonPropertyName("title")] public string? Title { get; init; } /// /// Gets the original title of the work. /// [JsonPropertyName("original_title")] public string? OriginalTitle { get; init; } /// /// Gets the description of the work. /// [JsonPropertyName("description")] public JsonElement Description { get; init; } /// /// Gets the first publication date of the work. /// [JsonPropertyName("first_publish_date")] public string? FirstPublishDate { get; init; } /// /// Gets the subjects of the work. /// [JsonPropertyName("subjects")] public List Subjects { get; init; } = []; /// /// Gets the genres of the work. /// [JsonPropertyName("genres")] public List Genres { get; init; } = []; /// /// Gets the authors of the work. /// [JsonPropertyName("authors")] public List Authors { get; init; } = []; /// /// Gets the original languages of the work. /// [JsonPropertyName("original_languages")] public List OriginalLanguages { get; init; } = []; }