TwitchPoll

Represents a Twitch native poll (not a poll of the Poll plugin).

Constructors

this
this(JSONValue json)

Constructs a new TwitchPoll from a passed JSONValue as received from API calls.

Members

Enums

PollStatus
enum PollStatus

The current state of the poll.

Structs

Choice
struct Choice

An option to vote for in the poll.

Variables

broadcasterDisplayName
string broadcasterDisplayName;

Twitch display name of broadcaster.

broadcasterID
ulong broadcasterID;

Twitch numeric ID of the broadcaster in whose channel the poll is held.

broadcasterLogin
string broadcasterLogin;

Twitch username of broadcaster.

channelPointsPerVote
uint channelPointsPerVote;

How many channel points you have to pay for one vote.

channelPointsVotingEnabled
bool channelPointsVotingEnabled;

Whether voting with channel points is enabled.

choices
Choice[] choices;

Array of the Choices that you can vote for in this poll.

duration
uint duration;

How many seconds the poll was meant to run.

endedAt
SysTime endedAt;

Timestamp of when the poll ended, if applicable.

pollID
string pollID;

Unique poll ID string.

startedAt
SysTime startedAt;

Timestamp of when the poll started.

status
PollStatus status;

The current state of the poll.

title
string title;

Title of the poll, e.g. "heads or tails?".