Package com.nexmo.client.voice
Enum CallStatus
- java.lang.Object
-
- java.lang.Enum<CallStatus>
-
- com.nexmo.client.voice.CallStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CallStatus>
public enum CallStatus extends java.lang.Enum<CallStatus>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CallStatus
fromString(java.lang.String name)
java.lang.String
toString()
static CallStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CallStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTED
public static final CallStatus STARTED
-
RINGING
public static final CallStatus RINGING
-
ANSWERED
public static final CallStatus ANSWERED
-
TIMEOUT
public static final CallStatus TIMEOUT
-
MACHINE
public static final CallStatus MACHINE
-
COMPLETED
public static final CallStatus COMPLETED
-
FAILED
public static final CallStatus FAILED
-
REJECTED
public static final CallStatus REJECTED
-
BUSY
public static final CallStatus BUSY
-
CANCELLED
public static final CallStatus CANCELLED
-
UNKNOWN
public static final CallStatus UNKNOWN
-
-
Method Detail
-
values
public static CallStatus[] 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 (CallStatus c : CallStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CallStatus 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<CallStatus>
-
fromString
public static CallStatus fromString(java.lang.String name)
-
-