Package com.github.twitch4j.helix.domain
Class Poll.PollBuilder
java.lang.Object
com.github.twitch4j.helix.domain.Poll.PollBuilder
- Enclosing class:
- Poll
-
Method Summary
Modifier and TypeMethodDescriptionbitsPerVote
(Integer bitsPerVote) Deprecated.Twitch no longer supports bits on polls.broadcasterId
(String broadcasterId) ID of the broadcaster.broadcasterLogin
(String broadcasterLogin) Login name of the broadcaster.broadcasterName
(String broadcasterName) Display name of the broadcaster.build()
channelPointsPerVote
(Integer channelPointsPerVote) Number of Channel Points required to vote once with Channel Points.choice
(PollChoice choice) choices
(Collection<? extends PollChoice> choices) durationSeconds
(Integer durationSeconds) Total duration for the poll (in seconds).UTC timestamp for the poll’s start time.ID of the poll.isBitsVotingEnabled
(Boolean isBitsVotingEnabled) Deprecated.Twitch no longer supports bits on polls.isChannelPointsVotingEnabled
(Boolean isChannelPointsVotingEnabled) Indicates whether Channel Points can be used for voting.UTC timestamp for the poll’s start time.status
(PollStatus status) Poll status.Question displayed for the poll.toString()
-
Method Details
-
id
ID of the poll.- Returns:
this
.
-
broadcasterId
ID of the broadcaster.- Returns:
this
.
-
broadcasterName
Display name of the broadcaster.- Returns:
this
.
-
broadcasterLogin
Login name of the broadcaster.- Returns:
this
.
-
title
Question displayed for the poll. Maximum: 60 characters.- Returns:
this
.
-
choice
-
choices
-
clearChoices
-
isBitsVotingEnabled
Deprecated.Twitch no longer supports bits on polls.Indicates whether Bits can be used for voting. Default: false.- Returns:
this
.
-
bitsPerVote
Deprecated.Twitch no longer supports bits on polls.Number of Bits required to vote once with Bits. Minimum: 0. Maximum: 10000.- Returns:
this
.
-
isChannelPointsVotingEnabled
Indicates whether Channel Points can be used for voting. Default: false.- Returns:
this
.
-
channelPointsPerVote
Number of Channel Points required to vote once with Channel Points. Minimum: 0. Maximum: 1000000.- Returns:
this
.
-
status
Poll status.- Returns:
this
.
-
durationSeconds
Total duration for the poll (in seconds). Minimum: 15. Maximum: 1800.- Returns:
this
.
-
startedAt
UTC timestamp for the poll’s start time.- Returns:
this
.
-
endedAt
UTC timestamp for the poll’s start time.- Returns:
this
.
-
build
-
toString
-