Package com.zopim.android.sdk.model
Enum Department.Status
- java.lang.Object
-
- java.lang.Enum<Department.Status>
-
- com.zopim.android.sdk.model.Department.Status
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Department.Status>
- Enclosing class:
- Department
public static enum Department.Status extends java.lang.Enum<Department.Status>
Status of the department
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static Department.Status
getStatus(java.lang.String value)
Gets the status enum of the value passed as parameterjava.lang.String
getValue()
Gets the value of this status enumstatic Department.Status
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Department.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONLINE
public static final Department.Status ONLINE
Department is online
-
OFFLINE
public static final Department.Status OFFLINE
Department is offline
-
AWAY
public static final Department.Status AWAY
Department is away
-
UNKNOWN
public static final Department.Status UNKNOWN
-
-
Method Detail
-
values
public static Department.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Department.Status c : Department.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Department.Status valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public java.lang.String getValue()
Gets the value of this status enum- Returns:
- status name as defined in Zopim protocol
-
getStatus
public static Department.Status getStatus(java.lang.String value)
Gets the status enum of the value passed as parameter- Parameters:
value
- to interpret- Returns:
- status or
Department.Status.UNKNOWN
if not found
-
-