Room.Stream

Representation of a broadcast (stream).

Constructors

this
this(uint id)

Constructor.

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.

Static functions

fromJSON
auto fromJSON(JSONValue json)

Deserialises a Stream from a JSON representation.

Variables

_id
uint _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.

gameID
uint 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.

numViewers
long numViewers;

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

numViewersMax
long numViewersMax;

The maximum number of people seen watching this stream.

startTime
SysTime startTime;

When the stream started.

stopTime
SysTime stopTime;

When the stream ended.

tags
string[] tags;

Stream tags.

title
string title;

The title of the stream.

userDisplayName
string userDisplayName;

The display name of the channel owner.

userID
uint userID;

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

userLogin
string userLogin;

The user/account name of the channel owner.