some cleanup - Colors will alwyas just be IEnumerable<Color>

This commit is contained in:
Adam R. Grey 2021-11-06 00:30:19 -04:00
parent 6b27ad16f5
commit dbfb07bcce
4 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,9 @@
using System;
namespace Sharpfall
{
//fyi: there's a Guid built in to .net. But it's not necessarily exactly identical to RFC4122's description of a uuid.
using UUID = System.String;
public class BulkDataList
{
public string @object { get; set; }
@ -10,7 +13,7 @@ namespace Sharpfall
public class BulkMetaEntry
{
public string @object { get; set; }
public Guid id { get; set; }
public UUID id { get; set; }
public string type { get; set; }
public DateTime updated_at { get; set; }
public Uri uri { get; set; }

View File

@ -5,7 +5,6 @@ namespace Sharpfall
{
//fyi: there's a Guid built in to .net. But it's not necessarily exactly identical to RFC4122's description of a uuid.
using UUID = System.String;
using Colors = IEnumerable<Color>;
public class Card
{
public int? arena_id; //This cards Arena ID, if any. A large percentage of cards are not available on Arena and do not have this ID.
@ -27,9 +26,9 @@ namespace Sharpfall
public IEnumerable<RelatedCard> all_parts; //If this card is closely related to other cards, this property will be an array with Related Card Objects.
public IEnumerable<CardFace> card_faces; //An array of Card Face objects, if this card is multifaced.
public decimal cmc; //The cards converted mana cost. Note that some funny cards have fractional mana costs.
public Colors color_identity; //This cards color identity.
public Colors color_indicator; //The colors in this cards color indicator, if any. A null value for this field indicates the card does not have one.
public Colors colors; //This cards colors, if the overall card has colors defined by the rules. Otherwise the colors will be on the card_faces objects, see below.
public IEnumerable<Color> color_identity; //This cards color identity.
public IEnumerable<Color> color_indicator; //The colors in this cards color indicator, if any. A null value for this field indicates the card does not have one.
public IEnumerable<Color> colors; //This cards colors, if the overall card has colors defined by the rules. Otherwise the colors will be on the card_faces objects, see below.
public int? edhrec_rank; //This cards overall rank/popularity on EDHREC. Not all cards are ranked.
public string hand_modifier; //This cards hand modifier, if it is Vanguard card. This value will contain a delta, such as -1.
public IEnumerable<string> keywords; //An array of keywords that this card uses, such as 'Flying' and 'Cumulative upkeep'.
@ -42,7 +41,7 @@ namespace Sharpfall
public string oracle_text; //The Oracle text for this card, if any.
public bool oversized; //True if this card is oversized.
public string power; //This cards power, if any. Note that some cards have powers that are not numeric, such as *.
public Colors produced_mana; //Colors of mana that this card could produce.
public IEnumerable<Color> produced_mana; //Colors of mana that this card could produce.
public bool reserved; //True if this card is on the Reserved List.
public string toughness; //This cards toughness, if any. Note that some cards have toughnesses that are not numeric, such as *.
public string type_line; //The type line of this card.

View File

@ -4,12 +4,11 @@ using System.Collections.Generic;
namespace Sharpfall
{
using UUID = System.String;
using Colors = IEnumerable<Color>;
public class CardFace
{
public string artist { get; set; } //The name of the illustrator of this card face. Newly spoiled cards may not have this field yet.
public Colors color_indicator { get; set; } //The colors in this faces color indicator, if any.
public Colors colors { get; set; } //This faces colors, if the game defines colors for the individual face of this card.
public IEnumerable<Color> color_indicator { get; set; } //The colors in this faces color indicator, if any.
public IEnumerable<Color> colors { get; set; } //This faces colors, if the game defines colors for the individual face of this card.
public string flavor_text { get; set; } //The flavor text printed on this face, if any.
public UUID illustration_id { get; set; } //A unique identifier for the card face artwork that remains consistent across reprints. Newly spoiled cards may not have this field yet.
public Images image_uris { get; set; } //An object providing URIs to imagery for this face, if this is a double-sided card. If this card is not double-sided, then the image_uris property will be part of the parent object instead.

View File

@ -4,7 +4,6 @@ using System.Collections.Generic;
namespace Sharpfall
{
using UUID = System.String;
using Colors = IEnumerable<Color>;
public class RelatedCard
{
public UUID id { get; set; } //An unique ID for this card in Scryfalls database.