
com.plivo.api.models.conference.ConferenceMemberDeleter 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.conference;
import com.plivo.api.PlivoClient;
import com.plivo.api.exceptions.PlivoRestException;
import java.io.IOException;
import com.plivo.api.exceptions.PlivoValidationException;
import retrofit2.Call;
public class ConferenceMemberDeleter extends ConferenceMemberDeleterAction {
public ConferenceMemberDeleter(String conferenceName, String id) {
super(conferenceName, id);
}
@Override
protected Call obtainCall() {
return client().getVoiceApiService()
.conferenceMemberDelete(client().getAuthId(), conferenceName, id);
}
@Override
protected Call obtainFallback1Call() {
return client().getVoiceFallback1Service()
.conferenceMemberDelete(client().getAuthId(), conferenceName, id);
}
@Override
protected Call obtainFallback2Call() {
return client().getVoiceFallback2Service()
.conferenceMemberDelete(client().getAuthId(), conferenceName, id);
}
public void hangup() throws IOException, PlivoRestException, PlivoValidationException {
delete();
}
@Override
public ConferenceMemberDeleter client(final PlivoClient plivoClient) {
this.plivoClient = plivoClient;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy