Class PollData

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

public class PollData
extends java.lang.Object
  • Constructor Details

    • PollData

      public PollData()
  • Method Details

    • getPollId

      public java.lang.String getPollId()
    • getOwnedBy

      public java.lang.String getOwnedBy()
    • getCreatedBy

      public java.lang.String getCreatedBy()
    • getTitle

      public java.lang.String getTitle()
    • getStartedAt

      public java.time.Instant getStartedAt()
    • getEndedAt

      public java.time.Instant getEndedAt()
    • getEndedBy

      public java.lang.String getEndedBy()
    • getDurationSeconds

      public java.lang.Long getDurationSeconds()
    • getSettings

      public PollData.PollSettings getSettings()
    • getStatus

      public PollData.Status getStatus()
    • getChoices

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

      public PollData.Votes getVotes()
    • getTokens

      public PollData.Tokens getTokens()
    • getTotalVoters

      public java.lang.Integer getTotalVoters()
    • getRemainingDurationMilliseconds

      public java.lang.Long getRemainingDurationMilliseconds()
    • getTopContributor

      public PollData.Contributor getTopContributor()
    • getTopBitsContributor

      public PollData.Contributor getTopBitsContributor()
    • getTopChannelPointsContributor

      public PollData.Contributor getTopChannelPointsContributor()
    • setPollId

      public void setPollId​(java.lang.String pollId)
    • setOwnedBy

      public void setOwnedBy​(java.lang.String ownedBy)
    • setCreatedBy

      public void setCreatedBy​(java.lang.String createdBy)
    • setTitle

      public void setTitle​(java.lang.String title)
    • setStartedAt

      public void setStartedAt​(java.time.Instant startedAt)
    • setEndedAt

      public void setEndedAt​(java.time.Instant endedAt)
    • setEndedBy

      public void setEndedBy​(java.lang.String endedBy)
    • setDurationSeconds

      public void setDurationSeconds​(java.lang.Long durationSeconds)
    • setSettings

      public void setSettings​(PollData.PollSettings settings)
    • setStatus

      public void setStatus​(PollData.Status status)
    • setChoices

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

      public void setVotes​(PollData.Votes votes)
    • setTokens

      public void setTokens​(PollData.Tokens tokens)
    • setTotalVoters

      public void setTotalVoters​(java.lang.Integer totalVoters)
    • setRemainingDurationMilliseconds

      public void setRemainingDurationMilliseconds​(java.lang.Long remainingDurationMilliseconds)
    • setTopContributor

      public void setTopContributor​(PollData.Contributor topContributor)
    • setTopBitsContributor

      public void setTopBitsContributor​(PollData.Contributor topBitsContributor)
    • setTopChannelPointsContributor

      public void setTopChannelPointsContributor​(PollData.Contributor topChannelPointsContributor)
    • 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