japanese-pokemon-cards-sdk-.../src/Api/Set.cs

40 lines
972 B
C#

using System.Text.Json.Serialization;
using JpnCardsPokemonSdk.Client.Endpoints;
namespace JpnCardsPokemonSdk.Api;
public class Set : EndpointObject
{
static Set()
{
EndpointFactory.RegisterTypeEndpoint<Set>(new SetEndpoint());
}
public string? Name { get; set; }
public int Id { get; set; }
[JsonPropertyName("source_url")]
public string? SourceUrl { get; set; }
[JsonPropertyName("image_url")]
public string? ImageUrl { get; set; }
public string? Language { get; set; }
public int Year { get; set; }
// TODO: According to documentation the property currently is not supported.
// public DateOnly? Date { get; set; }
[JsonPropertyName("card_count")]
public int TotalCardCount { get; set; }
[JsonPropertyName("printed_count")]
public int PrintedCardCount { get; set; }
[JsonPropertyName("set_code")]
public string? SetCode { get; set; }
public int Uuid { get; set; }
}