Class ChatMessageContent

java.lang.Object
com.azure.communication.chat.models.ChatMessageContent

public final class ChatMessageContent extends Object
Content of a chat message.
  • Constructor Details

    • ChatMessageContent

      public ChatMessageContent(String message, String topic, Iterable<ChatParticipant> participants, CommunicationIdentifier initiator)
      Constructs a new ChatMessageContent
      Parameters:
      message - The message
      topic - The topic
      participants - The participants
      initiator - The initiator
  • Method Details

    • getMessage

      public String getMessage()
      Get the message property: Chat message content for messages of types text or html.
      Returns:
      the message value.
    • getTopic

      public String getTopic()
      Get the topic property: Chat message content for messages of type topicUpdated.
      Returns:
      the topic value.
    • getParticipants

      public Iterable<ChatParticipant> getParticipants()
      Get the participants property: Chat message content for messages of types participantAdded or participantRemoved.
      Returns:
      the participants value.
    • getInitiator

      public CommunicationIdentifier getInitiator()
      Get the initiator property: Chat message content for messages of types participantAdded or participantRemoved.
      Returns:
      the initiator value.