go-twitch/eventsub/events/streams.go

35 lines
938 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package events
import "time"
type StreamOnlineEvent struct {
// The id of the stream.
Id string `json:"id"`
// The broadcasters user id.
BroadcasterUserId string `json:"broadcaster_user_id"`
// The broadcasters user login.
BroadcasterUserLogin string `json:"broadcaster_user_login"`
// The broadcasters user display name.
BroadcasterUserName string `json:"broadcaster_user_name"`
// The stream type. Valid values are: live, playlist, watch_party, premiere, rerun.
Type string `json:"type"`
// The timestamp at which the stream went online at.
StartedAt time.Time `json:"started_at"`
}
type StreamOfflineEvent struct {
// The broadcasters user id.
BroadcasterUserId string `json:"broadcaster_user_id"`
// The broadcasters user login.
BroadcasterUserLogin string `json:"broadcaster_user_login"`
// The broadcasters user display name.
BroadcasterUserName string `json:"broadcaster_user_name"`
}