public enum CallDirection extends java.lang.Enum<CallDirection>
| Enum Constant and Description |
|---|
INBOUND
Inbound call.
|
OUTBOUND_API
Outbound, initiated via the REST API.
|
OUTBOUND_DIAL
Outbound, initiated by a TwiML
<Dial> verb. |
| Modifier and Type | Method and Description |
|---|---|
static CallDirection |
deserializeXML(java.lang.String string) |
boolean |
isOutbound()
Is the call inbound or outbound?
|
java.lang.String |
toString() |
static CallDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CallDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CallDirection INBOUND
public static final CallDirection OUTBOUND_API
public static final CallDirection OUTBOUND_DIAL
<Dial> verb.public static CallDirection[] values()
for (CallDirection c : CallDirection.values()) System.out.println(c);
public static CallDirection valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isOutbound()
INBOUND, true for all other valuespublic java.lang.String toString()
toString in class java.lang.Enum<CallDirection>public static CallDirection deserializeXML(java.lang.String string) throws JiBXParseException
JiBXParseException