Enum Class ContactFailedReason
- All Implemented Interfaces:
Serializable, Comparable<ContactFailedReason>, Constable
Defines the reasons for the failure of a contact.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe call failed because the destination phone was busy.The call failed due to custom call status #1.The call failed due to custom call status #2.The call failed due to custom call status #3.The call failed due to custom call status #4.The call failed due to custom call status #5.The call failed because the destination phone was answered by a fax machine.The call failed because the number dialed is invalid.The call failed because the destination phone was answered by a machine.The call failed because the destination phone was answered by a modem.The call failed because the destination phone did not answer.The call failed because the call was rejected. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContactFailedReasonfromValue(int v) intvalue()static ContactFailedReasonReturns the enum constant of this class with the specified name.static ContactFailedReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
Busy
The call failed because the destination phone was busy. -
Machine
The call failed because the destination phone was answered by a machine. -
NoAnswer
The call failed because the destination phone did not answer. -
InvalidNumber
The call failed because the number dialed is invalid. -
Modem
The call failed because the destination phone was answered by a modem. -
Fax
The call failed because the destination phone was answered by a fax machine. -
Rejected
The call failed because the call was rejected. -
CustomCallStatus1
The call failed due to custom call status #1. -
CustomCallStatus2
The call failed due to custom call status #2. -
CustomCallStatus3
The call failed due to custom call status #3. -
CustomCallStatus4
The call failed due to custom call status #4. -
CustomCallStatus5
The call failed due to custom call status #5.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
value
public int value() -
fromValue
-