I already asked this question but didn't really get the answer, why can't we overload the read() method, readWithFilter(ReadFilter filter, Callback) ?
cars.readWithFilter(filter, new Callback<Car>() { @Override void onSuccess(List<Car> data) { firstPage = data; } @Override void onError(Exception ex) { //handle error } });
I forked Kris's gist and added android stuff using my proposal (sans blocking methods)On 01/15/2013 02:51 PM, Douglas Campos wrote:
As we wrap the day one of API design discussions, what about summarize the API proposals with usage? JS/iOS/Android: 1) usage example, covering some mentioned usecases like changing the paging "midflight" - something really straight to the point (no fluff, just stuff)
https://gist.github.com/4542125
I went for pedantic in a couple of examples...
2) API definition I think this will give the orthogonal view we need to come to a decision. kris: What about you providing a snippet of the API you hate too? just for comparison sake :P -- qmx _______________________________________________ aerogear-dev mailing list aerogear-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-dev
_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev