public enum PresenceStatus extends java.lang.Enum<PresenceStatus>
| Enum Constant and Description |
|---|
Away
Carrier node is being away.
|
Busy
Carrier node is being busy.
|
None
Carrier node is online and available.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(PresenceStatus status)
Get debug description of carrier node presence.
|
java.lang.String |
toString()
Get debug description of current node presence.
|
int |
value()
Get carrier node presence status value.
|
static PresenceStatus |
valueOf(int status)
Get PresenceStatus object from status value.
|
static PresenceStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PresenceStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PresenceStatus None
public static final PresenceStatus Away
public static final PresenceStatus Busy
public static PresenceStatus[] values()
for (PresenceStatus c : PresenceStatus.values()) System.out.println(c);
public static PresenceStatus 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 PresenceStatus valueOf(int status)
status - The presence status value.java.lang.IllegalArgumentException - illegal exception.public int value()
public static java.lang.String format(PresenceStatus status)
status - The carrier node presense status.public java.lang.String toString()
toString in class java.lang.Enum<PresenceStatus>