|
452 | 452 | dec = {xmpp_lang, check, []},
|
453 | 453 | label = '$lang'}]}).
|
454 | 454 |
|
| 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 | + |
455 | 494 | -xml(message_subject,
|
456 | 495 | #elem{name = <<"subject">>,
|
457 | 496 | xmlns = [<<"jabber:client">>, <<"jabber:server">>,
|
|
0 commit comments