001package com.plivo.api.models.endpoint; 002 003import com.plivo.api.models.base.VoiceDeleter; 004import okhttp3.ResponseBody; 005import retrofit2.Call; 006 007public class EndpointDeleter extends VoiceDeleter<Endpoint> { 008 009 public EndpointDeleter(String id) { 010 super(id); 011 } 012 013 @Override 014 protected Call<ResponseBody> obtainCall() { 015 return client().getVoiceApiService().endpointDelete(client().getAuthId(), id); 016 } 017 018 @Override 019 protected Call<ResponseBody> obtainFallback1Call() { 020 return client().getVoiceFallback1Service().endpointDelete(client().getAuthId(), id); 021 } 022 023 @Override 024 protected Call<ResponseBody> obtainFallback2Call() { 025 return client().getVoiceFallback2Service().endpointDelete(client().getAuthId(), id); 026 } 027}