Class PollChoice.PollChoiceBuilder
java.lang.Object
com.github.twitch4j.eventsub.domain.PollChoice.PollChoiceBuilder
- Enclosing class:
- PollChoice
public static class PollChoice.PollChoiceBuilder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description PollChoice.PollChoiceBuilderbitsVotes(@Nullable java.lang.Integer bitsVotes)Number of votes received via Bits.PollChoicebuild()PollChoice.PollChoiceBuilderchannelPointsVotes(@Nullable java.lang.Integer channelPointsVotes)Number of votes received via Channel Points.PollChoice.PollChoiceBuilderid(java.lang.String id)ID for the choice.PollChoice.PollChoiceBuildertitle(java.lang.String title)Text displayed for the choice.java.lang.StringtoString()PollChoice.PollChoiceBuildervotes(@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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Method Details
-
id
ID for the choice.- Returns:
this.
-
title
Text displayed for the choice. Maximum: 25 characters.- Returns:
this.
-
votes
Total number of votes received for the choice across all methods of voting.- Returns:
this.
-
channelPointsVotes
public PollChoice.PollChoiceBuilder channelPointsVotes(@Nullable @Nullable java.lang.Integer channelPointsVotes)Number of votes received via Channel Points.- Returns:
this.
-
bitsVotes
Number of votes received via Bits.- Returns:
this.
-
build
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-