-
public final class PushSubscriptionChangedStateRepresents a change in the push subscription state. This is provided to IPushSubscriptionObserver.onPushSubscriptionChange when the subscription has changed, either because of a change driven by the application or by the backend.
-
-
Field Summary
Fields Modifier and Type Field Description private final PushSubscriptionStatepreviousprivate final PushSubscriptionStatecurrent
-
Constructor Summary
Constructors Constructor Description PushSubscriptionChangedState(PushSubscriptionState previous, PushSubscriptionState current)
-
Method Summary
Modifier and Type Method Description final PushSubscriptionStategetPrevious()The push subscription state before the change occurred. final PushSubscriptionStategetCurrent()The current push subscription state after the change. final JSONObjecttoJSONObject()-
-
Constructor Detail
-
PushSubscriptionChangedState
PushSubscriptionChangedState(PushSubscriptionState previous, PushSubscriptionState current)
-
-
Method Detail
-
getPrevious
final PushSubscriptionState getPrevious()
The push subscription state before the change occurred.
-
getCurrent
final PushSubscriptionState getCurrent()
The current push subscription state after the change.
-
toJSONObject
final JSONObject toJSONObject()
-
-
-
-