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 Details

    • getTimestamp

      public OffsetDateTime getTimestamp()
      Get the timestamp property: The time at which the event occurred.
      Returns:
      the timestamp value.
    • getHubName

      public String getHubName()
      Get the hubName property: The hub of connected client connection.
      Returns:
      the hubName value.
    • getConnectionId

      public String getConnectionId()
      Get the connectionId property: The connection Id of connected client connection.
      Returns:
      the connectionId value.
    • getUserId

      public String getUserId()
      Get the userId property: The user Id of connected client connection.
      Returns:
      the userId value.
    • getErrorMessage

      public String getErrorMessage()
      Get the errorMessage property: The message of error that cause the client connection disconnected.
      Returns:
      the errorMessage value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.