Class HMSPollQuestion
-
- All Implemented Interfaces:
public final class HMSPollQuestion
-
-
Field Summary
Fields Modifier and Type Field Description private final Integertotalprivate final Booleanvotedprivate final IntegerquestionIDprivate final HMSPollQuestionTypetypeprivate final Stringtextprivate final BooleancanSkipprivate final BooleancanChangeResponseprivate final Longdurationprivate final Integerweightprivate final LonganswerShortMinLengthprivate final LonganswerLongMinLengthprivate final List<HMSPollQuestionOption>optionsprivate final HMSPollQuestionAnswercorrectAnswerprivate final Booleannegativeprivate final List<HmsPollAnswer>myResponses
-
Constructor Summary
Constructors Constructor Description HMSPollQuestion(Integer questionID, HMSPollQuestionType type, String text, Boolean canSkip, Boolean canChangeResponse, Long duration, Integer weight, Long answerShortMinLength, Long answerLongMinLength, List<HMSPollQuestionOption> options, HMSPollQuestionAnswer correctAnswer, Boolean negative, List<HmsPollAnswer> myResponses)
-
Method Summary
Modifier and Type Method Description final IntegergetTotal()final BooleangetVoted()final IntegergetQuestionID()final HMSPollQuestionTypegetType()final StringgetText()final BooleangetCanSkip()final BooleangetCanChangeResponse()final LonggetDuration()final IntegergetWeight()final LonggetAnswerShortMinLength()final LonggetAnswerLongMinLength()final List<HMSPollQuestionOption>getOptions()final HMSPollQuestionAnswergetCorrectAnswer()final BooleangetNegative()final List<HmsPollAnswer>getMyResponses()The responses provided by the current user for the question. -
-
Constructor Detail
-
HMSPollQuestion
HMSPollQuestion(Integer questionID, HMSPollQuestionType type, String text, Boolean canSkip, Boolean canChangeResponse, Long duration, Integer weight, Long answerShortMinLength, Long answerLongMinLength, List<HMSPollQuestionOption> options, HMSPollQuestionAnswer correctAnswer, Boolean negative, List<HmsPollAnswer> myResponses)
-
-
Method Detail
-
getQuestionID
final Integer getQuestionID()
-
getType
final HMSPollQuestionType getType()
-
getCanSkip
final Boolean getCanSkip()
-
getCanChangeResponse
final Boolean getCanChangeResponse()
-
getDuration
final Long getDuration()
-
getAnswerShortMinLength
final Long getAnswerShortMinLength()
-
getAnswerLongMinLength
final Long getAnswerLongMinLength()
-
getOptions
final List<HMSPollQuestionOption> getOptions()
-
getCorrectAnswer
final HMSPollQuestionAnswer getCorrectAnswer()
-
getNegative
final Boolean getNegative()
-
getMyResponses
final List<HmsPollAnswer> getMyResponses()
The responses provided by the current user for the question.
-
-
-
-