Game

@Serializable
data class Game(val id: String, val name: String, val boxArtUrl: String = "", val igdbId: String = "")

Represents a game or category on Twitch.

See also

Constructors

Link copied to clipboard
constructor(id: String, name: String, boxArtUrl: String = "", igdbId: String = "")

Properties

Link copied to clipboard
@SerialName(value = "box_art_url")
val boxArtUrl: String

a URL to the category's or game's box art. You must replace the {width}x{height} placeholder with the size of image you want.

Link copied to clipboard
val id: String

an ID that identifies the category or game.

Link copied to clipboard
@SerialName(value = "igdb_id")
val igdbId: String

the ID that IGDB uses to identify this game. If the IGDB ID is not available to Twitch, this field is set to an empty string.

Link copied to clipboard

the category's or game's name.