Class SignalRServiceClientConnectionConnectedEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.SignalRServiceClientConnectionConnectedEventData
All Implemented Interfaces:
com.azure.json.JsonSerializable<SignalRServiceClientConnectionConnectedEventData>

public final class SignalRServiceClientConnectionConnectedEventData extends Object implements com.azure.json.JsonSerializable<SignalRServiceClientConnectionConnectedEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.SignalRService.ClientConnectionConnected 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SignalRServiceClientConnectionConnectedEventData>
      Throws:
      IOException
    • fromJson

      public static SignalRServiceClientConnectionConnectedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SignalRServiceClientConnectionConnectedEventData from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SignalRServiceClientConnectionConnectedEventData 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 SignalRServiceClientConnectionConnectedEventData.