UNPKG

@mos-connection/helper

Version:

Helper functions for the MOS-connection library

20 lines 783 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MosObjCreate = void 0; const MosMessage_1 = require("../MosMessage"); const XMLBuilder = require("xmlbuilder"); const xmlConversion_1 = require("../profile1/xmlConversion"); // https://mosprotocol.com/wp-content/MOS-Protocol-Documents/MOS-Protocol-2.8.4-Current.htm#mosObjCreate class MosObjCreate extends MosMessage_1.MosMessage { constructor(object, strict) { super('lower', strict); this.object = object; } get messageXMLBlocks() { const xml = XMLBuilder.create('mosObjCreate'); xmlConversion_1.XMLMosObject.toXML(xml, this.object, this.strict); return xml; } } exports.MosObjCreate = MosObjCreate; //# sourceMappingURL=mosObjCreate.js.map