<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 15, 2012, at 12:13 PM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br>On Saturday, September 15, 2012, Kris Borchers  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On Sep 15, 2012, at 10:53 AM, Glen Daniels &lt;<a href="javascript:;" onclick="_e(event, 'cvml', 'glen@thoughtcraft.com')">glen@thoughtcraft.com</a>&gt; wrote:<br>
<br>
&gt; Hey Matthias,<br>
&gt;<br>
&gt; Thanks for taking a look at the prototype!<br>
&gt;<br>
&gt; On 9/15/12 6:12 AM, Matthias Wessendorf wrote:<br>
&gt;&gt; I took a quick look at the Android API. Below are a few questions:<br>
&gt;&gt;<br>
&gt;&gt; * AeroGear.java<br>
&gt;&gt; - Is the class 'just' a util, that offers static methods? If so,<br>
&gt;&gt; should have a private ctor and be final (since a private default ctor<br>
&gt;&gt; prevents inheritance anyways)<br>
&gt;<br>
&gt; Yup, that's the intent, but since it's just a "sketch" I didn't put that<br>
&gt; in - will do.<br>
&gt;<br>
&gt;&gt; - is the API_KEY really needed? Not sure, but I think that (the<br>
&gt;&gt; API_KEY) is _perhaps_ something on-top of a networking client lib,<br>
&gt;&gt; needed when entering the real 'BaaS' market, where our lib. is used<br>
&gt;&gt; against a (specific) 'backend provider'.<br>
&gt;<br>
&gt; Right, I was pretty much following the common BaaS pattern. &nbsp;It's<br>
&gt; certainly not necessary immediately, but once we start supporting OAuth<br>
&gt; we'll want something like that anyway, so I put it in as a placeholder.<br>
&gt; Easy to remove if we decide we don't want it for now.<br>
&gt;<br>
&gt;&gt; * Utils.java<br>
&gt;&gt; - related to the API_key, I think the X-AeroGear-Client header needs<br>
&gt;&gt; to be defined/discussed - but IMO the AeroGear client lib should work<br>
&gt;&gt; also without such a key, when accessing a simple JAX-RS (read:<br>
&gt;&gt; RestEasy) service; Of course, when 'cloud provider' start using our<br>
&gt;&gt; bits, something like API_KEY is a must.<br>
&gt;<br>
&gt; +1<br>
&gt;<br>
&gt;&gt; - the 'delete' is public; the others (e.g. post) not...<br>
&gt;<br>
&gt; No semantic significance there. &nbsp;Should probably all be package access,<br>
&gt; since AeroGear is the user-facing class.<br>
&gt;<br>
&gt;&gt; * Pipe.java<br>
&gt;&gt; - how to update an existing item?<br>
&gt;&gt; For instance in JS/iOS we use save which does an 'add' if there is no<br>
&gt;&gt; _id_ or issues an 'update' if the entity already exisits (e.g. has an<br>
&gt;&gt; _id_).<br>
&gt;<br>
&gt; Yep, will do that. &nbsp;(although note that "_id_" or "_id" or whatever we<br>
&gt; use is another point of coupling ;) )<br>
I don't think it does. In JS, I have made it so that what ever name you use on the server to denote an "id", you can tell the client lib what that name is. So whether the id field is named id or recordId, or blahblah, that is configurable when a pipe is created.</blockquote>
<div><br></div><div>Can you post a snippet for that?</div></blockquote>Not exactly sure what you want to see and iOS/Android are probably going to have to be different but hope this helps a little.&nbsp;<a href="https://gist.github.com/3729174">https://gist.github.com/3729174</a></div><div><br><blockquote type="cite"><div><br></div><div>Thx,</div><div>Matthias<span></span></div><div><br></div><div><br></div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
&gt;<br>
&gt;&gt; There is no concept of a 'pipeline', but I guess (at least for now) on<br>
&gt;&gt; "Java" (aka Android) a typed list (e.g. List&lt;Pipe&gt; pipeline;) is good<br>
&gt;&gt; enough, right?<br>
&gt;&gt; But on the other hand, than it's up to the user of the api to 'manage'<br>
&gt;&gt; all the pipes (server connections).<br>
&gt;<br>
&gt; Right. &nbsp;What sort of "management" do you imagine, other than<br>
&gt; factory-style creation? &nbsp;Pipes as they stand are extremely "cheap"<br>
&gt; objects (no db connections, network connections, threads, etc).<br>
&gt;<br>
&gt; Best,<br>
&gt; --Glen<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
&gt; <a href="javascript:;" onclick="_e(event, 'cvml', 'aerogear-dev@lists.jboss.org')">aerogear-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', '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>
</blockquote><br><br>-- <br>Sent from Gmail Mobile<br>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev<br></blockquote></div><br></body></html>