Class AcsChatEventInThreadBaseProperties
java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsChatEventInThreadBaseProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsChatEventInThreadBaseProperties>
- Direct Known Subclasses:
AcsChatMessageEventInThreadBaseProperties,AcsChatParticipantAddedToThreadEventData,AcsChatParticipantRemovedFromThreadEventData,AcsChatThreadEventInThreadBaseProperties
public class AcsChatEventInThreadBaseProperties
extends Object
implements com.azure.json.JsonSerializable<AcsChatEventInThreadBaseProperties>
Schema of common properties of all thread-level chat events.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates an instance of AcsChatEventInThreadBaseProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcsChatEventInThreadBaseProperties from the JsonReader.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
-
AcsChatEventInThreadBaseProperties
protected AcsChatEventInThreadBaseProperties()Creates an instance of AcsChatEventInThreadBaseProperties class.
-
-
Method Details
-
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<AcsChatEventInThreadBaseProperties>- Throws:
IOException
-
fromJson
public static AcsChatEventInThreadBaseProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AcsChatEventInThreadBaseProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AcsChatEventInThreadBaseProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AcsChatEventInThreadBaseProperties.
-