public enum MpnSubscriptionStatus extends java.lang.Enum<MpnSubscriptionStatus>
MpnSubscription.checkStatus()method. It is also used to specify a filter for calls to
Active: the MPN subscription is active (if it has a trigger expression, it has not triggered yet);
Triggered: the MPN subscription is active and it has a trigger expression that has already triggered;
Activevalue is the common status of an MPN subscription. If it has no trigger expression, it means the MPN subscription is sending its mobile push notifications (i.e. cloud messages) as usual. If it has a trigger expression, it means the MPN subscription is waiting for it to evaluate as true.
Triggeredstatus indicates the MPN subscription has already sent its only notification and may safely be deactivated. See
MpnInfo.setTriggerExpression(java.lang.String)for more information.
MpnSubscription.checkStatus()for such a subscription will result in an
PushUserExceptionwith error code 46 (subscription unknown) or 45 (device unknown, if no more subscriptions exist for this device and application).
|Enum Constant and Description|
MPN subscription status indicating that the subscription is active (if it has a trigger expression, it has not triggered yet).
MPN subscription status indicating that the subscription is active and it has a trigger expression that has already triggered.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final MpnSubscriptionStatus Active
public static final MpnSubscriptionStatus Triggered
public static MpnSubscriptionStatus values()
for (MpnSubscriptionStatus c : MpnSubscriptionStatus.values()) System.out.println(c);
public static MpnSubscriptionStatus valueOf(java.lang.String name)
name- the name of the enum constant to be returned.
java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
java.lang.NullPointerException- if the argument is null