public class MpnSubscriptionInfo
extends java.lang.Object
MetadataProvider.
getNotificationFormat() getter, where the structure of the descriptor depends on the platform.| Constructor and Description |
|---|
MpnSubscriptionInfo(MpnDeviceInfo device,
java.lang.String notification,
java.lang.String trigger)
Used by Lightstreamer to create a MpnSubscriptionInfo instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
MpnDeviceInfo |
getDevice()
Returns the MPN device of this subscription.
|
java.lang.String |
getNotificationFormat()
Returns the descriptor of the push notifications format of this subscription.
|
java.lang.String |
getTrigger()
Returns the optional expression that triggers the delivery of push notification.
|
int |
hashCode()
Returns a hash code value for the object.
|
java.lang.String |
toString()
Returns a string representation of the MpnSubscriptionInfo.
|
public MpnSubscriptionInfo(MpnDeviceInfo device, java.lang.String notification, java.lang.String trigger)
device - the MPN device of this subscription.notification - the descriptor of the push notifications format.trigger - the optional expression that triggers the delivery of push notification.public MpnDeviceInfo getDevice()
public java.lang.String getNotificationFormat()
public java.lang.String getTrigger()
public java.lang.String toString()
device=Apple/com.lightstreamer.ios.stocklist/8fac[...]fe12\n
trigger=Double.parseDouble(${last_price}) >= 50.0\n
notificationFormat={aps={badge=AUTO, alert=Price is over 50$, sound=Default}}\n
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object