PredictionEnd

data class PredictionEnd(val subscriptionType: String, val messageId: String, val timestamp: Instant, val id: String, val broadcasterUserId: String, val broadcasterUserLogin: String, val broadcasterUserName: String, val title: String, val winningOutcomeId: String?, val outcomes: List<PredictionOutcome>, val status: String, val startedAt: Instant, val endedAt: Instant) : TwitchEvent

Twitch EventSub: channel.prediction.end

Constructors

Link copied to clipboard
constructor(subscriptionType: String, messageId: String, timestamp: Instant, id: String, broadcasterUserId: String, broadcasterUserLogin: String, broadcasterUserName: String, title: String, winningOutcomeId: String?, outcomes: List<PredictionOutcome>, status: String, startedAt: Instant, endedAt: Instant)

Properties

Link copied to clipboard

the broadcaster's user ID.

Link copied to clipboard

the broadcaster's login.

Link copied to clipboard

the broadcaster's display name.

Link copied to clipboard

RFC3339 timestamp of when the prediction ended.

Link copied to clipboard
val id: String

the prediction ID.

Link copied to clipboard
open override val messageId: String

Unique ID for this EventSub message.

Link copied to clipboard

the list of prediction outcomes with final totals.

Link copied to clipboard

RFC3339 timestamp of when the prediction started.

Link copied to clipboard

the end status: resolved or canceled.

Link copied to clipboard
open override val subscriptionType: String

The EventSub subscription type string (e.g. channel.follow).

Link copied to clipboard
open override val timestamp: Instant

The Instant when the EventSub notification was sent, parsed from ISO-8601.

Link copied to clipboard

the prediction title.

Link copied to clipboard

the ID of the winning outcome; null if canceled.