Search in sources :

Example 1 with QuizPostMultiChoice

use of com.instructure.candroid.interfaces.QuizPostMultiChoice in project instructure-android by instructure.

the class QuizSubmissionQuestionListRecyclerAdapter method addMultipleChoiceQuestion.

private void addMultipleChoiceQuestion(QuizSubmissionQuestion baseItem, QuizMultiChoiceViewHolder holder, int position, int courseColor) {
    addAnsweredQuestion(baseItem);
    QuizMultiChoiceBinder.bind(holder, baseItem, courseColor, position, shouldLetAnswer, getContext(), embeddedWebViewCallback, webViewClientCallback, new QuizPostMultiChoice() {

        @Override
        public void postAnswer(final long questionId, long answerId) {
            addAnsweredQuestion(questionId);
            QuizManager.postQuizQuestionMultiChoice(quizSubmission, answerId, questionId, true, new StatusCallback<QuizSubmissionQuestionResponse>() {
            });
        }
    }, flagStateCallback);
}
Also used : QuizPostMultiChoice(com.instructure.candroid.interfaces.QuizPostMultiChoice) StatusCallback(com.instructure.canvasapi2.StatusCallback)

Aggregations

QuizPostMultiChoice (com.instructure.candroid.interfaces.QuizPostMultiChoice)1 StatusCallback (com.instructure.canvasapi2.StatusCallback)1