Skip to content

Commit

Permalink
Merge 45fe2d8 into dfbc7f7
Browse files Browse the repository at this point in the history
  • Loading branch information
lexfrei committed Jan 22, 2022
2 parents dfbc7f7 + 45fe2d8 commit 4c899be
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions card.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,28 @@ const (
Glossy Finish = "glossy"
)

// ImageStatus A computer-readable indicator for the state of this card’s image,
// one of missing, placeholder, lowres, or highres_scan.
type ImageStatus string

const (
// Missing represents that the card has no image, or the image is being processed.
// This value should only be temporary for very new cards.
Missing ImageStatus = "missing"

// Placeholder represents that Scryfall doesn’t have an image of this card,
// but we know it exists and we have uploaded a placeholder in the meantime.
// This value is most common on localized cards.
Placeholer ImageStatus = "placeholder"

// Highres represents that the card’s image is low-quality,
// either because it was just spoiled or we don’t have better photography for it yet.
Lowres ImageStatus = "lowres"

// Highres represents that the card has a full-resolution scanner image. Crisp and glossy!
Highres ImageStatus = "highres_scan"
)

// Card represents individual Magic: The Gathering cards that players could
// obtain and add to their collection (with a few minor exceptions).
type Card struct {
Expand Down Expand Up @@ -528,6 +550,9 @@ type Card struct {

// Finishes is an array of computer-readable flags that indicate if this card can come in foil, nonfoil, etched, or glossy finishes.
Finishes []Finish `json:"finishes"`

// ImageStatus is a computer-readable indicator for the state of this card’s image.
ImageStatus *ImageStatus `json:"image_status"`
}

// RelatedCard is a card that is closely related to another card (because it
Expand Down

0 comments on commit 4c899be

Please sign in to comment.