EventSubSubscription

@Serializable
data class EventSubSubscription(val id: String, val status: String, val type: String, val version: String, val condition: Map<String, String> = emptyMap(), val transport: EventSubTransport, val createdAt: Instant? = null, val cost: Int = 0)

Twitch API: Create EventSub Subscription

Constructors

Link copied to clipboard
constructor(id: String, status: String, type: String, version: String, condition: Map<String, String> = emptyMap(), transport: EventSubTransport, createdAt: Instant? = null, cost: Int = 0)

Properties

Link copied to clipboard

the subscription's parameter values, specific to the subscription type.

Link copied to clipboard
val cost: Int

how much this subscription counts against the application's subscription limit.

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Instant?

when the subscription was created.

Link copied to clipboard
val id: String

an ID that uniquely identifies this subscription.

Link copied to clipboard

the subscription's status (e.g., enabled for WebSockets).

Link copied to clipboard

the transport used for notifications.

Link copied to clipboard

the subscription's type (e.g., channel.follow).

Link copied to clipboard

the version number of the subscription type's definition.