001package com.plivo.api.models.profile; 002 003import com.plivo.api.models.base.ListResponse; 004import com.plivo.api.models.base.MessagingProfileLister; 005import com.plivo.api.util.Utils; 006import retrofit2.Call; 007import com.plivo.api.models.profile.Profile; 008 009public class ProfileLister extends MessagingProfileLister<Profile> { 010 private Integer limit; 011 private Integer offset; 012 013 public ProfileLister limit(Integer limit) { 014 this.limit = limit; 015 return this; 016 017 } 018 019 public ProfileLister offset(Integer offset) { 020 this.offset = offset; 021 return this; 022 023 } 024 025 026 @Override 027 protected Call<ListResponse<Profile>> obtainCall() { 028 return client().getApiService().profileList(client().getAuthId(), toMap(), limit, offset); 029 } 030}