Files
Nemera/plugins/Nemera.Plugins.OpenLibrary/Common/Models/Contracts/Responses/OpenLibraryRatingSummaryResponse.cs
T

24 lines
794 B
C#

#region ========================================================================= USING =====================================================================================
using System.Text.Json.Serialization;
#endregion
namespace Nemera.Plugins.OpenLibrary.Common.Models.Contracts.Responses;
/// <summary>
/// Represents a response for the summary of the ratings of a work from the Open Library API.
/// </summary>
internal sealed record OpenLibraryRatingSummaryResponse
{
/// <summary>
/// Gets the average rating of the work.
/// </summary>
[JsonPropertyName("average")]
public decimal? Average { get; init; }
/// <summary>
/// Gets the number of ratings of the work.
/// </summary>
[JsonPropertyName("count")]
public int? Count { get; init; }
}