Class SignalRServiceClientConnectionDisconnectedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.SignalRServiceClientConnectionDisconnectedEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SignalRServiceClientConnectionDisconnectedEventData>
public final class SignalRServiceClientConnectionDisconnectedEventData
extends Object
implements com.azure.json.JsonSerializable<SignalRServiceClientConnectionDisconnectedEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.SignalRService.ClientConnectionDisconnected event.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SignalRServiceClientConnectionDisconnectedEventData from the JsonReader.Get the connectionId property: The connection Id of connected client connection.Get the errorMessage property: The message of error that cause the client connection disconnected.Get the hubName property: The hub of connected client connection.Get the timestamp property: The time at which the event occurred.Get the userId property: The user Id of connected client connection.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
-
Method Details
-
getTimestamp
Get the timestamp property: The time at which the event occurred.- Returns:
- the timestamp value.
-
getHubName
Get the hubName property: The hub of connected client connection.- Returns:
- the hubName value.
-
getConnectionId
Get the connectionId property: The connection Id of connected client connection.- Returns:
- the connectionId value.
-
getUserId
Get the userId property: The user Id of connected client connection.- Returns:
- the userId value.
-
getErrorMessage
Get the errorMessage property: The message of error that cause the client connection disconnected.- Returns:
- the errorMessage value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SignalRServiceClientConnectionDisconnectedEventData>- Throws:
IOException
-
fromJson
public static SignalRServiceClientConnectionDisconnectedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SignalRServiceClientConnectionDisconnectedEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SignalRServiceClientConnectionDisconnectedEventData 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 SignalRServiceClientConnectionDisconnectedEventData.
-