Class ChatMessageContent
java.lang.Object
com.azure.communication.chat.models.ChatMessageContent
Content of a chat message.
-
Constructor Summary
ConstructorDescriptionChatMessageContent
(String message, String topic, Iterable<ChatParticipant> participants, CommunicationIdentifier initiator) Constructs a new ChatMessageContent -
Method Summary
Modifier and TypeMethodDescriptionGet 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.
-
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.
-
getInitiator
Get the initiator property: Chat message content for messages of types participantAdded or participantRemoved.- Returns:
- the initiator value.
-