001package com.plivo.api.models.conference;
002
003import com.plivo.api.PlivoClient;
004import com.plivo.api.exceptions.PlivoRestException;
005import java.io.IOException;
006import retrofit2.Call;
007
008public class ConferenceMemberDeleter extends ConferenceMemberDeleterAction {
009
010  public ConferenceMemberDeleter(String conferenceName, String id) {
011    super(conferenceName, id);
012  }
013
014  @Override
015  protected Call<ConferenceMemberActionResponse> obtainCall() {
016    return client().getApiService()
017      .conferenceMemberDelete(client().getAuthId(), conferenceName, id);
018  }
019
020  public void hangup() throws IOException, PlivoRestException {
021    delete();
022  }
023
024  @Override
025  public ConferenceMemberDeleter client(final PlivoClient plivoClient) {
026    this.plivoClient = plivoClient;
027    return this;
028  }
029
030}