public class GlobalStatusEnum extends PresenceStatus
Modifier and Type | Field and Description |
---|---|
static GlobalStatusEnum |
AWAY
The Away status.
|
static java.lang.String |
AWAY_STATUS
Indicates that the user is away.
|
static GlobalStatusEnum |
DO_NOT_DISTURB
The DND status.
|
static java.lang.String |
DO_NOT_DISTURB_STATUS
Indicates that the user is connected and eager to communicate.
|
static GlobalStatusEnum |
EXTENDED_AWAY
The Away status.
|
static java.lang.String |
EXTENDED_AWAY_STATUS
Indicates that the user is extended away.
|
static GlobalStatusEnum |
FREE_FOR_CHAT
The Free For Chat status.
|
static java.lang.String |
FREE_FOR_CHAT_STATUS
Indicates that the user is connected and eager to communicate.
|
static java.util.ArrayList<GlobalStatusEnum> |
globalStatusSet
The set of states currently supported.
|
static GlobalStatusEnum |
OFFLINE
The Offline status.
|
static java.lang.String |
OFFLINE_STATUS
Indicates that the user is disconnected.
|
static GlobalStatusEnum |
ONLINE
The Online status.
|
static java.lang.String |
ONLINE_STATUS
Indicates that the user is connected and ready to communicate.
|
AVAILABLE_THRESHOLD, AWAY_THRESHOLD, EAGER_TO_COMMUNICATE_THRESHOLD, EXTENDED_AWAY_THRESHOLD, MAX_STATUS_VALUE, ONLINE_THRESHOLD, status, statusIcon, statusName
Modifier | Constructor and Description |
---|---|
protected |
GlobalStatusEnum(int status,
java.lang.String statusName,
byte[] statusIcon,
java.lang.String i18NKey)
Creates a status with the specified connectivity coeff, name and icon.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getI18NStatusName(GlobalStatusEnum status)
Returns the i18n name of the status.
|
static GlobalStatusEnum |
getStatusByName(java.lang.String name)
Finds the status with appropriate name and return it.
|
static byte[] |
loadIcon(java.lang.String imagePath)
Loads an image from a given image path.
|
compareTo, equals, getStatus, getStatusIcon, getStatusName, hashCode, isAvailable, isEagerToCommunicate, isOnline, toString
public static final java.lang.String ONLINE_STATUS
public static final java.lang.String OFFLINE_STATUS
public static final java.lang.String AWAY_STATUS
public static final java.lang.String EXTENDED_AWAY_STATUS
public static final java.lang.String FREE_FOR_CHAT_STATUS
public static final java.lang.String DO_NOT_DISTURB_STATUS
public static final GlobalStatusEnum ONLINE
public static final GlobalStatusEnum FREE_FOR_CHAT
public static final GlobalStatusEnum AWAY
public static final GlobalStatusEnum EXTENDED_AWAY
public static final GlobalStatusEnum DO_NOT_DISTURB
public static final GlobalStatusEnum OFFLINE
public static final java.util.ArrayList<GlobalStatusEnum> globalStatusSet
protected GlobalStatusEnum(int status, java.lang.String statusName, byte[] statusIcon, java.lang.String i18NKey)
status
- the connectivity coefficient for the specified statusstatusName
- StringstatusIcon
- the icon associated with this statuspublic static byte[] loadIcon(java.lang.String imagePath)
imagePath
- The identifier of the image.public static java.lang.String getI18NStatusName(GlobalStatusEnum status)
status
- the status.public static GlobalStatusEnum getStatusByName(java.lang.String name)
name
- the name we search for.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.