<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 01/16/2013 06:46 AM, Matthias
      Wessendorf wrote:<br>
    </div>
    <blockquote
cite="mid:CAAg5f2TvEA=Tftka+RH3S=id-6p=gJMpauS3iAvN+fMiDFNdnQ@mail.gmail.com"
      type="cite">
      <p
style="margin-right:0px;margin-bottom:15px;margin-left:0px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px;margin-top:0px!important">Hello,</p>
      <p style="margin:15px
0px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px">a
        few quick/simple q's:</p>
      <h3 style="margin:20px 0px
10px;padding:0px;font-size:18px;font-family:Helvetica,arial,freesans,clean,sans-serif"><a
          moz-do-not-send="true" name="javascript" class="anchor"
          href="https://gist.github.com/2d75e480500c69993227#javascript"
style="color:rgb(65,131,196);text-decoration:initial;display:block;padding-left:30px"></a>JavaScript</h3>
      <p style="margin:0px 0px
15px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px">One
        question on the two gists...</p>
      <p style="margin:15px
0px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px"><a
          moz-do-not-send="true" href="https://gist.github.com/4539188"
          style="color:rgb(65,131,196);text-decoration:initial">Kris'
          gist</a>&nbsp;uses&nbsp;<code
          style="font-size:12px;line-height:normal;font-family:Consolas,'Liberation
          Mono',Courier,monospace;margin:0px 2px;padding:0px
          5px;border:1px solid
rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white-space:nowrap">pipe.next()</code>&nbsp;of
        scrolling forward, Summer's&nbsp;<a moz-do-not-send="true"
          href="https://gist.github.com/4542125"
          style="color:rgb(65,131,196);text-decoration:initial">comparison
          gist</a>&nbsp;uses&nbsp;<code
          style="font-size:12px;line-height:normal;font-family:Consolas,'Liberation
          Mono',Courier,monospace;margin:0px 2px;padding:0px
          5px;border:1px solid
rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white-space:nowrap">pipe.read(page:"next")</code>&nbsp;for
        the JS.</p>
      <p style="margin:15px
0px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px">I
        think I do like the 'plain' read overload in JS... - but having
        a more explicit next() (and others) is not that bad; but
        (currently) my vote would be&nbsp;<code
          style="font-size:12px;line-height:normal;font-family:Consolas,'Liberation
          Mono',Courier,monospace;margin:0px 2px;padding:0px
          5px;border:1px solid
rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white-space:nowrap">pipe.read(page:"prev".....</code>.</p>
      <p style="margin:15px
0px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px">Oh...
        What happens when I have a&nbsp;<em>regular</em>&nbsp;pipe, object (where
        the&nbsp;<code
          style="font-size:12px;line-height:normal;font-family:Consolas,'Liberation
          Mono',Courier,monospace;margin:0px 2px;padding:0px
          5px;border:1px solid
rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white-space:nowrap">paged</code>&nbsp;setting
        is NOT specified on its ctor), and I invoke&nbsp;<code
          style="font-size:12px;line-height:normal;font-family:Consolas,'Liberation
          Mono',Courier,monospace;margin:0px 2px;padding:0px
          5px;border:1px solid
rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white-space:nowrap">pipe.read(page:"next")</code>&nbsp;?
        I hope it does not issue a JS/type error :-) but I'd expect to
        have a straight read of ALL the "objects" (or "entities")...</p>
      <h3 style="margin:20px 0px
10px;padding:0px;font-size:18px;font-family:Helvetica,arial,freesans,clean,sans-serif"><a
          moz-do-not-send="true" name="android" class="anchor"
          href="https://gist.github.com/2d75e480500c69993227#android"
style="color:rgb(65,131,196);text-decoration:initial;display:block;padding-left:30px"></a>Android</h3>
      <p style="margin:0px 0px
15px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px">You
        have the following:</p>
      <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"><code style="font-size:12px;line-height:normal;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;padding:0px;border:none;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">cars.readWithFilter(filter, new Callback&lt;Car&gt;() {
  @Override
  void onSuccess(List&lt;Car&gt; data) {
    firstPage = data;
  }

  @Override
  void onError(Exception ex) {
    //handle error
  }
});


firstPage.next(.......);
</code></pre>
      <p style="margin:15px
0px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px">I
        am wondering what is the&nbsp;<code
          style="font-size:12px;line-height:normal;font-family:Consolas,'Liberation
          Mono',Courier,monospace;margin:0px 2px;padding:0px
          5px;border:1px solid
rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white-space:nowrap">fristPage</code>&nbsp;here
        (since the&nbsp;<code
          style="font-size:12px;line-height:normal;font-family:Consolas,'Liberation
          Mono',Courier,monospace;margin:0px 2px;padding:0px
          5px;border:1px solid
rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white-space:nowrap">data</code>&nbsp;on
        the&nbsp;<code
          style="font-size:12px;line-height:normal;font-family:Consolas,'Liberation
          Mono',Courier,monospace;margin:0px 2px;padding:0px
          5px;border:1px solid
rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white-space:nowrap">onSuccess</code>&nbsp;has
        been assigned to it)</p>
    </blockquote>
    firstPage is a field with a type of PagedList<br>
    <blockquote
cite="mid:CAAg5f2TvEA=Tftka+RH3S=id-6p=gJMpauS3iAvN+fMiDFNdnQ@mail.gmail.com"
      type="cite">
      <h3 style="margin:20px 0px
10px;padding:0px;font-size:18px;font-family:Helvetica,arial,freesans,clean,sans-serif"><a
          moz-do-not-send="true" name="change-offset-and-limit"
          class="anchor"
href="https://gist.github.com/2d75e480500c69993227#change-offset-and-limit"
style="color:rgb(65,131,196);text-decoration:initial;display:block;padding-left:30px"></a>Change
        Offset and Limit</h3>
      <p style="margin:0px 0px
15px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px">I
        like both (JS and Android) :) The Android solution is similar to
        what I had in mind for&nbsp;<a moz-do-not-send="true"
          href="https://gist.github.com/cbff741b3b21a50c3b67"
          style="color:rgb(65,131,196);text-decoration:initial">iOS</a>...</p>
      <p style="margin:15px
0px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px">I
        will update the comparison gist soon !</p>
      <p
style="margin-top:15px;margin-right:0px;margin-left:0px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px;margin-bottom:0px!important">-Matthias</p>
      <p
style="margin-top:15px;margin-right:0px;margin-left:0px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px;margin-bottom:0px!important"><br>
      </p>
      <p
style="margin-top:15px;margin-right:0px;margin-left:0px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px;margin-bottom:0px!important"><br>
      </p>
      <p
style="margin-top:15px;margin-right:0px;margin-left:0px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:22px;margin-bottom:0px!important"><br>
      </p>
      <br>
      <div class="gmail_quote">On Tue, Jan 15, 2013 at 11:00 PM, Summers
        Pittman <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>&gt;</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 moz-do-not-send="true"
              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 moz-do-not-send="true" href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
            href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
          <a moz-do-not-send="true"
            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>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      Matthias Wessendorf <br>
      <br>
      blog: <a moz-do-not-send="true"
        href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
      sessions: <a moz-do-not-send="true"
        href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
      twitter: <a moz-do-not-send="true"
        href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
aerogear-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>