public class ConversationImpl extends BaseImpl<Conversation,ConversationReader,ConversationWriter> implements ConversationReader, ConversationWriter
apiVersion, canvasBaseUrl, canvasMessenger, masqueradeAs, masqueradeType, oauthToken, paginationPageSize, responseCallback, responseParser, serializeNulls| Constructor and Description |
|---|
ConversationImpl(String canvasBaseUrl,
Integer apiVersion,
OauthToken oauthToken,
RestClient restClient,
int connectTimeout,
int readTimeout,
Integer paginationPageSize,
Boolean serializeNulls) |
| 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.
|
Optional<Conversation> |
getSingleConversation(GetSingleConversationOptions options)
Get a single conversation from Canvas
|
protected Type |
listType() |
void |
markAllConversationsRead()
Marks all conversations for the current user as read.
|
protected Class<Conversation> |
objectType() |
buildCanvasUrl, encode, getFromCanvas, getListFromCanvas, parseListOfResponses, readAsCanvasUser, readAsSisUser, withCallback, writeAsCanvasUser, writeAsSisUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAsCanvasUser, readAsSisUser, withCallbackwriteAsCanvasUser, writeAsSisUserpublic ConversationImpl(String canvasBaseUrl, Integer apiVersion, OauthToken oauthToken, RestClient restClient, int connectTimeout, int readTimeout, Integer paginationPageSize, Boolean serializeNulls)
protected Type listType()
listType in class BaseImpl<Conversation,ConversationReader,ConversationWriter>protected Class<Conversation> objectType()
objectType in class BaseImpl<Conversation,ConversationReader,ConversationWriter>public Optional<Conversation> getSingleConversation(GetSingleConversationOptions options) throws IOException
ConversationReadergetSingleConversation in interface ConversationReaderoptions - API options for the conversation callIOException - if there is an error communicating with Canvaspublic List<Conversation> createConversation(CreateConversationOptions options) throws IOException
ConversationWritercreateConversation in interface ConversationWriteroptions - Creation options for the conversationIOException - if an error happens while communicating with Canvaspublic void markAllConversationsRead()
throws IOException
ConversationWritermarkAllConversationsRead in interface ConversationWriterIOException - if there is an error communicating with Canvaspublic Optional<Conversation> editConversation(Conversation conversation) throws IOException
ConversationWritereditConversation in interface ConversationWriterconversation - Conversation with modifications to send to CanvasIOException - if there is an error communicating with Canvaspublic Optional<Conversation> addMessage(AddMessageToConversationOptions options) throws IOException
ConversationWriteraddMessage in interface ConversationWriteroptions - 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.