001package com.plivo.api.models.call;
002
003import com.plivo.api.exceptions.PlivoRestException;
004import com.plivo.api.models.base.Deleter;
005import java.io.IOException;
006import okhttp3.ResponseBody;
007
008public class RequestDeleter extends Deleter<Call> {
009  public RequestDeleter(String id) {
010    super(id);
011  }
012
013  @Override
014  protected retrofit2.Call<ResponseBody> obtainCall() {
015    return client().getApiService().requestDelete(client().getAuthId(), id);
016  }
017
018  public void cancel() throws IOException, PlivoRestException {
019    delete();
020  }
021}