public interface AssignmentWriter extends CanvasWriter<Assignment,AssignmentWriter>
| Modifier and Type | Method and Description |
|---|---|
Optional<Assignment> |
createAssignment(String courseId,
Assignment assignment)
Create an assignment in Canvas.
|
Optional<Assignment> |
deleteAssignment(String courseId,
Integer assignmentId)
Deletes a specified assignment in canvas
|
Optional<Assignment> |
editAssignment(String courseId,
Assignment assignment)
Writes an Assignment object to the Canvas API
|
writeAsCanvasUser, writeAsSisUserOptional<Assignment> createAssignment(String courseId, Assignment assignment) throws IOException
courseId - ID of the course to create the assignment inassignment - Assignment object to create. Must have at least a name setIOException - When there is an error communicating with CanvasOptional<Assignment> deleteAssignment(String courseId, Integer assignmentId) throws IOException
courseId - Course ID of course to delete assignment fromassignmentId - Assignment ID of assignment to deleteIOException - When there is an error communicating with CanvasOptional<Assignment> editAssignment(String courseId, Assignment assignment) throws IOException
courseId - Course ID that this assignment is associated withassignment - The assignment settings to write to the APIIOException - When there is an error communicating with CanvasCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.