UNPKG

@mos-connection/helper

Version:

Helper functions for the MOS-connection library

25 lines 838 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MosListAll = void 0; const MosMessage_1 = require("../MosMessage"); const XMLBuilder = require("xmlbuilder"); const xmlConversion_1 = require("../profile1/xmlConversion"); class MosListAll extends MosMessage_1.MosMessage { /** */ constructor(objs, strict) { super('lower', strict); this.objs = objs; } /** */ get messageXMLBlocks() { const root = XMLBuilder.create('mosListAll'); this.objs.forEach((obj) => { const xmlMosObj = XMLBuilder.create('mosObj'); xmlConversion_1.XMLMosObject.toXML(xmlMosObj, obj, this.strict); root.importDocument(xmlMosObj); }); return root; } } exports.MosListAll = MosListAll; //# sourceMappingURL=mosListAll.js.map