Package live.hms.video.polls.models
Class HmsPoll
-
- All Implemented Interfaces:
public final class HmsPollA poll.
-
-
Field Summary
Fields Modifier and Type Field Description private final HMSPeercreatedByprivate final HMSPeerstartedByprivate final HMSPeerstoppedByprivate final List<HMSRole>rolesThatCanVoteprivate final List<HMSRole>rolesThatCanViewResponsesprivate final HmsPollStatestateprivate final StringpollIdprivate final Stringtitleprivate final LongstartedAtprivate Longdurationprivate final Booleananonymousprivate List<HMSPollQuestion>questionsprivate final HmsPollUserTrackingModemodeprivate final HmsPollCategorycategoryprivate final IntegerquestionCountprivate LongstoppedAtprivate PollResultsDisplayresult
-
Method Summary
Modifier and Type Method Description final HMSPeergetCreatedBy()final HMSPeergetStartedBy()final HMSPeergetStoppedBy()final List<HMSRole>getRolesThatCanVote()final List<HMSRole>getRolesThatCanViewResponses()final HmsPollStategetState()final StringgetPollId()final StringgetTitle()final LonggetStartedAt()final LonggetDuration()final UnitsetDuration(Long duration)final BooleangetAnonymous()final List<HMSPollQuestion>getQuestions()final UnitsetQuestions(List<HMSPollQuestion> questions)final HmsPollUserTrackingModegetMode()final HmsPollCategorygetCategory()final IntegergetQuestionCount()final LonggetStoppedAt()final UnitsetStoppedAt(Long stoppedAt)final PollResultsDisplaygetResult()final UnitsetResult(PollResultsDisplay result)-
-
Method Detail
-
getCreatedBy
final HMSPeer getCreatedBy()
-
getStartedBy
final HMSPeer getStartedBy()
-
getStoppedBy
final HMSPeer getStoppedBy()
-
getRolesThatCanVote
final List<HMSRole> getRolesThatCanVote()
-
getRolesThatCanViewResponses
final List<HMSRole> getRolesThatCanViewResponses()
-
getState
final HmsPollState getState()
-
getStartedAt
final Long getStartedAt()
-
getDuration
final Long getDuration()
-
setDuration
final Unit setDuration(Long duration)
- Parameters:
duration- how long the poll will remain active, 0 means it's running indefinitely.
-
getAnonymous
final Boolean getAnonymous()
-
getQuestions
final List<HMSPollQuestion> getQuestions()
-
setQuestions
final Unit setQuestions(List<HMSPollQuestion> questions)
- Parameters:
questions- the questions in this poll.
-
getMode
final HmsPollUserTrackingMode getMode()
-
getCategory
final HmsPollCategory getCategory()
-
getQuestionCount
final Integer getQuestionCount()
-
getStoppedAt
final Long getStoppedAt()
-
setStoppedAt
final Unit setStoppedAt(Long stoppedAt)
-
getResult
final PollResultsDisplay getResult()
-
setResult
final Unit setResult(PollResultsDisplay result)
-
-
-
-