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 Summary
ConstructorsModifierConstructorDescriptionprotectedAcsChatEventBaseProperties(CommunicationIdentifierModel recipientCommunicationIdentifier) Creates an instance of AcsChatEventBaseProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AcsChatEventBasePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcsChatEventBaseProperties from the JsonReader.Get the recipientCommunicationIdentifier property: The communication identifier of the target user.Get the threadId property: The chat thread id.Get the transactionId property: The transaction id will be used as co-relation vector.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AcsChatEventBaseProperties
Creates an instance of AcsChatEventBaseProperties class.- Parameters:
recipientCommunicationIdentifier- the recipientCommunicationIdentifier value to set.
-
-
Method Details
-
getRecipientCommunicationIdentifier
Get the recipientCommunicationIdentifier property: The communication identifier of the target user.- Returns:
- the recipientCommunicationIdentifier value.
-
getTransactionId
Get the transactionId property: The transaction id will be used as co-relation vector.- Returns:
- the transactionId value.
-
getThreadId
Get the threadId property: The chat thread id.- Returns:
- the threadId value.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-