-
public class SubscriptionStatus.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static SubscriptionStatus.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final SubscriptionStatusremoteDisableStatus(Integer value)The status for a remote-disable code, or nullwhen value is not one.final BooleanisRemoteDisable(Integer value)True when value is one of the codes for a subscription the app owner disabled remotely. final SubscriptionStatusfromInt(Integer value)final SubscriptionStatusfromNotificationTypes(Integer value)Converts the backend notification-types wire value without allowing an unknown disabled state to become SUBSCRIBED. -
-
Method Detail
-
remoteDisableStatus
final SubscriptionStatus remoteDisableStatus(Integer value)
The status for a remote-disable code, or
nullwhen value is not one. The two codes stay distinct in SubscriptionModel.remoteDisabledReason and on the wire, so callers report back the exact code the server sent rather than collapsing them.
-
isRemoteDisable
final Boolean isRemoteDisable(Integer value)
True when value is one of the codes for a subscription the app owner disabled remotely. The SDK treats them the same because both mean the server turned this off.
-
fromInt
final SubscriptionStatus fromInt(Integer value)
-
fromNotificationTypes
final SubscriptionStatus fromNotificationTypes(Integer value)
Converts the backend notification-types wire value without allowing an unknown disabled state to become SUBSCRIBED. Older SDKs can receive statuses introduced by a newer backend, so unknown disabled values use the channel-neutral generic error.
-
-
-
-