Search in sources :

Example 1 with QuizPostEssay

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

the class QuizSubmissionQuestionListRecyclerAdapter method addEssayQuestion.

private void addEssayQuestion(QuizSubmissionQuestion baseItem, QuizEssayViewHolder holder, int position, int courseColor) {
    addAnsweredQuestion(baseItem);
    QuizEssayBinder.bind(holder, baseItem, courseColor, position, shouldLetAnswer, getContext(), flagStateCallback, embeddedWebViewCallback, webViewClientCallback, new QuizPostEssay() {

        @Override
        public void postEssay(long questionId, String answer) {
            addAnsweredQuestion(questionId);
            QuizManager.postQuizQuestionEssay(quizSubmission, answer, questionId, true, new StatusCallback<QuizSubmissionQuestionResponse>() {
            });
        }
    });
}
Also used : QuizPostEssay(com.instructure.candroid.interfaces.QuizPostEssay) StatusCallback(com.instructure.canvasapi2.StatusCallback)

Aggregations

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