StreamOnline

data class StreamOnline(val subscriptionType: String, val messageId: String, val timestamp: Instant, val id: String, val broadcasterUserId: String, val broadcasterUserLogin: String, val broadcasterUserName: String, val type: String, val startedAt: Instant) : TwitchEvent

Twitch EventSub: stream.online

Constructors

Link copied to clipboard
constructor(subscriptionType: String, messageId: String, timestamp: Instant, id: String, broadcasterUserId: String, broadcasterUserLogin: String, broadcasterUserName: String, type: String, startedAt: Instant)

Properties

Link copied to clipboard

the broadcaster's user ID.

Link copied to clipboard

the broadcaster's user login.

Link copied to clipboard

the broadcaster's user display name.

Link copied to clipboard
val id: String

the id of the stream.

Link copied to clipboard
open override val messageId: String

Unique ID for this EventSub message.

Link copied to clipboard

the timestamp (RFC3339) at which the stream went online.

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 stream type: live, playlist, watch_party, premiere, or rerun.