Package io.constructor.client
Class QuizRequest
java.lang.Object
io.constructor.client.QuizRequestBase
io.constructor.client.QuizRequest
Constructor.io Next Quiz and Results Quiz request
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setAnswers
(List<List<String>> answers) void
setQuizSessionId
(String quizSessionId) Methods inherited from class io.constructor.client.QuizRequestBase
getQuizId, getQuizVersionId, getSection, setQuizId, setQuizVersionId, setSection
-
Constructor Details
-
QuizRequest
Creates a Next Quiz/Results Quiz request- Parameters:
quizId
- the id of the quiz to request
-
-
Method Details
-
setAnswers
- Parameters:
answers
- the list of answers in the format [ [1,2], [3,4] ] where [1,2] are the selected answers for the first question and [3,4] are the selected answers for the second question
-
getAnswers
- Returns:
- the list of answers for the quiz
-
setQuizSessionId
- Parameters:
quizSessionId
- The quiz session id will be returned with the first request, and it should be passed with subsequent requests. More information can be found: https://docs.constructor.com/reference/configuration-quizzes
-
getQuizSessionId
- Returns:
- the quizSessionId. The quiz session id will be returned with the first request and it should be passed with subsequent requests. More information can be found: https://docs.constructor.com/reference/configuration-quizzes
-