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 Details

    • isCreated

      boolean isCreated()
      Checks whether a new subscription was stored.
      Returns:
      true for a new subscription, false when 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.