Room.Stream

Representation of a broadcast (stream).

Constructors

this
this(ulong id)

Constructor.

this
this(JSONValue json)

Deserialises a Stream from a JSON representation.

Members

Functions

id
auto id()

Accessor to _id.

toJSON
auto toJSON()

Serialises this Stream into a JSON representation.

update
void update(Stream updated)

Takes a second Stream and updates this one with values from it.

Variables

_id
ulong _id;

The unique ID of a stream, as supplied by Twitch.

activeViewers
RehashingAA!(bool[string]) activeViewers;

Hashmap of active viewers (who have shown activity).

chattersSeen
RehashingAA!(bool[string]) chattersSeen;

Users seen in the channel.

duration
Duration duration;

How long the stream had been running after terminating it.

endedAt
SysTime endedAt;

When the stream ended.

gameID
ulong gameID;

The numerical ID of a game, as supplied by Twitch.

gameName
string gameName;

The name of the game that's being streamed.

live
bool live;

Whether or not the stream is currently ongoing.

startedAt
SysTime startedAt;

When the stream started.

status
string status;

Status of the stream, when it has ended. Can be one of "TERMINATED" and "ARCHIVED".

tags
string[] tags;

Stream tags.

title
string title;

The title of the stream.

userDisplayName
string userDisplayName;

The display name of the channel owner.

userID
ulong userID;

The numerical ID of the user/account of the channel owner.

userLogin
string userLogin;

The user/account name of the channel owner.

viewerCount
long viewerCount;

How many people were viewing the stream the last time the monitor Fiber checked.

viewerCountMax
long viewerCountMax;

The maximum number of people seen watching this stream.