public enum SubscriptionState extends java.lang.Enum<SubscriptionState>
Enum Constant and Description |
---|
Active
Subscription is accepted.
|
Error
|
Expiring
Subscription is about to expire, only sent if [sip]->refresh_generic_subscribe
property is set to 0. |
IncomingReceived
An incoming subcription is received.
|
None
Initial state, should not be used.
|
OutgoingProgress
An outgoing subcription was sent.
|
Pending
Subscription is pending, waiting for user approval.
|
Terminated
Subscription is terminated normally.
|
Modifier and Type | Field and Description |
---|---|
protected int |
mValue |
Modifier and Type | Method and Description |
---|---|
static SubscriptionState |
fromInt(int value) |
int |
toInt() |
static SubscriptionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubscriptionState None
public static final SubscriptionState OutgoingProgress
public static final SubscriptionState IncomingReceived
public static final SubscriptionState Pending
public static final SubscriptionState Active
public static final SubscriptionState Terminated
public static final SubscriptionState Error
public static final SubscriptionState Expiring
public static SubscriptionState[] values()
for (SubscriptionState c : SubscriptionState.values()) System.out.println(c);
public static SubscriptionState 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 static SubscriptionState fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeException
public int toInt()