001package com.plivo.api.models.number;
002
003import com.plivo.api.models.base.ListResponse;
004import com.plivo.api.models.base.Lister;
005import retrofit2.Call;
006
007public class NumberLister extends Lister<Number> {
008
009  private NumberType numberType;
010  private String numberStartswith;
011  private String subaccount;
012  private String alias;
013  private String services;
014
015  public NumberType numberType() {
016    return this.numberType;
017  }
018
019  public String numberStartswith() {
020    return this.numberStartswith;
021  }
022
023  public String subaccount() {
024    return this.subaccount;
025  }
026
027  public String alias() {
028    return this.alias;
029  }
030
031  public String services() {
032    return this.services;
033  }
034
035  public NumberLister numberType(final NumberType numberType) {
036    this.numberType = numberType;
037    return this;
038  }
039
040  public NumberLister numberStartswith(final String numberStartswith) {
041    this.numberStartswith = numberStartswith;
042    return this;
043  }
044
045  public NumberLister subaccount(final String subaccount) {
046    this.subaccount = subaccount;
047    return this;
048  }
049
050  public NumberLister alias(final String alias) {
051    this.alias = alias;
052    return this;
053  }
054
055  public NumberLister services(final String services) {
056    this.services = services;
057    return this;
058  }
059
060  @Override
061  protected Call<ListResponse<Number>> obtainCall() {
062    return client().getApiService().numberList(client().getAuthId(), toMap());
063  }
064}