Interface IPushSubscribeResult
- All Known Implementing Classes:
PushSubscribeResultImpl
public interface IPushSubscribeResult
The result of a successful subscribe: whether a subscription was newly stored, and the subscription as it now stands. The Java form of the wire reply
{ "ok": true, "created": <boolean> } (PUSH-WIRE-CONTRACT section 5.2).- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionGets the subscription as stored.booleanChecks whether a new subscription was stored.
Method Details
isCreated
boolean isCreated()Checks whether a new subscription was stored.- Returns:
truefor a new subscription,falsewhen the device's existing subscription for the same application and topic was updated with a new endpoint or token, or was already identical.
getSubscription
IPushSubscriptionInfo getSubscription()Gets the subscription as stored.- Returns:
- The subscription, never
null.