Class AcsChatThreadEventBaseProperties

java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties
com.azure.messaging.eventgrid.systemevents.AcsChatThreadEventBaseProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsChatEventBaseProperties>
Direct Known Subclasses:
AcsChatParticipantAddedToThreadWithUserEventData, AcsChatParticipantRemovedFromThreadWithUserEventData, AcsChatThreadCreatedWithUserEventData, AcsChatThreadPropertiesUpdatedPerUserEventData, AcsChatThreadWithUserDeletedEventData

public class AcsChatThreadEventBaseProperties extends AcsChatEventBaseProperties
Schema of common properties of all chat thread events.
  • Constructor Details

    • AcsChatThreadEventBaseProperties

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

    • getCreateTime

      public OffsetDateTime getCreateTime()
      Get the createTime property: The original creation time of the thread.
      Returns:
      the createTime value.
    • getVersion

      public Long getVersion()
      Get the version property: The version of the thread.
      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 AcsChatThreadEventBaseProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AcsChatThreadEventBaseProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AcsChatThreadEventBaseProperties 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 AcsChatThreadEventBaseProperties.