Adds price data enumerable to the card API object

This commit is contained in:
Serraniel 2023-03-03 15:23:55 +01:00
parent 530bbda1b2
commit 51f530687f
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -1,4 +1,6 @@
using System.Text.Json.Serialization; using System.Collections.Generic;
using System.Text.Json.Serialization;
using JpnCardsPokemon.Sdk.Utils.JsonConverter;
namespace JpnCardsPokemon.Sdk.Api; namespace JpnCardsPokemon.Sdk.Api;
@ -30,6 +32,9 @@ public class Card
// TODO: Type of property is not documented. Has to be evaluated at a later time. // TODO: Type of property is not documented. Has to be evaluated at a later time.
// public Resistance[]? Ressistences { get; set; } // public Resistance[]? Ressistences { get; set; }
[JsonConverter(typeof(CardPriceConverter))]
public IEnumerable<CardPrice>? Prices { get; set; }
[JsonPropertyName("retreatCost")] public string[]? RetreatCosts { get; set; } [JsonPropertyName("retreatCost")] public string[]? RetreatCosts { get; set; }
public int? ConvertedRetreatCost { get; set; } public int? ConvertedRetreatCost { get; set; }