Package com.github.twitch4j.helix.domain
Class Poll.PollBuilder
java.lang.Object
com.github.twitch4j.helix.domain.Poll.PollBuilder
- Enclosing class:
- Poll
public static class Poll.PollBuilder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description Poll.PollBuilderbitsPerVote(java.lang.Integer bitsPerVote)Number of Bits required to vote once with Bits.Poll.PollBuilderbroadcasterId(java.lang.String broadcasterId)ID of the broadcaster.Poll.PollBuilderbroadcasterLogin(java.lang.String broadcasterLogin)Login name of the broadcaster.Poll.PollBuilderbroadcasterName(java.lang.String broadcasterName)Display name of the broadcaster.Pollbuild()Poll.PollBuilderchannelPointsPerVote(java.lang.Integer channelPointsPerVote)Number of Channel Points required to vote once with Channel Points.Poll.PollBuilderchoice(com.github.twitch4j.eventsub.domain.PollChoice choice)Poll.PollBuilderchoices(java.util.Collection<? extends com.github.twitch4j.eventsub.domain.PollChoice> choices)Poll.PollBuilderclearChoices()Poll.PollBuilderdurationSeconds(java.lang.Integer durationSeconds)Total duration for the poll (in seconds).Poll.PollBuilderendedAt(@Nullable java.time.Instant endedAt)UTC timestamp for the poll’s start time.Poll.PollBuilderid(java.lang.String id)ID of the poll.Poll.PollBuilderisBitsVotingEnabled(java.lang.Boolean isBitsVotingEnabled)Indicates whether Bits can be used for voting.Poll.PollBuilderisChannelPointsVotingEnabled(java.lang.Boolean isChannelPointsVotingEnabled)Indicates whether Channel Points can be used for voting.Poll.PollBuilderstartedAt(java.time.Instant startedAt)UTC timestamp for the poll’s start time.Poll.PollBuilderstatus(com.github.twitch4j.eventsub.domain.PollStatus status)Poll status.Poll.PollBuildertitle(java.lang.String title)Question displayed for the poll.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
public Poll.PollBuilder choices(java.util.Collection<? extends com.github.twitch4j.eventsub.domain.PollChoice> choices) -
clearChoices
-
isBitsVotingEnabled
Indicates whether Bits can be used for voting. Default: false.- Returns:
this.
-
bitsPerVote
Number of Bits required to vote once with Bits. Minimum: 0. Maximum: 10000.- Returns:
this.
-
isChannelPointsVotingEnabled
public Poll.PollBuilder isChannelPointsVotingEnabled(java.lang.Boolean 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
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-