<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 9, 2014 at 12:06 PM, Sebastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div>I was looking at our current Push Message Format[1] and I was wonderimg if you should not add some more structure to it, decoupling config, criterias and the message itself : </div>
<div><br><div><br>
</div><div><pre style="line-height:12.800000190734863px;width:744px;font-size:12px;margin-bottom:0px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;margin-top:0px;padding:0px"><div>
<span>{</span></div><div>  <span style="color:navy">&quot;config&quot;</span> <span>:</span> <span>{</span></div><div>
     <span style="color:navy">&quot;ttl&quot;</span> <span>:</span> <span style="color:rgb(0,153,153)">3600</span><span>,</span></div><div>     <span style="color:navy">&quot;content-available&quot;</span> <span>:</span> <span style="font-weight:bold">true</span><span>,</span></div>

<div>     <span style="color:navy">&quot;simple-push&quot;</span><span>:</span> <span style="color:rgb(221,17,68)">&quot;version=123&quot;</span></div><div>
  <span>},</span></div><div>  <span style="color:navy">&quot;criteria&quot;</span> <span>:</span> <span>{</span></div><div>
      <span style="color:navy">&quot;alias&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;<a href="mailto:user@account.com" target="_blank">user@account.com</a>&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;<a href="mailto:someone@aerogear.org" target="_blank">someone@aerogear.org</a>&quot;</span><span>,</span> <span style="color:rgb(166,23,23);background-color:rgb(227,210,210)">....</span><span>],</span></div>

<div>      <span style="color:navy">&quot;categories&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;someCategory&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;otherCategory&quot;</span><span>],</span></div>

<div>      <span style="color:navy">&quot;deviceType&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;iPad&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;AndroidTablet&quot;</span><span>],</span></div>

<div>      <span style="color:navy">&quot;variants&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;c3f0a94f-48de-4b77-a08e-68114460857e&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;444939cd-ae63-4ce1-96a4-de74b77e3737&quot;</span><span>]</span> </div>

<div>  <span>}</span></div><div>  <span>,</span></div><div>  <span style="color:navy">&quot;message&quot;</span><span>:</span> <span>{</span></div>
<div>    <span style="color:navy">&quot;alert&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;HELLO!&quot;</span><span>,</span></div>
<div>    <span style="color:navy">&quot;sound&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;default&quot;</span><span>,</span></div>
<div>    <span style="color:navy">&quot;badge&quot;</span><span>:</span><span style="color:rgb(0,153,153)">7</span><span>,</span></div><div>
    <span style="color:navy">&quot;someKey&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;some value&quot;</span><span>,</span></div><div>
    <span style="color:navy">&quot;anotherCustomKey&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;some other value&quot;</span></div><div>
  <span>},</span></div><div>  </div><div><span>}</span></div><div><span><br></span></div>
<div><span><span style="color:rgb(34,34,34);font-family:arial;font-size:small;line-height:normal;white-space:normal">wdyt ? </span><br></span></div><div></div></pre></div></div></div></blockquote><div><br></div><div>interesting idea - it looks better structured. </div>
<div><br></div><div>Regarding <span style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;line-height:12.800000190734863px;white-space:pre-wrap;color:navy">&quot;simple-push&quot;</span><span style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;line-height:12.800000190734863px;white-space:pre-wrap">:</span><span style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;line-height:12.800000190734863px;white-space:pre-wrap"> </span><span style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;line-height:12.800000190734863px;white-space:pre-wrap;color:rgb(221,17,68)">&quot;version=123&quot;</span>, I&#39;d vote this not to be part of the &#39;configuration&#39; section, it&#39;s the actual message/payload for SP</div>
<div> </div><div><br></div><div>-M</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
<div><div><pre style="line-height:12.800000190734863px;width:744px;font-size:12px;margin-bottom:0px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;margin-top:0px;padding:0px"><div>
<span><span style="color:rgb(34,34,34);font-family:arial;font-size:small;line-height:normal;white-space:normal"><br></span></span></div><div><span><span style="color:rgb(34,34,34);font-family:arial;font-size:small;line-height:normal;white-space:normal">Sebi</span></span></div>

<div><span><br></span></div><div><span>[1]</span><a href="http://aerogear.org/docs/specs/aerogear-push-messages/" target="_blank">http://aerogear.org/docs/specs/aerogear-push-messages/</a></div>
</pre></div></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>