public class CallUpdater extends VoiceUpdater<CallUpdateResponse>
id, secondaryIdplivoClient| Constructor and Description |
|---|
CallUpdater(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
alegMethod() |
CallUpdater |
alegMethod(java.lang.String alegMethod) |
java.lang.String |
alegUrl() |
CallUpdater |
alegUrl(java.lang.String alegUrl) |
java.lang.String |
blegMethod() |
CallUpdater |
blegMethod(java.lang.String blegMethod) |
java.lang.String |
blegUrl() |
CallUpdater |
blegUrl(java.lang.String blegUrl) |
LegSpecifier |
legs() |
CallUpdater |
legs(LegSpecifier legs) |
protected retrofit2.Call<CallUpdateResponse> |
obtainCall() |
protected retrofit2.Call<CallUpdateResponse> |
obtainFallback1Call() |
protected retrofit2.Call<CallUpdateResponse> |
obtainFallback2Call() |
CallUpdateResponse |
transfer() |
protected void |
validate() |
client, updateclient, handleResponsepublic CallUpdater(java.lang.String id)
public LegSpecifier legs()
public java.lang.String alegUrl()
public java.lang.String alegMethod()
public java.lang.String blegUrl()
public java.lang.String blegMethod()
public CallUpdater legs(LegSpecifier legs)
legs - Which leg to transfer.public CallUpdater alegUrl(java.lang.String alegUrl)
alegUrl - URL to transfer for aleg, if legs is aleg or both, then aleg_url has to be
specified.public CallUpdater alegMethod(java.lang.String alegMethod)
alegMethod - HTTP method to invoke aleg_url. Defaults to POST.public CallUpdater blegUrl(java.lang.String blegUrl)
blegUrl - URL to transfer for bridged leg, if legs is bleg or both, then bleg_url has to
be specified.public CallUpdater blegMethod(java.lang.String blegMethod)
blegMethod - HTTP method to invoke bleg_url. Defaults to POST.protected void validate()
validate in class BaseRequestprotected retrofit2.Call<CallUpdateResponse> obtainCall()
obtainCall in class VoiceUpdater<CallUpdateResponse>protected retrofit2.Call<CallUpdateResponse> obtainFallback1Call()
obtainFallback1Call in class VoiceUpdater<CallUpdateResponse>protected retrofit2.Call<CallUpdateResponse> obtainFallback2Call()
obtainFallback2Call in class VoiceUpdater<CallUpdateResponse>public CallUpdateResponse transfer() throws java.io.IOException, PlivoRestException, PlivoValidationException
java.io.IOExceptionPlivoRestExceptionPlivoValidationException