Class AcsChatEventBaseProperties

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

public class AcsChatEventBaseProperties extends Object implements com.azure.json.JsonSerializable<AcsChatEventBaseProperties>
Schema of common properties of all chat events.
  • Constructor Details

    • AcsChatEventBaseProperties

      protected AcsChatEventBaseProperties(CommunicationIdentifierModel recipientCommunicationIdentifier)
      Creates an instance of AcsChatEventBaseProperties class.
      Parameters:
      recipientCommunicationIdentifier - the recipientCommunicationIdentifier value to set.
  • Method Details

    • getRecipientCommunicationIdentifier

      public CommunicationIdentifierModel getRecipientCommunicationIdentifier()
      Get the recipientCommunicationIdentifier property: The communication identifier of the target user.
      Returns:
      the recipientCommunicationIdentifier value.
    • getTransactionId

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

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

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