#1 Updates CardPrice Json Property names and removes CardPriceConverter attribute in Card
This commit is contained in:
parent
4c355e42ec
commit
1d40a88efb
|
@ -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>
|
||||
|
|
|
@ -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; }
|
||||
}
|
Loading…
Reference in a new issue