Partilhar via


WebPubSubGroupConnection Class

  • java.lang.Object
    • com.azure.messaging.webpubsub.models.WebPubSubGroupConnection

Implements

public final class WebPubSubGroupConnection
implements JsonSerializable<WebPubSubGroupConnection>

Represents a connection in a group.

Method Summary

Modifier and Type Method and Description
static WebPubSubGroupConnection fromJson(JsonReader jsonReader)

Reads an instance of WebPubSubGroupMember from the JsonReader.

String getConnectionId()

Gets the connection ID.

String getUserId()

Gets the user ID.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static WebPubSubGroupConnection fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to