Enum SubscriptionInfo.State

    • Enum Constant Detail

      • ACTIVE

        @SerializedName("active")
        public static final SubscriptionInfo.State ACTIVE
        Subscription is active and allows all functionality.
        Since:
        100.9.0
      • CANCELED

        @SerializedName("cancelled")
        public static final SubscriptionInfo.State CANCELED
        Subscription was canceled.
        Since:
        100.9.0
      • DELETED

        @SerializedName("deleted")
        public static final SubscriptionInfo.State DELETED
        Subscription was deleted.
        Since:
        100.9.0
      • EXPIRED

        @SerializedName("expired")
        public static final SubscriptionInfo.State EXPIRED
        Subscription has expired.
        Since:
        100.9.0
      • RESTRICTED

        @SerializedName("restricted")
        public static final SubscriptionInfo.State RESTRICTED
        Subscription has run out of credits.
        Since:
        100.9.0
      • SUSPENDED

        @SerializedName("suspended")
        public static final SubscriptionInfo.State SUSPENDED
        Subscription was suspended.
        Since:
        100.9.0
      • UNKNOWN

        @SerializedName("unknown")
        public static final SubscriptionInfo.State UNKNOWN
        Subscription state is unknown.
        Since:
        100.9.0
    • Method Detail

      • values

        public static SubscriptionInfo.State[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SubscriptionInfo.State c : SubscriptionInfo.State.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SubscriptionInfo.State valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • toString

        public String toString()
        Returns a string representing the subscription state.
        Overrides:
        toString in class Enum<SubscriptionInfo.State>
        Returns:
        a string representing the subscription state
        Since:
        100.9.0