Bugfix/#1 parsing failes due to price ifnromation scheme changes #2

Merged
Serraniel merged 3 commits from bugfix/#1-parsing-failes-due-to-price-ifnromation-scheme-changes into main 2023-03-24 18:12:40 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 1d40a88efb - Show all commits

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; }
}