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 ShortcodeLister extends Lister<Shortcode> {
009
010  private String id;
011
012  ShortcodeLister(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<Shortcode>> obtainCall() {
022    return client().getApiService().powerpackShortcodeList(client().getAuthId(), id, toMap());
023  }
024}