Class WebPubSubGroupConnection

java.lang.Object
com.azure.messaging.webpubsub.models.WebPubSubGroupConnection
All Implemented Interfaces:
com.azure.json.JsonSerializable<WebPubSubGroupConnection>

public final class WebPubSubGroupConnection extends Object implements com.azure.json.JsonSerializable<WebPubSubGroupConnection>
Represents a connection in a group.
  • Method Details

    • getConnectionId

      public String getConnectionId()
      Gets the connection ID.
      Returns:
      The ID of the connection.
    • getUserId

      public String getUserId()
      Gets the user ID.
      Returns:
      The ID of the user.
    • toJson

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

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