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 Details

    • id

      public PollChoice.PollChoiceBuilder id​(java.lang.String id)
      ID for the choice.
      Returns:
      this.
    • title

      public PollChoice.PollChoiceBuilder title​(java.lang.String title)
      Text displayed for the choice. Maximum: 25 characters.
      Returns:
      this.
    • votes

      public PollChoice.PollChoiceBuilder votes​(@Nullable @Nullable java.lang.Integer 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

      public PollChoice.PollChoiceBuilder bitsVotes​(@Nullable @Nullable java.lang.Integer bitsVotes)
      Number of votes received via Bits.
      Returns:
      this.
    • build

      public PollChoice build()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object