com.plivo.api.models.endpoint.EndpointDeleter 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.endpoint;
import com.plivo.api.models.base.VoiceDeleter;
import okhttp3.ResponseBody;
import retrofit2.Call;
public class EndpointDeleter extends VoiceDeleter {
public EndpointDeleter(String id) {
super(id);
}
@Override
protected Call obtainCall() {
return client().getVoiceApiService().endpointDelete(client().getAuthId(), id);
}
@Override
protected Call obtainFallback1Call() {
return client().getVoiceFallback1Service().endpointDelete(client().getAuthId(), id);
}
@Override
protected Call obtainFallback2Call() {
return client().getVoiceFallback2Service().endpointDelete(client().getAuthId(), id);
}
}