Package com.nexmo.client.voice
Class Call
- java.lang.Object
-
- com.nexmo.client.voice.Call
-
public class Call extends java.lang.Object
Call encapsulates the information required to create a call usingVoiceClient.createCall(Call)
-
-
Constructor Summary
Constructors Constructor Description Call()Call(Endpoint[] to, Endpoint from, Ncco ncco)Call(Endpoint[] to, Endpoint from, java.lang.String answerUrl)Call(Endpoint to, Endpoint from, Ncco ncco)Call(Endpoint to, Endpoint from, java.lang.String answerUrl)Call(java.lang.String to, java.lang.String from, Ncco ncco)Call(java.lang.String to, java.lang.String from, java.lang.String answerUrl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CallfromJson(java.lang.String json)java.lang.StringgetAnswerMethod()java.lang.String[]getAnswerUrl()java.lang.StringgetEventMethod()java.lang.String[]getEventUrl()EndpointgetFrom()java.lang.IntegergetLengthTimer()MachineDetectiongetMachineDetection()NccogetNcco()java.lang.IntegergetRingingTimer()Endpoint[]getTo()voidsetAnswerMethod(java.lang.String answerMethod)voidsetAnswerUrl(java.lang.String answerUrl)voidsetEventMethod(java.lang.String eventMethod)voidsetEventUrl(java.lang.String eventUrl)voidsetFrom(Endpoint from)voidsetLengthTimer(java.lang.Integer lengthTimer)voidsetMachineDetection(MachineDetection machineDetection)voidsetRingingTimer(java.lang.Integer ringingTimer)voidsetTo(Endpoint[] to)java.lang.StringtoJson()
-
-
-
Method Detail
-
getAnswerUrl
public java.lang.String[] getAnswerUrl()
-
setAnswerUrl
public void setAnswerUrl(java.lang.String answerUrl)
-
getAnswerMethod
public java.lang.String getAnswerMethod()
-
setAnswerMethod
public void setAnswerMethod(java.lang.String answerMethod)
-
getEventUrl
public java.lang.String[] getEventUrl()
-
setEventUrl
public void setEventUrl(java.lang.String eventUrl)
-
getEventMethod
public java.lang.String getEventMethod()
-
setEventMethod
public void setEventMethod(java.lang.String eventMethod)
-
getMachineDetection
public MachineDetection getMachineDetection()
-
setMachineDetection
public void setMachineDetection(MachineDetection machineDetection)
-
getLengthTimer
public java.lang.Integer getLengthTimer()
-
setLengthTimer
public void setLengthTimer(java.lang.Integer lengthTimer)
-
getRingingTimer
public java.lang.Integer getRingingTimer()
-
setRingingTimer
public void setRingingTimer(java.lang.Integer ringingTimer)
-
toJson
public java.lang.String toJson()
-
-