Class AcsChatMessageEventBaseProperties

java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties
com.azure.messaging.eventgrid.systemevents.AcsChatMessageEventBaseProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsChatEventBaseProperties>
Direct Known Subclasses:
AcsChatMessageDeletedEventData, AcsChatMessageEditedEventData, AcsChatMessageReceivedEventData

public class AcsChatMessageEventBaseProperties extends AcsChatEventBaseProperties
Schema of common properties of all chat message events.
  • Constructor Details

    • AcsChatMessageEventBaseProperties

      protected AcsChatMessageEventBaseProperties(CommunicationIdentifierModel recipientCommunicationIdentifier, CommunicationIdentifierModel senderCommunicationIdentifier, OffsetDateTime composeTime)
      Creates an instance of AcsChatMessageEventBaseProperties class.
      Parameters:
      recipientCommunicationIdentifier - the recipientCommunicationIdentifier value to set.
      senderCommunicationIdentifier - the senderCommunicationIdentifier value to set.
      composeTime - the composeTime value to set.
  • Method Details

    • getMessageId

      public String getMessageId()
      Get the messageId property: The chat message id.
      Returns:
      the messageId value.
    • getSenderCommunicationIdentifier

      public CommunicationIdentifierModel getSenderCommunicationIdentifier()
      Get the senderCommunicationIdentifier property: The communication identifier of the sender.
      Returns:
      the senderCommunicationIdentifier value.
    • getSenderDisplayName

      public String getSenderDisplayName()
      Get the senderDisplayName property: The display name of the sender.
      Returns:
      the senderDisplayName value.
    • getComposeTime

      public OffsetDateTime getComposeTime()
      Get the composeTime property: The original compose time of the message.
      Returns:
      the composeTime value.
    • getType

      public String getType()
      Get the type property: The type of the message.
      Returns:
      the type value.
    • getVersion

      public Long getVersion()
      Get the version property: The version of the message.
      Returns:
      the version value.
    • getThreadId

      public String getThreadId()
      Get the threadId property: The chat thread id.
      Overrides:
      getThreadId in class AcsChatEventBaseProperties
      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 AcsChatEventBaseProperties
      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 AcsChatEventBaseProperties
      Throws:
      IOException
    • fromJson

      public static AcsChatMessageEventBaseProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AcsChatMessageEventBaseProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AcsChatMessageEventBaseProperties 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 AcsChatMessageEventBaseProperties.