public interface ConversationWriter extends CanvasWriter<Conversation,ConversationWriter>
| Modifier and Type | Method and Description |
|---|---|
Optional<Conversation> |
addMessage(AddMessageToConversationOptions options)
Add a message to an existing conversation.
|
List<Conversation> |
createConversation(CreateConversationOptions options)
Create a new conversation with one or more recipients.
|
Optional<Conversation> |
editConversation(Conversation conversation)
Modify a conversation in Canvas.
|
void |
markAllConversationsRead()
Marks all conversations for the current user as read.
|
writeAsCanvasUser, writeAsSisUserList<Conversation> createConversation(CreateConversationOptions options) throws IOException
options - Creation options for the conversationIOException - if an error happens while communicating with Canvasvoid markAllConversationsRead()
throws IOException
IOException - if there is an error communicating with CanvasOptional<Conversation> editConversation(Conversation conversation) throws IOException
conversation - Conversation with modifications to send to CanvasIOException - if there is an error communicating with CanvasOptional<Conversation> addMessage(AddMessageToConversationOptions options) throws IOException
options - Parameters for the message adding methodIOException - if there is an error communicating with CanvasCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.