Package io.constructor.client
Class QuizRequest
java.lang.Object
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
void
setQuizSessionId
(String quizSessionId) void
setQuizVersionId
(String quizVersionId) void
setSection
(String section)
-
Constructor Details
-
QuizRequest
Creates a Next Quiz/Results Quiz request- Parameters:
quizId
- the id of the quiz to request
-
-
Method Details
-
setQuizId
- Parameters:
quizId
- the id of the quiz to request
-
getQuizId
- Returns:
- the id of the quiz to request
-
setSection
- Parameters:
section
- the section of the product catalog
-
getSection
- Returns:
- the section of the product catalog
-
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
-
setQuizVersionId
- Parameters:
quizVersionId
- The quiz version id will be returned with the first request and it should be passed with subsequent requests. More information can be found: https://docs.constructor.io/rest_api/quiz/using_quizzes/#quiz-versioning
-
getQuizVersionId
- Returns:
- the quizVersionId. The quiz version id will be returned with the first request and it should be passed with subsequent requests. More information can be found: https://docs.constructor.io/rest_api/quiz/using_quizzes/#quiz-versioning
-
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.io/rest_api/quiz/using_quizzes/#quiz-sessions
-
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.io/rest_api/quiz/using_quizzes/#quiz-sessions
-