public enum PublishState extends java.lang.Enum<PublishState>
Enum Constant and Description |
---|
Cleared
Event has been un published.
|
Error
Publish encoutered an error,
Event.getReason() gives reason code. |
Expiring
Publish is about to expire, only sent if [sip]->refresh_generic_publish
property is set to 0. |
None
Initial state, do not use.
|
Ok
Publish is accepted.
|
Progress
An outgoing publish was created and submitted.
|
Modifier and Type | Field and Description |
---|---|
protected int |
mValue |
Modifier and Type | Method and Description |
---|---|
static PublishState |
fromInt(int value) |
int |
toInt() |
static PublishState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PublishState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublishState None
public static final PublishState Progress
public static final PublishState Ok
public static final PublishState Error
public static final PublishState Expiring
public static final PublishState Cleared
public static PublishState[] values()
for (PublishState c : PublishState.values()) System.out.println(c);
public static PublishState 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 PublishState fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeException
public int toInt()