public class MpnSubscriptionInfo extends Object
MetadataProvider.
getNotificationFormat() getter, where the structure of the descriptor depends on the platform.
| Constructor and Description |
|---|
MpnSubscriptionInfo(MpnDeviceInfo device,
String notification,
String trigger)
Used by Lightstreamer to create a MpnSubscriptionInfo instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
MpnDeviceInfo |
getDevice()
Gets the MPN device of this subscription.
|
String |
getNotificationFormat()
Returns the descriptor of the push notifications format of this subscription.
|
String |
getTrigger()
Returns the optional expression that triggers the delivery of push notification.
|
int |
hashCode()
Returns a hash code value for the object.
|
String |
toString()
Returns a string representation of the MpnSubscriptionInfo.
|
public MpnSubscriptionInfo(@Nonnull MpnDeviceInfo device, @Nonnull String notification, @Nonnull String trigger)
device - The MPN device of the push notifications.notification - the descriptor of the push notifications format.trigger - The expression the updates are checked against to trigger the notification.@Nonnull public final MpnDeviceInfo getDevice()
@Nonnull public String getNotificationFormat()
@Nonnull public final String getTrigger()
@Nonnull public 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
public boolean equals(@Nullable Object obj)
Copyright © 2021. All rights reserved.