public interface CalendarWriter extends CanvasWriter<CalendarEvent,CalendarWriter>
| Modifier and Type | Method and Description |
|---|---|
Optional<CalendarEvent> |
createCalendarEvent(CalendarEvent calendarEvent)
Create a new calendar event in Canvas.
|
Optional<CalendarEvent> |
deleteCalendarEvent(DeleteCalendarEventOptions options)
Delete a calendar event from Canvas.
|
Optional<CalendarEvent> |
editCalendarEvent(CalendarEvent calendarEvent)
Modify a calendar event in Canvas.
|
writeAsCanvasUser, writeAsSisUserOptional<CalendarEvent> deleteCalendarEvent(DeleteCalendarEventOptions options) throws IOException
options - Options class containing required and optional parameters for the delete actionIOException - When there is an error communicating with CanvasOptional<CalendarEvent> createCalendarEvent(CalendarEvent calendarEvent) throws IOException
calendarEvent - Calendar event object to persist to Canvas. Context code is required.IOException - When there is an error communicating with CanvasOptional<CalendarEvent> editCalendarEvent(CalendarEvent calendarEvent) throws IOException
calendarEvent - An existing calendar event to modifyIOException - When there is an error communicating with CanvasCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.