Package live.hms.video.polls
Class HMSPollQuestionBuilder.Builder
-
- All Implemented Interfaces:
public final class HMSPollQuestionBuilder.Builder
-
-
Constructor Summary
Constructors Constructor Description HMSPollQuestionBuilder.Builder(HMSPollQuestionType type)
-
Method Summary
Modifier and Type Method Description final List<Pair<String, Boolean>>getOptions()final UnitsetOptions(List<Pair<String, Boolean>> options)final HMSPollQuestionTypegetType()final HMSPollQuestionBuilder.BuilderwithCanBeSkipped(Boolean canBeSkipped)final HMSPollQuestionBuilder.BuilderwithTitle(String title)final HMSPollQuestionBuilder.BuilderwithDuration(Long duration)final HMSPollQuestionBuilder.BuilderwithCanChangeResponse(Boolean canChangeResponse)final HMSPollQuestionBuilder.BuilderaddOption(String option)final HMSPollQuestionBuilder.BuilderaddQuizOption(String option, Boolean isCorrect)final HMSPollQuestionBuilder.BuilderwithMinLength(Long minLength)final HMSPollQuestionBuilder.BuilderwithWeight(Integer weight)final HMSPollQuestionBuilder.BuilderwithMaxLength(Long maxLength)final HMSPollQuestionBuilder.BuilderwithAnswerHidden(Boolean answerHidden)final HMSPollQuestionBuilderbuild()-
-
Constructor Detail
-
HMSPollQuestionBuilder.Builder
HMSPollQuestionBuilder.Builder(HMSPollQuestionType type)
-
-
Method Detail
-
getOptions
final List<Pair<String, Boolean>> getOptions()
-
getType
final HMSPollQuestionType getType()
-
withCanBeSkipped
final HMSPollQuestionBuilder.Builder withCanBeSkipped(Boolean canBeSkipped)
-
withTitle
final HMSPollQuestionBuilder.Builder withTitle(String title)
-
withDuration
final HMSPollQuestionBuilder.Builder withDuration(Long duration)
-
withCanChangeResponse
final HMSPollQuestionBuilder.Builder withCanChangeResponse(Boolean canChangeResponse)
-
addOption
final HMSPollQuestionBuilder.Builder addOption(String option)
-
addQuizOption
final HMSPollQuestionBuilder.Builder addQuizOption(String option, Boolean isCorrect)
-
withMinLength
final HMSPollQuestionBuilder.Builder withMinLength(Long minLength)
-
withWeight
final HMSPollQuestionBuilder.Builder withWeight(Integer weight)
-
withMaxLength
final HMSPollQuestionBuilder.Builder withMaxLength(Long maxLength)
-
withAnswerHidden
final HMSPollQuestionBuilder.Builder withAnswerHidden(Boolean answerHidden)
-
build
final HMSPollQuestionBuilder build()
-
-
-
-