Package com.vonage.client.voice
Class Call
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.voice.Call
- All Implemented Interfaces:
Jsonable
Call encapsulates the information required to create a call using
VoiceClient.createCall(Call)-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructing a Call object. -
Constructor Summary
ConstructorsConstructorDescriptionCall(Endpoint[] to, Endpoint from, Collection<? extends Action> ncco) Call(Endpoint to, Endpoint from, Collection<? extends Action> ncco) Call(String to, String from, Collection<? extends Action> ncco) -
Method Summary
Modifier and TypeMethodDescriptionstatic Call.Builderbuilder()Entrypoint for constructing an instance of this class.static CallCreates an instance of this class from a JSON payload.Premium machine detection, overridesgetMachineDetection()if both are set.String[]String[]getFrom()Collection<? extends Action> getNcco()Endpoint[]getTo()Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
Call
-
Call
-
Call
-
Call
-
Call
-
Call
-
-
Method Details
-
getTo
-
getFrom
-
getAnswerUrl
-
getAnswerMethod
-
getEventUrl
-
getEventMethod
-
getMachineDetection
-
getAdvancedMachineDetection
Premium machine detection, overridesgetMachineDetection()if both are set.- Returns:
- The advanced machine detection settings, or
nullif not set. - Since:
- 7.4.0
-
getLengthTimer
-
getRingingTimer
-
getFromRandomNumber
-
getNcco
- Returns:
- The NCCO actions.
-
fromJson
Creates an instance of this class from a JSON payload.- Parameters:
json- The JSON string to parse.- Returns:
- An instance of this class with the fields populated, if present.
-
builder
Entrypoint for constructing an instance of this class.- Returns:
- A new Builder.
- Since:
- 7.3.0
-