HypeTrainProgress

data class HypeTrainProgress(val subscriptionType: String, val messageId: String, val timestamp: Instant, val id: String, val broadcasterUserId: String, val broadcasterUserLogin: String, val broadcasterUserName: String, val total: Int, val progress: Int, val goal: Int, val topContributions: List<HypeTrainContribution>, val lastContribution: HypeTrainContribution?, val level: Int, val startedAt: Instant, val expiresAt: Instant, val isGoldenKappaTrain: Boolean = false) : TwitchEvent

Twitch EventSub: channel.hype_train.progress 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, total: Int, progress: Int, goal: Int, topContributions: List<HypeTrainContribution>, lastContribution: HypeTrainContribution?, level: Int, startedAt: Instant, expiresAt: 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 expires; extended when it reaches a new level.

Link copied to clipboard
val goal: Int

the number of points required to reach the next level.

Link copied to clipboard
val id: String

the Hype Train ID.

Link copied to clipboard

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

Link copied to clipboard

the most recent contribution with user_id, type, and total.

Link copied to clipboard
val level: Int

the current 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 number of points contributed at the current level.

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.