#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.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using JpnCardsPokemon.Sdk.Utils.JsonConverter;
namespace JpnCardsPokemon.Sdk.Api; namespace JpnCardsPokemon.Sdk.Api;
@ -64,7 +63,6 @@ public class Card
/// A list of known prices for this card. /// A list of known prices for this card.
/// </summary> /// </summary>
/// <remarks>May contain entries from different sellers, versions and conditions.</remarks> /// <remarks>May contain entries from different sellers, versions and conditions.</remarks>
[JsonConverter(typeof(CardPricesJsonConverter))]
public IEnumerable<CardPrice>? Prices { get; set; } public IEnumerable<CardPrice>? Prices { get; set; }
/// <summary> /// <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', /// Specifies the card version. Almost always will be 'Regular' but may contain other versions like 'Reverse Holo',
/// etc. /// etc.
/// </summary> /// </summary>
[JsonPropertyName("variant")]
public string? Version { get; set; } public string? Version { get; set; }
/// <summary> /// <summary>
@ -48,5 +49,6 @@ public class CardPrice
/// <summary> /// <summary>
/// Name of the seller who is listing the card. /// Name of the seller who is listing the card.
/// </summary> /// </summary>
[JsonPropertyName("vendor")]
public string? Seller { get; set; } public string? Seller { get; set; }
} }