001package com.plivo.api.models.verify;
002
003import com.plivo.api.exceptions.PlivoValidationException;
004import com.plivo.api.models.base.VoiceGetter;
005import retrofit2.Call;
006
007public class ListVerifiedCallerId extends VoiceGetter<ListVerifiedCallerIdResponse> {
008
009  private String country;
010  private String subaccount;
011  private String alias;
012  private Integer limit;
013  private Integer offset;
014
015  public String getCountry() {
016    return country;
017  }
018
019  public String getSubaccount() {
020    return subaccount;
021  }
022
023  public String getAlias() {
024    return alias;
025  }
026
027  public Integer getLimit() {
028    return limit;
029  }
030
031  public Integer getOffset() {
032    return offset;
033  }
034
035  public ListVerifiedCallerId country(final String country) {
036    this.country = country;
037    return this;
038  }
039  public ListVerifiedCallerId subaccount(final String subaccount) {
040    this.subaccount = subaccount;
041    return this;
042  }
043  public ListVerifiedCallerId alias(final String alias) {
044    this.alias = alias;
045    return this;
046  }
047  public ListVerifiedCallerId limit(final Integer limit) {
048    this.limit = limit;
049    return this;
050  }
051  public ListVerifiedCallerId offset(final Integer offset) {
052    this.offset = offset;
053    return this;
054  }
055
056  public ListVerifiedCallerId() {
057    super("");
058  }
059
060  @Override
061  protected Call<ListVerifiedCallerIdResponse> obtainCall() throws PlivoValidationException {
062    return client().getVoiceApiService().listVerifiedCallerID(client().getAuthId(), toMap());
063  }
064
065  @Override
066  protected Call<ListVerifiedCallerIdResponse> obtainFallback1Call() throws PlivoValidationException {
067    return client().getVoiceFallback1Service().listVerifiedCallerID(client().getAuthId(), toMap());
068  }
069
070  @Override
071  protected Call<ListVerifiedCallerIdResponse> obtainFallback2Call() throws PlivoValidationException {
072    return client().getVoiceFallback2Service().listVerifiedCallerID(client().getAuthId(), toMap());
073  }
074}