> +      }
> +
> +      public UserOptions build() {
> +         UserOptions options = new UserOptions();
> +
> +         if (page != null) {
> +            options.queryParameters.put("page", String.valueOf(page));
> +         }
> +
> +         if (results != null) {
> +            options.queryParameters.put("numResults", 
> String.valueOf(results));
> +         }
> +
> +         return addFilterOptions(options);
> +      }
> +   }

Ok, I'll do it that way. Besides I've just realised that if the client 
specifies the first item he wants to see (let's say the 15th), and not the 
items per page, if we try to calculate the page number based on the default 
value (25), we would return the first page, but the 15th item would be far down 
the list.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/22/files#r5705002

Reply via email to