Provider

class Provider(val isContentCardProvider: Boolean)

Constructors

Link copied to clipboard
constructor(isContentCardProvider: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Parses out the card type from the json and returns a CardType. If the type is that of a CardType.SHORT_NEWS and no image url is present, then the type returned will be that of a CardType.TEXT_ANNOUNCEMENT.

Link copied to clipboard
fun getKey(key: CardKey): String
Link copied to clipboard

Returns the server key for the CardType, or null if the server key cannot be found.