@mos-connection/helper
Version:
Helper functions for the MOS-connection library
26 lines • 832 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ROListAll = void 0;
const XMLBuilder = require("xmlbuilder");
const MosMessage_1 = require("../MosMessage");
const xmlConversion_1 = require("./xmlConversion");
class ROListAll extends MosMessage_1.MosMessage {
/** */
constructor(list, strict) {
super('upper', strict);
this.ROs = [];
this.ROs = list;
}
/** */
get messageXMLBlocks() {
const root = XMLBuilder.create('roListAll');
this.ROs.forEach((RO) => {
const xmlRO = XMLBuilder.create('ro');
xmlConversion_1.XMLRunningOrderBase.toXML(xmlRO, RO, this.strict);
root.importDocument(xmlRO);
});
return root;
}
}
exports.ROListAll = ROListAll;
//# sourceMappingURL=ROListAll.js.map