Skip to content

Commit 46af606

Browse files
authored
Merge pull request #101 from itd0/itd0/unified-push
Add Unified Push support (via Conversations/up)
2 parents f7f8d03 + 7d19bad commit 46af606

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

specs/xmpp_codec.spec

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,45 @@
452452
dec = {xmpp_lang, check, []},
453453
label = '$lang'}]}).
454454

455+
-xml(unified_push_register,
456+
#elem{name = <<"register">>,
457+
xmlns = <<"http://gultsch.de/xmpp/drafts/unified-push">>,
458+
module = unifiedpush,
459+
result = {unified_push_register, '$application', '$instance'},
460+
attrs = [#attr{name = <<"application">>,
461+
required = true,
462+
label = '$application'},
463+
#attr{name = <<"instance">>,
464+
required = true,
465+
label = '$instance'}]}).
466+
467+
-xml(unified_push_registered,
468+
#elem{name = <<"registered">>,
469+
xmlns = <<"http://gultsch.de/xmpp/drafts/unified-push">>,
470+
module = unifiedpush,
471+
result = {unified_push_registered, '$expiration', '$endpoint'},
472+
attrs = [#attr{name = <<"expiration">>,
473+
required = true,
474+
label = '$expiration',
475+
dec = {dec_utc, []},
476+
enc = {enc_utc, []}},
477+
#attr{name = <<"endpoint">>,
478+
required = true,
479+
label = '$endpoint'}]}).
480+
481+
-xml(unified_push_push,
482+
#elem{name = <<"push">>,
483+
xmlns = <<"http://gultsch.de/xmpp/drafts/unified-push">>,
484+
module = unifiedpush,
485+
result = {unified_push_push, '$application', '$instance', '$data'},
486+
cdata = #cdata{label = '$data'},
487+
attrs = [#attr{name = <<"application">>,
488+
required = true,
489+
label = '$application'},
490+
#attr{name = <<"instance">>,
491+
required = true,
492+
label = '$instance'}]}).
493+
455494
-xml(message_subject,
456495
#elem{name = <<"subject">>,
457496
xmlns = [<<"jabber:client">>, <<"jabber:server">>,

0 commit comments

Comments
 (0)