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 class  PollChoice.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.PollChoiceBuilder builder()  
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    @Nullable java.lang.Integer getBitsVotes()
    Number of votes received via Bits.
    @Nullable java.lang.Integer getChannelPointsVotes()
    Number of votes received via Channel Points.
    java.lang.String getId()
    ID for the choice.
    java.lang.String getTitle()
    Text displayed for the choice.
    @Nullable java.lang.Integer getVotes()
    Total number of votes received for the choice across all methods of voting.
    int hashCode()  
    PollChoice.PollChoiceBuilder toBuilder()  
    java.lang.String toString()  
    PollChoice withBitsVotes​(@Nullable java.lang.Integer bitsVotes)
    Number of votes received via Bits.
    PollChoice withChannelPointsVotes​(@Nullable java.lang.Integer channelPointsVotes)
    Number of votes received via Channel Points.
    PollChoice withId​(java.lang.String id)
    ID for the choice.
    PollChoice withTitle​(java.lang.String title)
    Text displayed for the choice.
    PollChoice withVotes​(@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

      public static PollChoice.PollChoiceBuilder builder()
    • toBuilder

      public PollChoice.PollChoiceBuilder toBuilder()
    • withId

      public PollChoice withId​(java.lang.String id)
      ID for the choice.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTitle

      public PollChoice withTitle​(java.lang.String title)
      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

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

      public PollChoice withChannelPointsVotes​(@Nullable @Nullable java.lang.Integer channelPointsVotes)
      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

      public PollChoice withBitsVotes​(@Nullable @Nullable java.lang.Integer bitsVotes)
      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

      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:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

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