Class AcsChatMessageEventInThreadBaseProperties
java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsChatEventInThreadBaseProperties
com.azure.messaging.eventgrid.systemevents.AcsChatMessageEventInThreadBaseProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsChatEventInThreadBaseProperties>
- Direct Known Subclasses:
AcsChatMessageDeletedInThreadEventData,AcsChatMessageEditedInThreadEventData,AcsChatMessageReceivedInThreadEventData
Schema of common properties of all thread-level chat message events.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAcsChatMessageEventInThreadBaseProperties(CommunicationIdentifierModel senderCommunicationIdentifier, OffsetDateTime composeTime) Creates an instance of AcsChatMessageEventInThreadBaseProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcsChatMessageEventInThreadBaseProperties from the JsonReader.Get the composeTime property: The original compose time of the message.Get the messageId property: The chat message id.Get the senderCommunicationIdentifier property: The communication identifier of the sender.Get the senderDisplayName property: The display name of the sender.Get the threadId property: The chat thread id.Get the transactionId property: The transaction id will be used as co-relation vector.getType()Get the type property: The type of the message.Get the version property: The version of the message.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
-
AcsChatMessageEventInThreadBaseProperties
protected AcsChatMessageEventInThreadBaseProperties(CommunicationIdentifierModel senderCommunicationIdentifier, OffsetDateTime composeTime) Creates an instance of AcsChatMessageEventInThreadBaseProperties class.- Parameters:
senderCommunicationIdentifier- the senderCommunicationIdentifier value to set.composeTime- the composeTime value to set.
-
-
Method Details
-
getMessageId
Get the messageId property: The chat message id.- Returns:
- the messageId value.
-
getSenderCommunicationIdentifier
Get the senderCommunicationIdentifier property: The communication identifier of the sender.- Returns:
- the senderCommunicationIdentifier value.
-
getSenderDisplayName
Get the senderDisplayName property: The display name of the sender.- Returns:
- the senderDisplayName value.
-
getComposeTime
Get the composeTime property: The original compose time of the message.- Returns:
- the composeTime value.
-
getType
Get the type property: The type of the message.- Returns:
- the type value.
-
getVersion
Get the version property: The version of the message.- Returns:
- the version value.
-
getThreadId
Get the threadId property: The chat thread id.- Overrides:
getThreadIdin classAcsChatEventInThreadBaseProperties- Returns:
- the threadId value.
-
getTransactionId
Get the transactionId property: The transaction id will be used as co-relation vector.- Overrides:
getTransactionIdin classAcsChatEventInThreadBaseProperties- Returns:
- the transactionId value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AcsChatEventInThreadBaseProperties>- Overrides:
toJsonin classAcsChatEventInThreadBaseProperties- Throws:
IOException
-
fromJson
public static AcsChatMessageEventInThreadBaseProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AcsChatMessageEventInThreadBaseProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AcsChatMessageEventInThreadBaseProperties 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 AcsChatMessageEventInThreadBaseProperties.
-