<br><br>On Monday, February 10, 2014, Sebastien Blanc <<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 2:23 PM, Lucas Holmquist <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','lholmqui@redhat.com');" target="_blank">lholmqui@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 style="word-wrap:break-word">here is the current format for comparison<div><br></div><div><a href="https://gist.github.com/lholmquist/8915817" target="_blank">https://gist.github.com/lholmquist/8915817</a></div>
<div><br></div><div>+1 to being more structured.</div><div><br></div><div>one thing though, in the current format, simplePush is not part of the message, but it's own thing</div></div></blockquote><div>Yeah, that's why I put it in the config section in my first version but Matzew suggested it was more part of the message payload </div>
</div></div></div></blockquote><div><br></div><div><br></div><div>Nope to<span></span> config; should stay its own, does not (IMO) make sense to include in tve message for richer platforms like Android/iOS</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><br><div><div>On Feb 9, 2014, at 9:06 AM, Sebastien Blanc <<a>scm.blanc@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr"><br><div><br><br><div>On Sun, Feb 9, 2014 at 2:14 PM, Matthias Wessendorf <span dir="ltr"><<a>matzew@apache.org</a>></span> wrote:<br>
<blockquote 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"><br><div><br><br><div>
<div><div>On Sun, Feb 9, 2014 at 12:06 PM, Sebastien Blanc <span dir="ltr"><<a>scm.blanc@gmail.com</a>></span> wrote:<br>
<blockquote 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,'Liberation Mono',Courier,monospace;margin-top:0px;padding:0px"><div>
<span>{</span></div><div> <span style="color:navy">"config"</span> <span>:</span> <span>{</span></div><div>
<span style="color:navy">"ttl"</span> <span>:</span> <span style="color:rgb(0,153,153)">3600</span><span>,</span></div><div> <span style="color:navy">"content-available"</span> <span>:</span> <span style="font-weight:bold">true</span><span>,</span></div>
<div> <span style="color:navy">"simple-push"</span><span>:</span> <span style="color:rgb(221,17,68)">"version=123"</span></div><div>
<span>},</span></div><div> <span style="color:navy">"criteria"</span> <span>:</span> <span>{</span></div><div>
<span style="color:navy">"alias"</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">"<a>user@account.com</a>"</span><span>,</span> <span style="color:rgb(221,17,68)">"<a>someone@aerogear.org</a>"</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">"categories"</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">"someCategory"</span><span>,</span> <span style="color:rgb(221,17,68)">"otherCategory"</span><span>],</span></div>
<div> <span style="color:navy">"deviceType"</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">"iPad"</span><span>,</span> <span style="color:rgb(221,17,68)">"AndroidTablet"</span><span>],</span></div>
<div> <span style="color:navy">"variants"</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">"c3f0a94f-48de-4b77-a08e-68114460857e"</span><span>,</span> <span style="color:rgb(221,17,68)">"444939cd-ae63-4ce1-96a4-de74b77e3737"</span><span>]</span> </div>
<div> <span>}</span></div><div> <span>,</span></div><div> <span style="color:navy">"message"</span><span>:</span> <span>{</span></div>
<div> <span style="color:navy">"alert"</span><span>:</span><span style="color:rgb(221,17,68)">"HELLO!"</span><span>,</span></div>
<div> <span style="color:navy">"sound"</span><span>:</span><span style="color:rgb(221,17,68)">"default"</span><span>,</span></div>
<div> <span style="color:navy">"badge"</span><span>:</span><span style="color:rgb(0,153,153)">7</span><span>,</span></div><div>
<span style="color:navy">"someKey"</span><span>:</span><span style="color:rgb(221,17,68)">"some value"</span><span>,</span></div><div>
<span style="color:navy">"anotherCustomKey"</span><span>:</span><span style="color:rgb(221,17,68)">"some other value"</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></div>
<div>interesting idea - it looks better structured. </div>
<div><br></div><div>Re</div></div></div></div></blockquote></div></div></div></blockquote></div></div></div></div></div></blockquote></div><br></div></div>
</blockquote><br><br>-- <br>Sent from Gmail Mobile<br>