@mos-connection/helper
Version:
Helper functions for the MOS-connection library
27 lines • 851 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ROList = void 0;
const XMLBuilder = require("xmlbuilder");
const MosMessage_1 = require("../MosMessage");
const xmlConversion_1 = require("./xmlConversion");
class ROList extends MosMessage_1.MosMessage {
/** */
constructor(ro, strict) {
super('upper', strict);
this.ro = ro;
}
/** */
get messageXMLBlocks() {
const root = XMLBuilder.create('roList');
this.fillXMLWithROData(root);
return root;
}
fillXMLWithROData(root) {
xmlConversion_1.XMLRunningOrderBase.toXML(root, this.ro, this.strict);
this.ro.Stories.forEach((story) => {
xmlConversion_1.XMLROStory.toXML(root, story, this.strict);
});
}
}
exports.ROList = ROList;
//# sourceMappingURL=ROList.js.map