001package com.plivo.api.models.enduser;
002
003import com.plivo.api.models.base.ListResponse;
004import com.plivo.api.models.base.Lister;
005import retrofit2.Call;
006
007public class EndUserLister extends Lister<EndUser> {
008
009   private String name = null;
010   private String lastName = null;
011   private String endUserType = null;
012
013  public String name() {
014    return this.name;
015  }
016  public String lastName() {
017    return this.lastName;
018  }
019  public String endUserType() {
020    return this.endUserType;
021  }
022
023  public EndUserLister name(final String name) {
024    this.name = name;
025    return this;
026  }
027
028  public EndUserLister lastName(final String lastName) {
029    this.lastName = lastName;
030    return this;
031  }
032
033  public EndUserLister endUserType(final String endUserType) {
034    this.endUserType = endUserType;
035    return this;
036  }
037
038    @Override
039    protected Call<ListResponse<EndUser>> obtainCall() {
040        return client().getApiService().endUserList(client().getAuthId(), toMap());
041    }
042}