CardSymbolApi

class CardSymbolApi(config: ScryfallConfig = ScryfallConfig(), engine: HttpClientEngine? = null, logger: (String) -> Unit? = null) : ScryfallBaseApi

Card Symbols (Symbology) endpoints. https://scryfall.com/docs/api/card-symbols

Constructors

Link copied to clipboard
constructor(config: ScryfallConfig = ScryfallConfig(), engine: HttpClientEngine? = null, logger: (String) -> Unit? = null)

Functions

Link copied to clipboard
suspend fun all(format: String? = "json", pretty: Boolean? = false): ScryfallList<CardSymbol>

Returns a List object of all card symbols. https://scryfall.com/docs/api/card-symbols/all

Link copied to clipboard
suspend fun parseMana(cost: String, format: String? = "json", pretty: Boolean? = false): ParsedManaCost

Parses a mana cost string into tokens and computes values like converted mana cost and colors. https://scryfall.com/docs/api/card-symbols/parse-mana