-
public class PushBase.ChannelSubscriptionContains the subscriptions of a device, or a group of devices sharing the same clientId,has to a channel in order to receive push notifications.
-
-
Method Summary
Modifier and Type Method Description static PushBase.ChannelSubscriptionforDevice(String channel, String deviceId)A static factory method to create a PushChannelSubscription object for a channel and single device. static PushBase.ChannelSubscriptionforClientId(String channel, String clientId)A static factory method to create a PushChannelSubscription object for a channel and group of devices sharing the same clientId. JsonObjecttoJsonObject()booleanequals(Object o)StringtoString()static PushBase.ChannelSubscriptionfromJsonObject(JsonObject o)-
-
Method Detail
-
forDevice
static PushBase.ChannelSubscription forDevice(String channel, String deviceId)
A static factory method to create a PushChannelSubscription object for a channel and single device.
- Parameters:
channel- The channel name.deviceId- The unique ID of the device.
-
forClientId
static PushBase.ChannelSubscription forClientId(String channel, String clientId)
A static factory method to create a PushChannelSubscription object for a channel and group of devices sharing the same clientId.
- Parameters:
channel- The channel name.clientId- The ID of the client.
-
toJsonObject
JsonObject toJsonObject()
-
fromJsonObject
static PushBase.ChannelSubscription fromJsonObject(JsonObject o)
-
-
-
-