japanese-pokemon-cards-sdk-.../JpnCardsPokemon.Sdk/Api/Card.cs

62 lines
1.8 KiB
C#
Raw Normal View History

using System.Collections.Generic;
using System.Text.Json.Serialization;
using JpnCardsPokemon.Sdk.Utils.JsonConverter;
2023-03-01 22:06:38 +01:00
namespace JpnCardsPokemon.Sdk.Api;
public class Card
{
public string? Name { get; set; }
public int Id { get; set; }
2023-03-01 21:47:42 +01:00
[JsonPropertyName("setData")] public Set? Set { get; set; }
public string[]? Types { get; set; }
public int Hp { get; set; } = -1;
public string? EvolvesFrom { get; set; }
// TODO: Type of property is not documented. Has to be evaluated at a later time.
// public Effect? Effect { get; set; }
// TODO: Type of property is not documented. Has to be evaluated at a later time.
// public Attack[]? Attacks { get; set; }
public string[]? Rules { get; set; }
// TODO: Type of property is not documented. Has to be evaluated at a later time.
// public Weakness[]? Weaknesses { get; set; }
// TODO: Type of property is not documented. Has to be evaluated at a later time.
// public Resistance[]? Ressistences { get; set; }
[JsonConverter(typeof(CardPriceConverter))]
public IEnumerable<CardPrice>? Prices { get; set; }
2023-03-01 21:47:42 +01:00
[JsonPropertyName("retreatCost")] public string[]? RetreatCosts { get; set; }
2023-03-01 21:47:42 +01:00
public int? ConvertedRetreatCost { get; set; }
public string? Supertype { get; set; }
public string[]? Subtypes { get; set; }
public string? Rarity { get; set; }
// TODO: Type of property is not documented. Has to be evaluated at a later time.
// public Legality[]? Legalities { get; set; }
public string? Artist { get; set; }
public string? ImageUrl { get; set; }
public string? CardUrl { get; set; }
2023-03-01 21:47:42 +01:00
[JsonPropertyName("sequenceNumber")] public int Number { get; set; }
public string? PrintedNumber { get; set; }
public int Uuid { get; set; }
}