All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.plivo.api.models.call.actions.CallPlayDeleter Maven / Gradle / Ivy

Go to download

A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML

There is a newer version: 5.46.0
Show newest version
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