twitch-agent/TwitchEventSub/Types/StreamActivity.cs

17 lines
762 B
C#
Raw Permalink Normal View History

namespace TwitchEventSub.Types
{
public class StreamActivity : Event
{
public string broadcaster_user_id { get; set; } //The broadcasters user id.
public string broadcaster_user_login { get; set; } //The broadcasters user login.
public string broadcaster_user_name { get; set; } //The broadcasters user display name.
}
public class StreamOffline : StreamActivity {}
public class StreamOnline : StreamActivity
{
public string id { get; set; } //The id of the stream.
public string type { get; set; } //The stream type. Valid values are: live, playlist, watch_party, premiere, rerun.
public string started_at { get; set; } //The timestamp at which the stream went online at.
}
}