I already asked this question but didn't really get the answer, why can't we overload the read() method, readWithFilter(ReadFilter filter, Callback) ?<div>For the rest, +1 , nice comparison gist, make it a lot clearer.</div>
<div><pre style="font-size:13px;line-height:19px;font-family:Consolas,'Liberation Mono',Courier,monospace;word-wrap:break-word;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">
<span class="n">cars</span><span class="o" style="font-weight:bold">.</span><span class="na" style="color:rgb(0,128,128)">readWithFilter</span><span class="o" style="font-weight:bold">(</span><span class="n">filter</span><span class="o" style="font-weight:bold">,</span> <span class="k" style="font-weight:bold">new</span> <span class="n">Callback</span><span class="o" style="font-weight:bold"><</span><span class="n">Car</span><span class="o" style="font-weight:bold">>()</span> <span class="o" style="font-weight:bold">{</span>
<span class="nd">@Override</span>
<span class="kt" style="color:rgb(68,85,136);font-weight:bold">void</span> <span class="nf" style="color:rgb(153,0,0);font-weight:bold">onSuccess</span><span class="o" style="font-weight:bold">(</span><span class="n">List</span><span class="o" style="font-weight:bold"><</span><span class="n">Car</span><span class="o" style="font-weight:bold">></span> <span class="n">data</span><span class="o" style="font-weight:bold">)</span> <span class="o" style="font-weight:bold">{</span>
<span class="n">firstPage</span> <span class="o" style="font-weight:bold">=</span> <span class="n">data</span><span class="o" style="font-weight:bold">;</span>
<span class="o" style="font-weight:bold">}</span>
<span class="nd">@Override</span>
<span class="kt" style="color:rgb(68,85,136);font-weight:bold">void</span> <span class="nf" style="color:rgb(153,0,0);font-weight:bold">onError</span><span class="o" style="font-weight:bold">(</span><span class="n">Exception</span> <span class="n">ex</span><span class="o" style="font-weight:bold">)</span> <span class="o" style="font-weight:bold">{</span>
<span class="c1" style="color:rgb(153,153,136);font-style:italic">//handle error</span>
<span class="o" style="font-weight:bold">}</span>
<span class="o" style="font-weight:bold">});</span></pre><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 11:00 PM, Summers Pittman <span dir="ltr"><<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="im">
<div>On 01/15/2013 02:51 PM, Douglas Campos
wrote:<br>
</div>
<blockquote type="cite">
<pre>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)</pre>
</blockquote></div>
I forked Kris's gist and added android stuff using my proposal (sans
blocking methods)<br>
<a href="https://gist.github.com/4542125" target="_blank">https://gist.github.com/4542125</a><br>
<br>
I went for pedantic in a couple of examples...<div class="im"><br>
<br>
<blockquote type="cite">
<pre>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
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a>
</pre>
</blockquote>
<br>
</div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br></blockquote></div><br></div>