Class PollData

java.lang.Object
com.github.twitch4j.pubsub.domain.PollData

public class PollData extends Object
  • Constructor Details

    • PollData

      public PollData()
  • Method Details

    • getPollId

      public String getPollId()
    • getOwnedBy

      public String getOwnedBy()
    • getCreatedBy

      public String getCreatedBy()
    • getTitle

      public String getTitle()
    • getStartedAt

      public Instant getStartedAt()
    • getEndedAt

      public Instant getEndedAt()
    • getEndedBy

      public String getEndedBy()
    • getDurationSeconds

      public Long getDurationSeconds()
    • getSettings

      public PollData.PollSettings getSettings()
    • getStatus

      public PollData.Status getStatus()
    • getChoices

      public List<PollData.PollChoice> getChoices()
    • getVotes

      public PollData.Votes getVotes()
    • getTokens

      public PollData.Tokens getTokens()
    • getTotalVoters

      public Integer getTotalVoters()
    • getRemainingDurationMilliseconds

      public Long getRemainingDurationMilliseconds()
    • getTopContributor

      public PollData.Contributor getTopContributor()
    • getTopBitsContributor

      @Deprecated public PollData.Contributor getTopBitsContributor()
      Deprecated.
    • getTopChannelPointsContributor

      public PollData.Contributor getTopChannelPointsContributor()
    • setPollId

      public void setPollId(String pollId)
    • setOwnedBy

      public void setOwnedBy(String ownedBy)
    • setCreatedBy

      public void setCreatedBy(String createdBy)
    • setTitle

      public void setTitle(String title)
    • setStartedAt

      public void setStartedAt(Instant startedAt)
    • setEndedAt

      public void setEndedAt(Instant endedAt)
    • setEndedBy

      public void setEndedBy(String endedBy)
    • setDurationSeconds

      public void setDurationSeconds(Long durationSeconds)
    • setSettings

      public void setSettings(PollData.PollSettings settings)
    • setStatus

      public void setStatus(PollData.Status status)
    • setChoices

      public void setChoices(List<PollData.PollChoice> choices)
    • setVotes

      public void setVotes(PollData.Votes votes)
    • setTokens

      public void setTokens(PollData.Tokens tokens)
    • setTotalVoters

      public void setTotalVoters(Integer totalVoters)
    • setRemainingDurationMilliseconds

      public void setRemainingDurationMilliseconds(Long remainingDurationMilliseconds)
    • setTopContributor

      public void setTopContributor(PollData.Contributor topContributor)
    • setTopBitsContributor

      @Deprecated public void setTopBitsContributor(PollData.Contributor topBitsContributor)
      Deprecated.
    • setTopChannelPointsContributor

      public void setTopChannelPointsContributor(PollData.Contributor topChannelPointsContributor)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object