<div dir="ltr">variant type?<div><br></div><div>we have two different type for Windows (WP8 / 10) - use different push (yes...)</div><div><br></div><div><a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/model/api/src/main/java/org/jboss/aerogear/unifiedpush/api/VariantType.java#L41-L49">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/model/api/src/main/java/org/jboss/aerogear/unifiedpush/api/VariantType.java#L41-L49</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 13, 2016 at 3:10 PM, Luke Holmquist <span dir="ltr">&lt;<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@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 dir="ltr"><div>Currently using what is in master.<br><br><br></div><div>I&#39;ve started to implement the GETing of variants for the node admin client i posted earlier about and i think i might have run into a bug when trying to get the Windows Variants.<br><br></div><div>here is a gist of what my current applications/variants looks like as JSON: <a href="https://gist.github.com/lholmquist/44134f825373a5bce99624ac3d82c234" target="_blank">https://gist.github.com/lholmquist/44134f825373a5bce99624ac3d82c234</a><br><br></div><div>you will see i have 2 variants, one android and the other is a windows_wns type.<br><br></div><div>using the endpoint &quot;<a href="http://locationofmyups/rest/applications/%7BPUSHAPPID%7D/%7BTYPE%7D" target="_blank">http://locationofmyups/rest/applications/{PUSHAPPID}/{TYPE}</a>&quot; for android, i get what i&#39;m expecting,  but when i do the windows one, dont get anything returned<br><br></div><div>i&#39;m actually running my ups locally, so i&#39;m able to set a break point, and it does break in the windows GET code here <a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/WindowsVariantEndpoint.java#L95" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/WindowsVariantEndpoint.java#L95</a><br><br></div><div>stepping through the getVariantsByType function, <a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/AbstractVariantEndpoint.java#L135" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/AbstractVariantEndpoint.java#L135</a><br><br></div><div>i noticed that the &quot;type&quot; variable here is of &quot;class org.jboss.aerogear.unifiedpush.api.WindowsVariant&quot;<br><br></div><div>and the variant.getClass() is actually org.jboss.aerogear.unifiedpush.api.WindowsWNSVariant<br><br></div><div>which is making the comparison fail and not return anything.  <br><br></div><div>So is this a bug,  or do i need to pass something else in to make this work,  <br><br><br></div><div>note:  i&#39;ve created all the applications and variants from the admin UI screens<br></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" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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>