All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.ksu.canvas.interfaces.QuizReader Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package edu.ksu.canvas.interfaces;

import java.io.IOException;
import java.util.List;
import java.util.Optional;

import edu.ksu.canvas.model.assignment.Quiz;

public interface QuizReader extends CanvasReader{
    /**
     * Retrieve a specific quiz from Canvas by its course and quiz Canvas ID numbers
     * @param courseId   The Canvas ID of the course
     * @param quizId     The Canvas ID of the quiz
     * @return The assignment returned by Canvas or an empty Optional
     * @throws IOException When there is an error communicating with Canvas
     */
    Optional getSingleQuiz(String courseId, String quizId) throws IOException;

    /**
     * Retrieve a list of quizzes from Canvas by its course Canvas ID number
     * @param courseId   The Canvas ID of the course
     * @return List of quizzes in the course with the course ID
     * @throws IOException When there is an error communicating with Canvas
     */
    List getQuizzesInCourse(String courseId) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy