Enum PhoneDeviceState
- java.lang.Object
-
- java.lang.Enum<PhoneDeviceState>
-
- com.novomind.ecom.api.iagent.state.PhoneDeviceState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PhoneDeviceState>
public enum PhoneDeviceState extends java.lang.Enum<PhoneDeviceState>
Represents the types of phone device states- Since:
- 11.27
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUSY
The phone device is connected and busy.CLEAR
The phone device is connected and not busy and ready to receive calls.DISCONNECTED
The phone device is disconnected.LOGGED_OFF
Deprecated.please useDISCONNECTED
instead
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PhoneDeviceState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PhoneDeviceState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOGGED_OFF
@Deprecated public static final PhoneDeviceState LOGGED_OFF
Deprecated.please useDISCONNECTED
insteadThe phone device is logged off and disconnected.- Since:
- 11.27
-
CLEAR
public static final PhoneDeviceState CLEAR
The phone device is connected and not busy and ready to receive calls.- Since:
- 11.27
-
BUSY
public static final PhoneDeviceState BUSY
The phone device is connected and busy. The busy state also includes a ringing device due to an incoming call.- Since:
- 11.27
-
DISCONNECTED
public static final PhoneDeviceState DISCONNECTED
The phone device is disconnected. This is the initial state for a phone device.- Since:
- 12.1
-
-
Method Detail
-
values
public static PhoneDeviceState[] 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 (PhoneDeviceState c : PhoneDeviceState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PhoneDeviceState 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
-
-