Package com.github.twitch4j.helix.domain
Klasse Poll
java.lang.Object
com.github.twitch4j.helix.domain.Poll
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPoll()Poll(String id, String broadcasterId, String broadcasterName, String broadcasterLogin, String title, List<PollChoice> choices, Boolean isBitsVotingEnabled, Integer bitsPerVote, Boolean isChannelPointsVotingEnabled, Integer channelPointsPerVote, PollStatus status, Integer durationSeconds, Instant startedAt, @Nullable Instant endedAt) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Poll.PollBuilderbuilder()protected booleanbooleanVeraltet.Twitch no longer supports bits on polls.ID of the broadcaster.Login name of the broadcaster.Display name of the broadcaster.Number of Channel Points required to vote once with Channel Points.The poll choices.Total duration for the poll (in seconds).UTC timestamp for the poll’s start time.getId()ID of the poll.UTC timestamp for the poll’s start time.Poll status.getTitle()Question displayed for the poll.inthashCode()Veraltet.Twitch no longer supports bits on polls.Indicates whether Channel Points can be used for voting.toString()withBitsPerVote(Integer bitsPerVote) Veraltet.Twitch no longer supports bits on polls.withBroadcasterId(String broadcasterId) ID of the broadcaster.withBroadcasterLogin(String broadcasterLogin) Login name of the broadcaster.withBroadcasterName(String broadcasterName) Display name of the broadcaster.withChannelPointsPerVote(Integer channelPointsPerVote) Number of Channel Points required to vote once with Channel Points.withChoices(List<PollChoice> choices) The poll choices.withDurationSeconds(Integer durationSeconds) Total duration for the poll (in seconds).withEndedAt(@Nullable Instant endedAt) UTC timestamp for the poll’s start time.ID of the poll.withIsBitsVotingEnabled(Boolean isBitsVotingEnabled) Veraltet.Twitch no longer supports bits on polls.withIsChannelPointsVotingEnabled(Boolean isChannelPointsVotingEnabled) Indicates whether Channel Points can be used for voting.withStartedAt(Instant startedAt) UTC timestamp for the poll’s start time.withStatus(PollStatus status) Poll status.Question displayed for the poll.
-
Konstruktordetails
-
Poll
public Poll() -
Poll
public Poll(String id, String broadcasterId, String broadcasterName, String broadcasterLogin, String title, List<PollChoice> choices, Boolean isBitsVotingEnabled, Integer bitsPerVote, Boolean isChannelPointsVotingEnabled, Integer channelPointsPerVote, PollStatus status, Integer durationSeconds, Instant startedAt, @Nullable @Nullable Instant endedAt)
-
-
Methodendetails
-
getDuration
- Gibt zurück:
- the total duration for the poll.
-
builder
-
toBuilder
-
withId
ID of the poll.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBroadcasterId
ID of the broadcaster.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBroadcasterName
Display name of the broadcaster.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBroadcasterLogin
Login name of the broadcaster.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTitle
Question displayed for the poll. Maximum: 60 characters.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChoices
The poll choices. Minimum: 2 choices. Maximum: 5 choices.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withIsBitsVotingEnabled
Veraltet.Twitch no longer supports bits on polls.Indicates whether Bits can be used for voting. Default: false.- Gibt zurück:
this.
-
withBitsPerVote
Veraltet.Twitch no longer supports bits on polls.Number of Bits required to vote once with Bits. Minimum: 0. Maximum: 10000.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withIsChannelPointsVotingEnabled
Indicates whether Channel Points can be used for voting. Default: false.- Gibt zurück:
this.
-
withChannelPointsPerVote
Number of Channel Points required to vote once with Channel Points. Minimum: 0. Maximum: 1000000.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStatus
Poll status.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDurationSeconds
Total duration for the poll (in seconds). Minimum: 15. Maximum: 1800.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStartedAt
UTC timestamp for the poll’s start time.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEndedAt
UTC timestamp for the poll’s start time.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
getId
ID of the poll. -
getBroadcasterId
ID of the broadcaster. -
getBroadcasterName
Display name of the broadcaster. -
getBroadcasterLogin
Login name of the broadcaster. -
getTitle
Question displayed for the poll. Maximum: 60 characters. -
getChoices
The poll choices. Minimum: 2 choices. Maximum: 5 choices. -
isBitsVotingEnabled
Veraltet.Twitch no longer supports bits on polls.Indicates whether Bits can be used for voting. Default: false. -
getBitsPerVote
Veraltet.Twitch no longer supports bits on polls.Number of Bits required to vote once with Bits. Minimum: 0. Maximum: 10000. -
isChannelPointsVotingEnabled
Indicates whether Channel Points can be used for voting. Default: false. -
getChannelPointsPerVote
Number of Channel Points required to vote once with Channel Points. Minimum: 0. Maximum: 1000000. -
getStatus
Poll status. -
getDurationSeconds
Total duration for the poll (in seconds). Minimum: 15. Maximum: 1800. -
getStartedAt
UTC timestamp for the poll’s start time. -
getEndedAt
UTC timestamp for the poll’s start time. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-