UNPKG

@vlad8096/stanza

Version:

Modern XMPP in the browser, with a JSON API

33 lines (32 loc) 1.15 kB
"use strict"; // ==================================================================== // XEP-0108: User Tune // -------------------------------------------------------------------- // Source: https://xmpp.org/extensions/xep-0118.html // Version: 1.2 (2008-01-30) // ==================================================================== Object.defineProperty(exports, "__esModule", { value: true }); const jxt_1 = require("../jxt"); const Namespaces_1 = require("../Namespaces"); const Protocol = { aliases: [ { impliedType: true, path: 'tune' }, ...jxt_1.pubsubItemContentAliases() ], element: 'tune', fields: { artist: jxt_1.childText(null, 'artist'), length: jxt_1.childInteger(null, 'length'), rating: jxt_1.childInteger(null, 'rating'), source: jxt_1.childText(null, 'source'), title: jxt_1.childText(null, 'title'), track: jxt_1.childText(null, 'track'), uri: jxt_1.childText(null, 'uri') }, namespace: Namespaces_1.NS_TUNE, type: Namespaces_1.NS_TUNE }; exports.default = Protocol;