HypeTrainEnd

data class HypeTrainEnd(val subscriptionType: String, val messageId: String, val timestamp: Instant, val id: String, val broadcasterUserId: String, val broadcasterUserLogin: String, val broadcasterUserName: String, val level: Int, val total: Int, val topContributions: List<HypeTrainContribution>, val startedAt: Instant, val endedAt: Instant, val cooldownEndsAt: Instant, val isGoldenKappaTrain: Boolean = false) : TwitchEvent

Twitch EventSub: channel.hype_train.end v2

See HypeTrainBegin for how points are calculated from bits and subscriptions.

Constructors

Link copied to clipboard
constructor(subscriptionType: String, messageId: String, timestamp: Instant, id: String, broadcasterUserId: String, broadcasterUserLogin: String, broadcasterUserName: String, level: Int, total: Int, topContributions: List<HypeTrainContribution>, startedAt: Instant, endedAt: Instant, cooldownEndsAt: Instant, isGoldenKappaTrain: Boolean = false)

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

the time when the Hype Train cooldown ends so the next one can start.

Link copied to clipboard

the time when the Hype Train ended.

Link copied to clipboard
val id: String

the Hype Train ID.

Link copied to clipboard

whether the Hype Train was a Golden Kappa Train (v2).

Link copied to clipboard
val level: Int

the final level of the Hype Train.

Link copied to clipboard
open override val messageId: String

Unique ID for this EventSub message.

Link copied to clipboard

the time when the Hype Train started.

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 contributors with the most points, each with user_id, type, and total.

Link copied to clipboard
val total: Int

total points contributed to the Hype Train.