java.io.Serializable
, java.lang.Comparable<OnlineStatus>
public enum OnlineStatus extends java.lang.Enum<OnlineStatus>
Enum Constant | Description |
---|---|
DO_NOT_DISTURB |
|
IDLE |
|
INVISIBLE |
|
OFFLINE |
|
ONLINE |
|
UNKNOWN |
Modifier and Type | Method | Description |
---|---|---|
static OnlineStatus |
fromKey(java.lang.String key) |
Will get the
OnlineStatus from the provided key. |
java.lang.String |
getKey() |
The valid API key for this OnlineStatus
|
static OnlineStatus |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static OnlineStatus[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OnlineStatus ONLINE
public static final OnlineStatus IDLE
public static final OnlineStatus DO_NOT_DISTURB
public static final OnlineStatus INVISIBLE
public static final OnlineStatus OFFLINE
public static final OnlineStatus UNKNOWN
public static OnlineStatus[] values()
for (OnlineStatus c : OnlineStatus.values()) System.out.println(c);
public static OnlineStatus 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 getKey()
public static OnlineStatus fromKey(java.lang.String key)
OnlineStatus
from the provided key.
UNKONWN
key
- The key relating to the OnlineStatus
we wish to retrieve.OnlineStatus
. If there is no match, returns UNKNOWN
.