Fixes some formatting and properties

This commit is contained in:
Serraniel 2023-03-01 21:47:42 +01:00
parent 3036d0dda0
commit 83b5cda902
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3
2 changed files with 9 additions and 22 deletions

View file

@ -8,8 +8,7 @@ public class Card
public int Id { get; set; }
[JsonPropertyName("setData")]
public Set? Set { get; set; }
[JsonPropertyName("setData")] public Set? Set { get; set; }
public string[]? Types { get; set; }
@ -31,10 +30,9 @@ public class Card
// TODO: Type of property is not documented. Has to be evaluated at a later time.
// public Resistance[]? Ressistences { get; set; }
[JsonPropertyName("retreatCost")]
public string[]? RetreatCosts { get; set; }
[JsonPropertyName("retreatCost")] public string[]? RetreatCosts { get; set; }
public int? ConvertedRetreadCost { get; set; }
public int? ConvertedRetreatCost { get; set; }
public string? Supertype { get; set; }
@ -47,14 +45,11 @@ public class Card
public string? Artist { get; set; }
[JsonPropertyName("image_url")]
public string? ImageUrl { get; set; }
[JsonPropertyName("card_url")]
public string? CardUrl { get; set; }
[JsonPropertyName("sequenceNumber")]
public int Number { get; set; }
[JsonPropertyName("sequenceNumber")] public int Number { get; set; }
public string? PrintedNumber { get; set; }

View file

@ -5,20 +5,13 @@ namespace JpnCardsPokemonSdk.Api;
public class Set
{
static Set()
{
EndpointFactory.RegisterTypeEndpoint<Set>(new SetEndpoint());
}
public string? Name { get; set; }
public int Id { get; set; }
[JsonPropertyName("source_url")]
public string? SourceUrl { get; set; }
[JsonPropertyName("source_url")] public string? SourceUrl { get; set; }
[JsonPropertyName("image_url")]
public string? ImageUrl { get; set; }
[JsonPropertyName("image_url")] public string? ImageUrl { get; set; }
public string? Language { get; set; }
@ -29,14 +22,13 @@ public class Set
// TODO: According to documentation the property currently is not supported.
// public DateOnly? Date { get; set; }
[JsonPropertyName("card_count")]
public int TotalCardCount { get; set; }
[JsonPropertyName("card_count")] public int TotalCardCount { get; set; }
[JsonPropertyName("printed_count")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public int PrintedCardCount { get; set; }
[JsonPropertyName("set_code")]
public string? SetCode { get; set; }
[JsonPropertyName("set_code")] public string? SetCode { get; set; }
public int Uuid { get; set; }
}