Class AcsChatMessageEditedEventData

All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsChatEventBaseProperties>

public final class AcsChatMessageEditedEventData extends AcsChatMessageEventBaseProperties
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEdited event.
  • Method Details

    • getMessageBody

      public String getMessageBody()
      Get the messageBody property: The body of the chat message.
      Returns:
      the messageBody value.
    • getMetadata

      public Map<String,String> getMetadata()
      Get the metadata property: The chat message metadata.
      Returns:
      the metadata value.
    • getEditTime

      public OffsetDateTime getEditTime()
      Get the editTime property: The time at which the message was edited.
      Returns:
      the editTime value.
    • getVersion

      public Long getVersion()
      Get the version property: The version of the message.
      Overrides:
      getVersion in class AcsChatMessageEventBaseProperties
      Returns:
      the version value.
    • getType

      public String getType()
      Get the type property: The type of the message.
      Overrides:
      getType in class AcsChatMessageEventBaseProperties
      Returns:
      the type value.
    • getSenderDisplayName

      public String getSenderDisplayName()
      Get the senderDisplayName property: The display name of the sender.
      Overrides:
      getSenderDisplayName in class AcsChatMessageEventBaseProperties
      Returns:
      the senderDisplayName value.
    • getMessageId

      public String getMessageId()
      Get the messageId property: The chat message id.
      Overrides:
      getMessageId in class AcsChatMessageEventBaseProperties
      Returns:
      the messageId value.
    • getThreadId

      public String getThreadId()
      Get the threadId property: The chat thread id.
      Overrides:
      getThreadId in class AcsChatMessageEventBaseProperties
      Returns:
      the threadId value.
    • getTransactionId

      public String getTransactionId()
      Get the transactionId property: The transaction id will be used as co-relation vector.
      Overrides:
      getTransactionId in class AcsChatMessageEventBaseProperties
      Returns:
      the transactionId value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AcsChatEventBaseProperties>
      Overrides:
      toJson in class AcsChatMessageEventBaseProperties
      Throws:
      IOException
    • fromJson

      public static AcsChatMessageEditedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AcsChatMessageEditedEventData from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AcsChatMessageEditedEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the AcsChatMessageEditedEventData.