#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.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>
|
||||||
|
|
|
@ -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; }
|
||||||
}
|
}
|
Loading…
Reference in a new issue