#1 Updates CardPrice Json Property names and removes CardPriceConverter attribute in Card

This commit is contained in:
Serraniel 2023-03-24 17:39:15 +01:00
parent 4c355e42ec
commit 1d40a88efb
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,5 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
using JpnCardsPokemon.Sdk.Utils.JsonConverter;
namespace JpnCardsPokemon.Sdk.Api;
@ -64,7 +63,6 @@ public class Card
/// A list of known prices for this card.
/// </summary>
/// <remarks>May contain entries from different sellers, versions and conditions.</remarks>
[JsonConverter(typeof(CardPricesJsonConverter))]
public IEnumerable<CardPrice>? Prices { get; set; }
/// <summary>

View file

@ -12,6 +12,7 @@ public class CardPrice
/// Specifies the card version. Almost always will be 'Regular' but may contain other versions like 'Reverse Holo',
/// etc.
/// </summary>
[JsonPropertyName("variant")]
public string? Version { get; set; }
/// <summary>
@ -48,5 +49,6 @@ public class CardPrice
/// <summary>
/// Name of the seller who is listing the card.
/// </summary>
[JsonPropertyName("vendor")]
public string? Seller { get; set; }
}