public class QuizImpl extends BaseImpl<Quiz,QuizReader,QuizWriter> implements QuizReader, QuizWriter
apiVersion, canvasBaseUrl, canvasMessenger, masqueradeAs, masqueradeType, oauthToken, paginationPageSize, responseCallback, responseParser, serializeNulls| Constructor and Description |
|---|
QuizImpl(String canvasBaseUrl,
Integer apiVersion,
OauthToken oauthToken,
RestClient restClient,
int connectTimeout,
int readTimeout,
Integer paginationPageSize,
Boolean serializeNulls) |
| Modifier and Type | Method and Description |
|---|---|
List<Quiz> |
getQuizzesInCourse(String courseId)
Retrieve a list of quizzes from Canvas by its course Canvas ID number
|
Optional<Quiz> |
getSingleQuiz(String courseId,
String quizId)
Retrieve a specific quiz from Canvas by its course and quiz Canvas ID numbers
|
protected Type |
listType() |
protected Class<Quiz> |
objectType() |
Optional<Quiz> |
updateQuiz(Quiz quiz,
String courseId) |
buildCanvasUrl, encode, getFromCanvas, getListFromCanvas, parseListOfResponses, readAsCanvasUser, readAsSisUser, withCallback, writeAsCanvasUser, writeAsSisUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAsCanvasUser, readAsSisUser, withCallbackwriteAsCanvasUser, writeAsSisUserpublic QuizImpl(String canvasBaseUrl, Integer apiVersion, OauthToken oauthToken, RestClient restClient, int connectTimeout, int readTimeout, Integer paginationPageSize, Boolean serializeNulls)
public Optional<Quiz> getSingleQuiz(String courseId, String quizId) throws IOException
QuizReadergetSingleQuiz in interface QuizReadercourseId - The Canvas ID of the coursequizId - The Canvas ID of the quizIOException - When there is an error communicating with Canvaspublic List<Quiz> getQuizzesInCourse(String courseId) throws IOException
QuizReadergetQuizzesInCourse in interface QuizReadercourseId - The Canvas ID of the courseIOException - When there is an error communicating with Canvaspublic Optional<Quiz> updateQuiz(Quiz quiz, String courseId) throws IOException
updateQuiz in interface QuizWriterquiz - The quiz to updatecourseId - The course ID in which the quiz livesIOException - When there is an error communicating with Canvasprotected Type listType()
listType in class BaseImpl<Quiz,QuizReader,QuizWriter>protected Class<Quiz> objectType()
objectType in class BaseImpl<Quiz,QuizReader,QuizWriter>Copyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.