Commercial

@Serializable
data class Commercial(val length: Int, val message: String = "", val retryAfter: Int = 0)

Twitch API: Start Commercial

Constructors

Link copied to clipboard
constructor(length: Int, message: String = "", retryAfter: Int = 0)

Properties

Link copied to clipboard
val length: Int

the length of the commercial in seconds.

Link copied to clipboard

a message describing the result.

Link copied to clipboard
@SerialName(value = "retry_after")
val retryAfter: Int

the number of seconds before the broadcaster can run the next commercial.