Skip to content

Commit d650a47

Browse files
committed
Update properties
1 parent c72f7e8 commit d650a47

File tree

3 files changed

+132
-39
lines changed

3 files changed

+132
-39
lines changed

src/ScryfallApi.Client/Models/Card.cs

Lines changed: 95 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,41 @@ public class Card : BaseItem
1414
/// If this card is closely related to other cards, this property will be an array with.
1515
/// </summary>
1616
[JsonPropertyName("all_parts")]
17-
public dynamic[] AllParts { get; set; }
17+
public Dictionary<string, string>[] AllParts { get; set; }
18+
19+
[JsonPropertyName("arena_id")]
20+
public int ArenaId { get; set; }
21+
22+
[JsonPropertyName("artist_ids")]
23+
public string[] ArtistIds { get; set; }
1824

1925
[JsonPropertyName("artist")]
2026
public string Artist { get; set; }
2127

28+
[JsonPropertyName("booster")]
29+
public bool Booster { get; set; }
30+
2231
[JsonPropertyName("border_color")]
2332
public string BorderColor { get; set; }
2433

34+
[JsonPropertyName("card_back_id")]
35+
public string CardBackId { get; set; }
36+
2537
/// <summary>
2638
/// An array of Card Face objects, if this card is multifaced.
2739
/// </summary>
2840
[JsonPropertyName("card_faces")]
2941
public CardFace[] CardFaces { get; set; }
3042

43+
[JsonPropertyName("cardmarket_id")]
44+
public int CardMarketId { get; set; }
45+
46+
/// <summary>
47+
/// The card’s converted mana cost, now known as mana value. Note that some funny cards have fractional mana costs.
48+
/// </summary>
49+
[JsonPropertyName("cmc")]
50+
public decimal Cmc { get; set; }
51+
3152
[JsonPropertyName("collector_number")]
3253
public string CollectorNumber { get; set; }
3354

@@ -50,14 +71,8 @@ public class Card : BaseItem
5071
[JsonPropertyName("colors")]
5172
public string[] Colors { get; set; }
5273

53-
[JsonPropertyName("colorshifted")]
54-
public bool Colorshifted { get; set; }
55-
56-
/// <summary>
57-
/// The card’s converted mana cost. Note that some funny cards have fractional mana costs.
58-
/// </summary>
59-
[JsonPropertyName("cmc")]
60-
public decimal ConvertedManaCost { get; set; }
74+
[JsonPropertyName("content_warning")]
75+
public bool ContentWarning { get; set; }
6176

6277
[JsonPropertyName("digital")]
6378
public bool Digital { get; set; }
@@ -71,6 +86,9 @@ public class Card : BaseItem
7186
[JsonPropertyName("finishes")]
7287
public string[] Finishes { get; set; }
7388

89+
[JsonPropertyName("flavor_name")]
90+
public string FlavorName { get; set; }
91+
7492
[JsonPropertyName("flavor_text")]
7593
public string FlavorText { get; set; }
7694

@@ -83,18 +101,17 @@ public class Card : BaseItem
83101
[JsonPropertyName("full_art")]
84102
public bool FullArt { get; set; }
85103

86-
[JsonPropertyName("futureshifted")]
87-
public bool Futureshifted { get; set; }
104+
[JsonPropertyName("games")]
105+
public string[] Games { get; set; }
88106

89107
/// <summary>
90-
/// This card’s hand modifier, if it is Vanguard card.This value will contain a delta, such
91-
/// as -1.
108+
/// This card’s hand modifier, if it is Vanguard card.This value will contain a delta, such as -1.
92109
/// </summary>
93110
[JsonPropertyName("hand_modifier")]
94111
public string HandModifier { get; set; }
95112

96113
[JsonPropertyName("highres_image")]
97-
public bool HasHighresImage { get; set; }
114+
public bool HighresImage { get; set; }
98115

99116
/// <summary>
100117
/// A unique ID for this card in Scryfall’s database.
@@ -105,9 +122,18 @@ public class Card : BaseItem
105122
[JsonPropertyName("illustration_id")]
106123
public Guid IllustrationId { get; set; }
107124

125+
[JsonPropertyName("image_status")]
126+
public string ImageStatus { get; set; }
127+
108128
[JsonPropertyName("image_uris")]
109129
public Dictionary<string, Uri> ImageUris { get; set; }
110130

