public enum NetworkPresence extends Enum<NetworkPresence>
Enum Constant and Description |
---|
AWAY
Currently online but away.
|
CHAT
In a chat or available to chat.
|
DND
Online, but don't disturb.
|
OFFLINE
Currently Offline.
|
ONLINE
Currently Online.
|
XA
Gone away for a longer period of time.
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayValue() |
String |
toString() |
static NetworkPresence |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkPresence[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkPresence ONLINE
public static final NetworkPresence OFFLINE
public static final NetworkPresence AWAY
public static final NetworkPresence CHAT
public static final NetworkPresence DND
public static final NetworkPresence XA
public static NetworkPresence[] values()
for (NetworkPresence c : NetworkPresence.values()) System.out.println(c);
public static NetworkPresence valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<NetworkPresence>
Enum.toString()
public String getDisplayValue()
Copyright © 2019 WSO2. All Rights Reserved.