Class AcsChatParticipantAddedToThreadWithUserEventData

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

public final class AcsChatParticipantAddedToThreadWithUserEventData extends AcsChatThreadEventBaseProperties
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatParticipantAddedToThreadWithUser event.
  • Method Details

    • getTime

      public OffsetDateTime getTime()
      Get the time property: The time at which the user was added to the thread.
      Returns:
      the time value.
    • getAddedByCommunicationIdentifier

      public CommunicationIdentifierModel getAddedByCommunicationIdentifier()
      Get the addedByCommunicationIdentifier property: The communication identifier of the user who added the user.
      Returns:
      the addedByCommunicationIdentifier value.
    • getParticipantAdded

      public AcsChatThreadParticipantProperties getParticipantAdded()
      Get the participantAdded property: The details of the user who was added.
      Returns:
      the participantAdded value.
    • getVersion

      public Long getVersion()
      Get the version property: The version of the thread.
      Overrides:
      getVersion in class AcsChatThreadEventBaseProperties
      Returns:
      the version value.
    • getThreadId

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

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