Class AcsMessageEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsMessageEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsMessageEventData>
- Direct Known Subclasses:
AcsMessageDeliveryStatusUpdatedEventData,AcsMessageReceivedEventData
public class AcsMessageEventData
extends Object
implements com.azure.json.JsonSerializable<AcsMessageEventData>
Schema of common properties of all chat thread events.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAcsMessageEventData(String from, String to, OffsetDateTime receivedTimestamp) Creates an instance of AcsMessageEventData class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AcsMessageEventDatafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcsMessageEventData from the JsonReader.com.azure.core.models.ResponseErrorgetError()Get the error property: The channel error code and message.getFrom()Get the from property: The message sender.Get the receivedTimestamp property: The time message was received.getTo()Get the to property: The message recipient.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
-
AcsMessageEventData
Creates an instance of AcsMessageEventData class.- Parameters:
from- the from value to set.to- the to value to set.receivedTimestamp- the receivedTimestamp value to set.
-
-
Method Details
-
getFrom
Get the from property: The message sender.- Returns:
- the from value.
-
getTo
Get the to property: The message recipient.- Returns:
- the to value.
-
getReceivedTimestamp
Get the receivedTimestamp property: The time message was received.- Returns:
- the receivedTimestamp value.
-
getError
public com.azure.core.models.ResponseError getError()Get the error property: The channel error code and message.- Returns:
- the error value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AcsMessageEventData>- Throws:
IOException
-
fromJson
Reads an instance of AcsMessageEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AcsMessageEventData 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 AcsMessageEventData.
-