<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 28, 2014 at 2:59 PM, Erik Jan de Wit <span dir="ltr">&lt;<a href="mailto:edewit@redhat.com" target="_blank">edewit@redhat.com</a>&gt;</span> wrote:</div>
<div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Of course we still can make it look like that, this is the same example but then without everything inlined still our average user will have to get used that we are referencing function &lsquo;pointers&rsquo; here<br>
<div><pre style="margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(221,221,221);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;word-wrap:normal;line-height:19px;font-size:13px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;color:rgb(51,51,51)">
<pre style="color:rgb(0,0,0);font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;line-height:16.799999237060547px;width:744px;margin-top:0px;margin-bottom:0px;padding:0px;background-color:rgb(255,255,255)">
<div><div><span style="color:rgb(51,51,51);font-size:13px;line-height:19px;font-weight:bold">var</span><span style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-size:13px;line-height:19px"> </span><span style="color:rgb(51,51,51);font-size:13px;line-height:19px">pushConfig</span><span style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-size:13px;line-height:19px"> </span><span style="color:rgb(51,51,51);font-size:13px;line-height:19px;font-weight:bold">= </span><span style="line-height:16.799999237060547px">{</span></div>
<div class=""><div>    pushServerURL<span style="font-weight:bold">:</span> <span style="color:rgb(221,17,68)">&quot;&lt;pushServerURL e.g http(s)//host:port/context &gt;&quot;</span>,</div></div></div><div class=""><div>
    alias<span style="font-weight:bold">:</span> <span style="color:rgb(221,17,68)">&quot;&lt;alias e.g. a username or an email address optional&gt;&quot;</span>,</div><div>    android<span style="font-weight:bold">:</span> {</div>
<div>      senderID<span style="font-weight:bold">:</span> <span style="color:rgb(221,17,68)">&quot;&lt;senderID e.g Google Project ID only for android&gt;&quot;</span>,</div><div><div>      variantID<span style="font-weight:bold">:</span> <span style="color:rgb(221,17,68)">&quot;&lt;variantID e.g. 1234456-234320&gt;&quot;</span>,</div>
<div>      variantSecret<span style="font-weight:bold">:</span> <span style="color:rgb(221,17,68)">&quot;&lt;variantSecret e.g. 1234456-234320&gt;&quot;</span></div></div><div>    },</div></div><div class=""><div>    ios<span style="font-weight:bold">:</span> {</div>
<div><div>      variantID<span style="font-weight:bold">:</span> <span style="color:rgb(221,17,68)">&quot;&lt;variantID e.g. 1234456-234320&gt;&quot;</span>,</div><div>      variantSecret<span style="font-weight:bold">:</span> <span style="color:rgb(221,17,68)">&quot;&lt;variantSecret e.g. 1234456-234320&gt;&quot;</span></div>
<div>    }</div></div></div><div>};</div><div><br></div><div><pre style="line-height:16.799999237060547px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;width:744px;margin-top:0px;margin-bottom:0px;padding:0px">
<div><span>push</span><span>.</span><span>register</span><span>(</span><span style="line-height:16.799999237060547px">onNotification</span><span style="line-height:16.799999237060547px">,</span><span style="line-height:16.799999237060547px"> </span><span style="line-height:16.799999237060547px">errorHandler, pushConfig</span><span style="line-height:16.799999237060547px">);</span></div>
<div><span style="line-height:16.799999237060547px"><br></span></div><div><pre style="line-height:16.799999237060547px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;width:744px;margin-top:0px;margin-bottom:0px;padding:0px">
<div><span style="font-weight:bold">function </span><span>onNotification</span><span>(</span><span>event</span><span>)</span> <span>{</span></div><div>  <span>alert</span><span>(</span><span>event</span><span>.</span><span>alert</span><span>);</span></div>
<div><span>}</span></div><div><span><br></span></div><div><span style="font-weight:bold">function </span><span>errorHandler</span><span>(</span><span>error</span><span>)</span> <span>{</span></div><div>  <span style="font-weight:bold">throw</span> <span>error</span><span>;</span></div>
<div><span>}</span></div></pre><div><br></div></div></pre></div></pre></pre></div></div></blockquote><div><br></div><div>This is the last version of the API ?&nbsp;</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">
<div style="word-wrap:break-word"><div><span></span></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></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>