public static class PushBase.ChannelSubscription
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
channel
The channel the push notification subscription is for.
|
java.lang.String |
clientId
The ID of the client the device, or devices are associated to.
|
java.lang.String |
deviceId
The unique ID of the device.
|
protected static HttpCore.BodyHandler<PushBase.ChannelSubscription> |
httpBodyHandler |
protected static HttpCore.ResponseHandler<PushBase.ChannelSubscription> |
httpResponseHandler |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static PushBase.ChannelSubscription |
forClientId(java.lang.String channel,
java.lang.String clientId)
A static factory method to create a PushChannelSubscription object for a channel and group of devices sharing the same clientId.
|
static PushBase.ChannelSubscription |
forDevice(java.lang.String channel,
java.lang.String deviceId)
A static factory method to create a PushChannelSubscription object for a channel and single device.
|
static PushBase.ChannelSubscription |
fromJsonObject(com.google.gson.JsonObject o) |
com.google.gson.JsonObject |
toJsonObject() |
java.lang.String |
toString() |
public final java.lang.String channel
Spec: PCS4
public final java.lang.String deviceId
Spec: PCS2, PCS5, PCS6
public final java.lang.String clientId
Spec: PCS3, PCS6
protected static HttpCore.ResponseHandler<PushBase.ChannelSubscription> httpResponseHandler
protected static HttpCore.BodyHandler<PushBase.ChannelSubscription> httpBodyHandler
public static PushBase.ChannelSubscription forDevice(java.lang.String channel, java.lang.String deviceId)
channel - The channel name.deviceId - The unique ID of the device.PushBase.ChannelSubscription object.public static PushBase.ChannelSubscription forClientId(java.lang.String channel, java.lang.String clientId)
channel - The channel name.clientId - The ID of the client.PushBase.ChannelSubscription object.public com.google.gson.JsonObject toJsonObject()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static PushBase.ChannelSubscription fromJsonObject(com.google.gson.JsonObject o)