Poll
@Serializable
Represents a poll from the Twitch Helix API.
See also
Constructors
Link copied to clipboard
constructor(id: String, broadcasterId: String, broadcasterName: String, broadcasterLogin: String, title: String, choices: List<PollChoice>, bitsVotingEnabled: Boolean = false, bitsPerVote: Int = 0, channelPointsVotingEnabled: Boolean = false, channelPointsPerVote: Int = 0, status: PollStatus, duration: Int, startedAt: Instant? = null, endedAt: Instant? = null)
Properties
Link copied to clipboard
not used; will be set to 0.
Link copied to clipboard
not used; will be set to false.
Link copied to clipboard
an ID that identifies the broadcaster that created the poll.
Link copied to clipboard
the broadcaster's login name.
Link copied to clipboard
the broadcaster's display name.
Link copied to clipboard
the number of points the viewer must spend to cast one additional vote.
Link copied to clipboard
a Boolean value that indicates whether viewers may cast additional votes using Channel Points.
Link copied to clipboard
a list of choices that viewers can choose from. The list will contain a minimum of two choices and up to a maximum of five choices.
Link copied to clipboard
the poll's status: ACTIVE, COMPLETED, TERMINATED, ARCHIVED, MODERATED, or INVALID.