131+
[JsonPropertyName("keywords")]
132+
public string[] Keywords { get; set; }
133+
134+
[JsonPropertyName("lang")]
135+
public string Language { get; set; }
136+
111137
/// <summary>
112138
/// A computer-readable designation for this card’s layout. See the layout article.
113139
/// </summary>
@@ -169,34 +195,64 @@ public class Card : BaseItem
169195
[JsonPropertyName("name")]
170196
public string Name { get; set; }
171197

198+
[JsonPropertyName("oracle_id")]
199+
public string OracleId { get; set; }
200+
172201
/// <summary>
173202
/// The Oracle text for this card, if any.
174203
/// </summary>
175204
[JsonPropertyName("oracle_text")]
176205
public string OracleText { get; set; }
177206

207+
[JsonPropertyName("oversized")]
208+
public bool Oversized { get; set; }
209+
178210
/// <summary>
179211
/// This card’s power, if any. Note that some cards have powers that are not numeric, such
180212
/// as *.
181213
/// </summary>
182214
[JsonPropertyName("power")]
183215
public string Power { get; set; }
184216

217+
[JsonPropertyName("preview")]
218+
public Dictionary<string, string> Prewiew { get; set; }
219+
185220
[JsonPropertyName("prices")]
186-
public Price Price { get; set; }
221+
public Price Prices { get; set; }
222+
223+
[JsonPropertyName("printed_name")]
224+
public string PrintedName { get; set; }
225+
226+
[JsonPropertyName("printed_text"]
227+
public string PrintedText { get; set; }
228+
229+
[JsonPropertyName("printed_type_line"]
230+
public string PrintedTypeLine { get; set; }
187231

188232
/// <summary>
189233
/// A link to where you can begin paginating all re/prints for this card on Scryfall’s API.
190234
/// </summary>
191235
[JsonPropertyName("prints_search_uri")]
192236
public Uri PrintsSearchUri { get; set; }
193237

238+
[JsonPropertyName("produced_mana")]
239+
public string[] ProducedMana { get; set; }
240+
241+
[JsonPropertyName("promo_types")]
242+
public string[] PromoTypes { get; set; }
243+
244+
[JsonPropertyName("promo")]
245+
public bool Promo { get; set; }
246+
194247
[JsonPropertyName("rarity")]
195248
public string Rarity { get; set; }
196249

197250
[JsonPropertyName("related_uris")]
198251
public Dictionary<string, Uri> RelatedUris { get; set; }
199252

253+
[JsonPropertyName("released_at")]
254+
public string ReleasedAt { get; set; }
255+
200256
[JsonPropertyName("reprint")]
201257
public bool Reprint { get; set; }
202258

@@ -227,9 +283,6 @@ public class Card : BaseItem
227283
[JsonPropertyName("security_stamp")]
228284
public string SecurityStamp { get; set; }
229285

230-
[JsonPropertyName("set")]
231-
public string Set { get; set; }
232-
233286
[JsonPropertyName("set_id")]
234287
public string SetId { get; set; }
235288

@@ -239,14 +292,26 @@ public class Card : BaseItem
239292
[JsonPropertyName("set_search_uri")]
240293
public Uri SetSearchUri { get; set; }
241294

242-
[JsonPropertyName("story_spotlight_number")]
243-
public int StorySpotlightNumber { get; set; }
295+
[JsonPropertyName("set_type")]
296+
public string SetType { get; set; }
297+
298+
[JsonPropertyName("set_uri")]
299+
public string SetUri { get; set; }
300+
301+
[JsonPropertyName("set")]
302+
public string Set { get; set; }
244303

245-
[JsonPropertyName("story_spotlight_uri")]
246-
public Uri StorySpotlightUri { get; set; }
304+
[JsonPropertyName("story_spotlight")]
305+
public bool StorySpotlight { get; set; }
247306

248-
[JsonPropertyName("timeshifted")]
249-
public bool Timeshifted { get; set; }
307+
[JsonPropertyName("tcgplayer_etched_id")]
308+
public int TcgplayerEtchedId { get; set; }
309+
310+
[JsonPropertyName("tcgplayer_id")]
311+
public int TcgplayerId { get; set; }
312+
313+
[JsonPropertyName("textless")]
314+
public bool Textless { get; set; }
250315

251316
/// <summary>
252317
/// This card’s toughness, if any. Note that some cards have toughnesses that are not
@@ -267,6 +332,12 @@ public class Card : BaseItem
267332
[JsonPropertyName("uri")]
268333
public Uri Uri { get; set; }
269334

335+
[JsonPropertyName("variation_of")]
336+
public string VariationOf { get; set; }
337+
338+
[JsonPropertyName("variation")]
339+
public bool Variation { get; set; }
340+
270341
[JsonPropertyName("watermark")]
271342
public string Watermark { get; set; }
272343
public override string ToString() => Name +

src/ScryfallApi.Client/Models/CardFace.cs

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,24 @@ namespace ScryfallApi.Client.Models;
44

55
public class CardFace : BaseItem
66
{
7+
[JsonPropertyName("artist_id")]
8+
public string ArtistId { get; set; }
9+
710
[JsonPropertyName("artist")]
811
public string Artist { get; set; }
912

13+
[JsonPropertyName("cmc")]
14+
public decimal Cmc { get; set; }
15+
16+
[JsonPropertyName("color_indicator")]
17+
public string[] ColorIndicator { get; set; }
18+
1019
/// <summary>
1120
/// This face’s colors.
1221
/// </summary>
1322
[JsonPropertyName("colors")]
1423
public string[] Colors { get; set; }
1524

16-
[JsonPropertyName("cmc")]
17-
public decimal ConvertedManaCost { get; set; }
18-
1925
[JsonPropertyName("flavor_name")]
2026
public string FlavorName { get; set; }
2127

@@ -31,6 +37,9 @@ public class CardFace : BaseItem
3137
[JsonPropertyName("layout")]
3238
public string Layout { get; set; }
3339

40+
[JsonPropertyName("loyalty")]
41+
public string Loyalty { get; set; }
42+
3443
/// <summary>
3544
/// The mana cost for this card. This value will be any empty string "" if the cost is
3645
/// absent. Remember that per the game rules, a missing mana cost and a mana cost of {0}
@@ -44,6 +53,7 @@ public class CardFace : BaseItem
4453
/// </summary>
4554
[JsonPropertyName("name")]
4655
public string Name { get; set; }
56+
4757
[JsonPropertyName("oracle_id")]
4858
public string OracleId { get; set; }
4959

@@ -60,6 +70,15 @@ public class CardFace : BaseItem
6070
[JsonPropertyName("power")]
6171
public string Power { get; set; }
6272

73+
[JsonPropertyName("printed_name")]
74+
public string PrintedName { get; set; }
75+
76+
[JsonPropertyName("printed_text"]
77+
public string PrintedText { get; set; }
78+
79+
[JsonPropertyName("printed_type_line"]
80+
public string PrintedTypeLine { get; set; }
81+
6382
/// <summary>
6483
/// This card’s toughness, if any. Note that some cards have toughnesses that are not
6584
/// numeric, such as *.
@@ -72,4 +91,7 @@ public class CardFace : BaseItem
7291
/// </summary>
7392
[JsonPropertyName("type_line")]
7493
public string TypeLine { get; set; }
94+
95+
[JsonPropertyName("watermark")]
96+
public string Watermark { get; set; }
7597
}

src/ScryfallApi.Client/Models/Price.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@ namespace ScryfallApi.Client.Models;
44

55
public class Price : BaseItem
66
{
7-
[JsonConverter(typeof(UsDecimalAsStringConverter))]
8-
[JsonPropertyName("usd")]
9-
public decimal? Usd { get; set; }
10-
11-
[JsonConverter(typeof(UsDecimalAsStringConverter))]
12-
[JsonPropertyName("usd_foil")]
13-
public decimal? UsdFoil { get; set; }
14-
15-
[JsonConverter(typeof(UsDecimalAsStringConverter))]
16-
[JsonPropertyName("usd_etched")]
17-
public decimal? UsdEtched { get; set; }
18-
197
[JsonConverter(typeof(UsDecimalAsStringConverter))]
208
[JsonPropertyName("eur")]
219
public decimal? Eur { get; set; }
@@ -27,4 +15,16 @@ public class Price : BaseItem
2715
[JsonConverter(typeof(UsDecimalAsStringConverter))]
2816
[JsonPropertyName("tix")]
2917
public decimal? Tix { get; set; }
18+
19+
[JsonConverter(typeof(UsDecimalAsStringConverter))]
20+
[JsonPropertyName("usd")]
21+
public decimal? Usd { get; set; }
22+
23+
[JsonConverter(typeof(UsDecimalAsStringConverter))]
24+
[JsonPropertyName("usd_etched")]
25+
public decimal? UsdEtched { get; set; }
26+
27+
[JsonConverter(typeof(UsDecimalAsStringConverter))]
28+
[JsonPropertyName("usd_foil")]
29+
public decimal? UsdFoil { get; set; }
3030
}

0 commit comments

Comments
 (0)