
com.plivo.api.models.call.actions.CallPlayDeleter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plivo-java Show documentation
Show all versions of plivo-java Show documentation
A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML
package com.plivo.api.models.call.actions;
import com.plivo.api.PlivoClient;
import com.plivo.api.exceptions.PlivoRestException;
import com.plivo.api.models.base.VoiceDeleter;
import com.plivo.api.exceptions.PlivoValidationException;
import com.plivo.api.models.call.Call;
import java.io.IOException;
import okhttp3.ResponseBody;
public class CallPlayDeleter extends VoiceDeleter {
public CallPlayDeleter(String id) {
super(id);
}
@Override
protected retrofit2.Call obtainCall() {
return client().getVoiceApiService().callPlayDelete(client().getAuthId(), id);
}
@Override
protected retrofit2.Call obtainFallback1Call() {
return client().getVoiceFallback1Service().callPlayDelete(client().getAuthId(), id);
}
@Override
protected retrofit2.Call obtainFallback2Call() {
return client().getVoiceFallback2Service().callPlayDelete(client().getAuthId(), id);
}
public void playStop() throws IOException, PlivoRestException, PlivoValidationException {
delete();
}
@Override
public CallPlayDeleter client(final PlivoClient plivoClient) {
this.plivoClient = plivoClient;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy