Class SendChatMessageOptions
java.lang.Object
com.azure.communication.chat.models.SendChatMessageOptions
Details of the message to send.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the content property: Chat message content.Get the metadata property: Message metadata.Get the senderDisplayName property: The display name of the chat message sender.getType()
Get the type property: The chat message type.setContent
(String content) Set the content property: Chat message content.setMetadata
(Map<String, String> metadata) Set the metadata property: Message metadata.setSenderDisplayName
(String senderDisplayName) Set the senderDisplayName property: The display name of the chat message sender.setType
(ChatMessageType type) Set the type property: The chat message type.
-
Constructor Details
-
SendChatMessageOptions
public SendChatMessageOptions()
-
-
Method Details
-
getContent
Get the content property: Chat message content.- Returns:
- the content value.
-
setContent
Set the content property: Chat message content.- Parameters:
content
- the content value to set.- Returns:
- the SendChatMessageOptions object itself.
-
getSenderDisplayName
Get the senderDisplayName property: The display name of the chat message sender. This property is used to populate sender name for push notifications.- Returns:
- the senderDisplayName value.
-
setSenderDisplayName
Set the senderDisplayName property: The display name of the chat message sender. This property is used to populate sender name for push notifications.- Parameters:
senderDisplayName
- the senderDisplayName value to set.- Returns:
- the SendChatMessageOptions object itself.
-
getType
Get the type property: The chat message type.- Returns:
- the type value.
-
setType
Set the type property: The chat message type.- Parameters:
type
- the type value to set.- Returns:
- the SendChatMessageOptions object itself.
-
getMetadata
Get the metadata property: Message metadata.- Returns:
- the metadata value.
-
setMetadata
Set the metadata property: Message metadata.- Parameters:
metadata
- the metadata value to set.- Returns:
- the SendChatMessageOptions object itself.
-