Class PollChoice
java.lang.Object
com.github.twitch4j.eventsub.domain.PollChoice
public class PollChoice
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPollChoice.PollChoiceBuilder -
Constructor Summary
Constructors Constructor Description PollChoice()PollChoice(java.lang.String id, java.lang.String title, @Nullable java.lang.Integer votes, @Nullable java.lang.Integer channelPointsVotes, @Nullable java.lang.Integer bitsVotes) -
Method Summary
Modifier and Type Method Description static PollChoice.PollChoiceBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)@Nullable java.lang.IntegergetBitsVotes()Number of votes received via Bits.@Nullable java.lang.IntegergetChannelPointsVotes()Number of votes received via Channel Points.java.lang.StringgetId()ID for the choice.java.lang.StringgetTitle()Text displayed for the choice.@Nullable java.lang.IntegergetVotes()Total number of votes received for the choice across all methods of voting.inthashCode()PollChoice.PollChoiceBuildertoBuilder()java.lang.StringtoString()PollChoicewithBitsVotes(@Nullable java.lang.Integer bitsVotes)Number of votes received via Bits.PollChoicewithChannelPointsVotes(@Nullable java.lang.Integer channelPointsVotes)Number of votes received via Channel Points.PollChoicewithId(java.lang.String id)ID for the choice.PollChoicewithTitle(java.lang.String title)Text displayed for the choice.PollChoicewithVotes(@Nullable java.lang.Integer votes)Total number of votes received for the choice across all methods of voting.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
PollChoice
public PollChoice() -
PollChoice
public PollChoice(java.lang.String id, java.lang.String title, @Nullable @Nullable java.lang.Integer votes, @Nullable @Nullable java.lang.Integer channelPointsVotes, @Nullable @Nullable java.lang.Integer bitsVotes)
-
-
Method Details
-
builder
-
toBuilder
-
withId
ID for the choice.- Returns:
- a clone of this object, except with this updated property (returns
thisif 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
thisif 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
thisif 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
thisif an identical value is passed).
-
withBitsVotes
Number of votes received via Bits.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
getId
public java.lang.String getId()ID for the choice. -
getTitle
public java.lang.String getTitle()Text displayed for the choice. Maximum: 25 characters. -
getVotes
@Nullable public @Nullable java.lang.Integer getVotes()Total number of votes received for the choice across all methods of voting. -
getChannelPointsVotes
@Nullable public @Nullable java.lang.Integer getChannelPointsVotes()Number of votes received via Channel Points. -
getBitsVotes
@Nullable public @Nullable java.lang.Integer getBitsVotes()Number of votes received via Bits. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-