public static class MpnSubscriptionInfo.MpnGcmSubscriptionInfo extends MpnSubscriptionInfo
MpnSubscriptionInfo.MpnApnsSubscriptionInfo, MpnSubscriptionInfo.MpnGcmSubscriptionInfo| Constructor and Description |
|---|
MpnGcmSubscriptionInfo(MpnDeviceInfo device,
java.lang.String collapseKey,
java.util.Map data,
java.lang.String delayWhileIdle,
java.lang.String timeToLive,
java.lang.String trigger)
Used by Lightstreamer to create an MpnGcmSubscriptionInfo instance, collecting
all the details of a push notifications specification for Google's GCM.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCollapseKey()
Returns the key to be use to collapse multiple push notifications.
|
java.util.Map |
getData()
Returns the push notifications' payload.
|
java.lang.String |
getDelayWhileIdle()
Returns "true" if the delivery of push notifications must be delayed when the device is idle.
|
java.lang.String |
getTimeToLive()
Returns the expiration of push notifications (in seconds).
|
getDevice, getTriggerpublic MpnGcmSubscriptionInfo(MpnDeviceInfo device, java.lang.String collapseKey, java.util.Map data, java.lang.String delayWhileIdle, java.lang.String timeToLive, java.lang.String trigger)
device - a MPN device specification.collapseKey - the key to be use to collapse multiple push notifications.data - the push notifications' payloaddelayWhileIdle - true if the delivery of push notifications must be delayed when the device is idle.timeToLive - the expiration of push notifications (in seconds).trigger - the expression the updates are checked against to trigger the notification.public java.lang.String getCollapseKey()
public java.util.Map getData()
public java.lang.String getDelayWhileIdle()
public java.lang.String getTimeToLive()