public class CreateConversationOptions extends BaseOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateConversationOptions.MediaCommentType |
static class |
CreateConversationOptions.Mode |
optionsMap| Constructor and Description |
|---|
CreateConversationOptions(List<String> recipients,
String bodyText)
Recipient list and body text are required to create a conversation.
|
CreateConversationOptions(String recipient,
String bodyText)
Convenience constructor to send to a single recipient instead of a list.
|
| Modifier and Type | Method and Description |
|---|---|
CreateConversationOptions |
attachmentIds(List<Integer> attachmentIds)
IDs of files to attach to this conversation.
|
CreateConversationOptions |
forceNew(Boolean forceNew)
Forces a new message to be created, even if there is an existing private conversation.
|
CreateConversationOptions |
groupConversation(Boolean groupConversation)
If specifying multiple recipients, setting this to true will turn this into a group
message instead of multiple individual conversations.
|
CreateConversationOptions |
mediaCommentId(String mediaCommentId)
Associate an audio or video file with this conversation
|
CreateConversationOptions |
mediaCommentType(CreateConversationOptions.MediaCommentType type)
Set the type of media associated with this conversation
|
CreateConversationOptions |
mode(CreateConversationOptions.Mode mode)
Send messages synchronously or asynchronously.
|
CreateConversationOptions |
subject(String subject)
Set a conversation subject.
|
CreateConversationOptions |
userNote(Boolean userNote)
Adds a faculty journal entry for each recipient if:
- User making call has permission
- Recipient is a student
- Faculty journals are enabled on the account
|
addEnumList, addNumberList, addSingleItem, addStringList, getOptionsMappublic CreateConversationOptions(List<String> recipients, String bodyText)
recipients - List of IDs for users/courses/groups to start a conversation withbodyText - The contents of the messagepublic CreateConversationOptions(String recipient, String bodyText)
recipient - The ID of the user/course/group to start a conversation withbodyText - The contents of the messagepublic CreateConversationOptions subject(String subject)
subject - The desired subject of the conversationpublic CreateConversationOptions forceNew(Boolean forceNew)
forceNew - True if a new message should be created.public CreateConversationOptions groupConversation(Boolean groupConversation)
groupConversation - Whether or not this is a group conversation.public CreateConversationOptions attachmentIds(List<Integer> attachmentIds)
attachmentIds - IDs of files to attach to conversationpublic CreateConversationOptions mediaCommentId(String mediaCommentId)
mediaCommentId - Media comment ID of media to associatepublic CreateConversationOptions mediaCommentType(CreateConversationOptions.MediaCommentType type)
type - Type of mediapublic CreateConversationOptions userNote(Boolean userNote)
userNote - Whether to add faculty journals to conversationspublic CreateConversationOptions mode(CreateConversationOptions.Mode mode)
mode - Sync or async mode to use when sending messageCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.