Class PollChoice
java.lang.Object
com.github.twitch4j.eventsub.domain.PollChoice
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PollChoice.PollChoiceBuilder
builder()
protected boolean
boolean
@Nullable Integer
Deprecated.Twitch no longer supports bits on polls.@Nullable Integer
Number of votes received via Channel Points.getId()
ID for the choice.getTitle()
Text displayed for the choice.@Nullable Integer
getVotes()
Total number of votes received for the choice across all methods of voting.int
hashCode()
toString()
withBitsVotes
(@Nullable Integer bitsVotes) Deprecated.Twitch no longer supports bits on polls.withChannelPointsVotes
(@Nullable Integer channelPointsVotes) Number of votes received via Channel Points.ID for the choice.Text displayed for the choice.Total number of votes received for the choice across all methods of voting.
-
Constructor Details
-
PollChoice
public PollChoice() -
PollChoice
public PollChoice(String id, String title, @Nullable @Nullable Integer votes, @Nullable @Nullable Integer channelPointsVotes, @Nullable @Nullable Integer bitsVotes) Deprecated.Twitch no longer supports bits on polls.Creates a newPollChoice
instance.- Parameters:
id
- ID for the choice.title
- Text displayed for the choice. Maximum: 25 characters.votes
- Total number of votes received for the choice across all methods of voting.channelPointsVotes
- Number of votes received via Channel Points.bitsVotes
- Number of votes received via Bits.
-
-
Method Details
-
builder
-
toBuilder
-
withId
ID for the choice.- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withTitle
Text displayed for the choice. Maximum: 25 characters.- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withVotes
Total number of votes received for the choice across all methods of voting.- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withChannelPointsVotes
Number of votes received via Channel Points.- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withBitsVotes
Deprecated.Twitch no longer supports bits on polls.Number of votes received via Bits.- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
getId
ID for the choice. -
getTitle
Text displayed for the choice. Maximum: 25 characters. -
getVotes
Total number of votes received for the choice across all methods of voting. -
getChannelPointsVotes
Number of votes received via Channel Points. -
getBitsVotes
Deprecated.Twitch no longer supports bits on polls.Number of votes received via Bits. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-