001package com.plivo.api.models.powerpack;
002
003import com.plivo.api.models.base.ListResponse;
004import com.plivo.api.models.base.Lister;
005import com.plivo.api.util.Utils;
006import retrofit2.Call;
007
008public class TollfreeLister extends Lister<Tollfree> {
009
010  private String id;
011
012  TollfreeLister(String id) {
013
014    if (!Utils.allNotNull(id)) {
015      throw new IllegalArgumentException("uuid cannot be null");
016    }
017    this.id = id;
018  }
019
020  @Override
021  protected Call<ListResponse<Tollfree>> obtainCall() {
022    return client().getApiService().powerpackTollfreeList(client().getAuthId(), id, toMap());
023  }
024}