From 1d40a88efbbaa6e50fa39fa50bd0385a9c27b4c0 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Fri, 24 Mar 2023 17:39:15 +0100 Subject: [PATCH] #1 Updates CardPrice Json Property names and removes CardPriceConverter attribute in Card --- JpnCardsPokemon.Sdk/Api/Card.cs | 2 -- JpnCardsPokemon.Sdk/Api/CardPrice.cs | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/JpnCardsPokemon.Sdk/Api/Card.cs b/JpnCardsPokemon.Sdk/Api/Card.cs index 14f2989..19ccebf 100644 --- a/JpnCardsPokemon.Sdk/Api/Card.cs +++ b/JpnCardsPokemon.Sdk/Api/Card.cs @@ -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. /// /// May contain entries from different sellers, versions and conditions. - [JsonConverter(typeof(CardPricesJsonConverter))] public IEnumerable? Prices { get; set; } /// diff --git a/JpnCardsPokemon.Sdk/Api/CardPrice.cs b/JpnCardsPokemon.Sdk/Api/CardPrice.cs index dabcbae..5402a02 100644 --- a/JpnCardsPokemon.Sdk/Api/CardPrice.cs +++ b/JpnCardsPokemon.Sdk/Api/CardPrice.cs @@ -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. /// + [JsonPropertyName("variant")] public string? Version { get; set; } /// @@ -48,5 +49,6 @@ public class CardPrice /// /// Name of the seller who is listing the card. /// + [JsonPropertyName("vendor")] public string? Seller { get; set; } } \ No newline at end of file