Lightstreamer macOS Client
1.2.5
Native macOS Client library for Lightstreamer
|
Enumerations | |
enum | LSMPNSubscriptionStatus { LSMPNSubscriptionStatusNone = 0, LSMPNSubscriptionStatusActive = 1, LSMPNSubscriptionStatusTriggered = 2 } |
The LSMPNSubscriptionStatus enum contains the possible statuses of an MPN subscription. More... | |
The LSMPNSubscriptionStatus enum contains the possible statuses of an MPN subscription.
It is returned as the LSMPNStatusInfo::subscriptionStatus field by the checkStatus (LSMPNSubscription) method. It is also used to specify a filter for calls to deactivateMPNsWithStatus: (LSClient) and inquireMPNsWithStatus: (LSClient).
Its significant values are:
The LSMPNSubscriptionStatusActive value is the common status of an MPN subscription. If it has no trigger expression, it means the MPN subscription is sending its mobile push (i.e. remote) notifications as usual. If it has a trigger expression, it means the MPN subscription is waiting for it to evaluate as true.
The LSMPNSubscriptionStatusTriggered status indicates the MPN subscription has already sent its only notification and may safely be deactivated. See LSMPNInfo::triggerExpression for more information.
The special value LSMPNSubscriptionStatusNone is used as an argument to deactivateMPNsWithStatus: (LSClient) and inquireMPNsWithStatus: (LSClient) to indicate that no filter on the status must be applied, thus meaning "all MPN subscriptions". In this case the call is equivalent to, respectively, deactivateAllMPNs (LSClient) and inquireAllMPNs (LSClient).
Recall that when a subscription has been deactivated it has also been deleted. Hence, there isn't a corresponding state: a call to checkStatus (LSMPNSubscription) for such a subscription will result in an LSPushServerException with error code 46 (subscription unknown) or 45 (device unknown, if no more subscriptions exist for this device and application).
Enumerator | |
---|---|
LSMPNSubscriptionStatusNone | |
LSMPNSubscriptionStatusActive | |
LSMPNSubscriptionStatusTriggered |