public static enum SubscriptionModel.SubscriptionType extends java.lang.Enum<SubscriptionModel.SubscriptionType>
| Enum Constant and Description |
|---|
HYBRID
This type is used to indicate that subscription is charged both online and offline
|
OFFLINE
This type is used to indicate that subscription is only charged offline
|
ONLINE
This type is used to indicate that subscription is only charged online
|
UNSET
This key is used to indicate that subscription is not set (for sub-subscriptions)
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static SubscriptionModel.SubscriptionType |
getFromCode(int code) |
java.lang.String |
getName() |
static SubscriptionModel.SubscriptionType |
parse(java.lang.String name) |
static SubscriptionModel.SubscriptionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionModel.SubscriptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubscriptionModel.SubscriptionType ONLINE
public static final SubscriptionModel.SubscriptionType HYBRID
public static final SubscriptionModel.SubscriptionType OFFLINE
public static final SubscriptionModel.SubscriptionType UNSET
public static SubscriptionModel.SubscriptionType[] values()
for (SubscriptionModel.SubscriptionType c : SubscriptionModel.SubscriptionType.values()) System.out.println(c);
public static SubscriptionModel.SubscriptionType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
public int getCode()
public static SubscriptionModel.SubscriptionType parse(java.lang.String name)
public static SubscriptionModel.SubscriptionType getFromCode(int code)