Package live.hms.video.polls
Class HMSPollResponseBuilder
-
- All Implemented Interfaces:
public final class HMSPollResponseBuilderHelps gather answers to a poll.
-
-
Constructor Summary
Constructors Constructor Description HMSPollResponseBuilder(HmsPoll hmsPoll, String userId)
-
Method Summary
Modifier and Type Method Description final HmsPollgetHmsPoll()final StringgetUserId()final HMSPollResponseBuilderaddResponse(HMSPollQuestion forQuestion, List<HMSPollQuestionOption> options, Long durationMillis)Adds a response for a question with multiple selectable options. final HMSPollResponseBuilderaddResponse(HMSPollQuestion forQuestion, HMSPollQuestionOption option, Long durationMillis)Adds a response for a question with a single selectable option from many. final HMSPollResponseBuilderaddResponse(HMSPollQuestion forOpenQuestion, String text, Long durationMillis)Adds a response for an open-ended question. -
-
Method Detail
-
getHmsPoll
final HmsPoll getHmsPoll()
-
addResponse
final HMSPollResponseBuilder addResponse(HMSPollQuestion forQuestion, List<HMSPollQuestionOption> options, Long durationMillis)
Adds a response for a question with multiple selectable options.
- Parameters:
forQuestion- the question this answer is for.options- all the options that are selected as the answer.durationMillis- the milliseconds taken to answer.
-
addResponse
final HMSPollResponseBuilder addResponse(HMSPollQuestion forQuestion, HMSPollQuestionOption option, Long durationMillis)
Adds a response for a question with a single selectable option from many.
- Parameters:
forQuestion- the question this answer is for.option- the selected answer.durationMillis- the milliseconds taken to answer.
-
addResponse
final HMSPollResponseBuilder addResponse(HMSPollQuestion forOpenQuestion, String text, Long durationMillis)
Adds a response for an open-ended question.
- Parameters:
forOpenQuestion- the question this answer is for.text- the answer.
-
-
-
-