Class ChatMessageContent
java.lang.Object
com.azure.communication.chat.models.ChatMessageContent
Content of a chat message.
-
Constructor Summary
ConstructorsConstructorDescriptionChatMessageContent
(String message, String topic, Iterable<ChatParticipant> participants, CommunicationIdentifier initiator) Constructs a new ChatMessageContent -
Method Summary
Modifier and TypeMethodDescriptionGet the attachment property: Chat message content for messages of type attachmentsGet the initiator property: Chat message content for messages of types participantAdded or participantRemoved.Get the message property: Chat message content for messages of types text or html.Get the participants property: Chat message content for messages of types participantAdded or participantRemoved.getTopic()
Get the topic property: Chat message content for messages of type topicUpdated.setAttachments
(Iterable<ChatAttachment> attachments) Set the attachments property: List of attachments for this message.
-
Constructor Details
-
ChatMessageContent
public ChatMessageContent(String message, String topic, Iterable<ChatParticipant> participants, CommunicationIdentifier initiator) Constructs a new ChatMessageContent- Parameters:
message
- The messagetopic
- The topicparticipants
- The participantsinitiator
- The initiator
-
-
Method Details
-
getMessage
Get the message property: Chat message content for messages of types text or html.- Returns:
- the message value.
-
getTopic
Get the topic property: Chat message content for messages of type topicUpdated.- Returns:
- the topic value.
-
getParticipants
Get the participants property: Chat message content for messages of types participantAdded or participantRemoved.- Returns:
- the participants value.
-
getAttachments
Get the attachment property: Chat message content for messages of type attachments- Returns:
- the attachments value.
-
setAttachments
Set the attachments property: List of attachments for this message.- Parameters:
attachments
- the attachments value to set.- Returns:
- the ChatMessageContent object itself.
-
getInitiator
Get the initiator property: Chat message content for messages of types participantAdded or participantRemoved.- Returns:
- the initiator value.
-