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