3. Limiting and Offsetting Results - SphereMall/Android-MS-Client GitHub Wiki
//limit and offset:
Response<List<Product>> response = client.products()
.limit(10)
.offset(10)
.all();
//get product list
List<Product> products = response.data();
//get metadata
Map<String, ?> metadata = response.meta();
//get number of products
Integer count = (Integer) metadata.get("count")