UNPKG

@mos-connection/helper

Version:

Helper functions for the MOS-connection library

21 lines 686 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ReqMosObj = void 0; const XMLBuilder = require("xmlbuilder"); const MosMessage_1 = require("../MosMessage"); const Utils_1 = require("../../utils/Utils"); class ReqMosObj extends MosMessage_1.MosMessage { /** */ constructor(objId, strict) { super('lower', strict); this.objId = objId; } /** */ get messageXMLBlocks() { const root = XMLBuilder.create('mosReqObj'); (0, Utils_1.addTextElementInternal)(root, 'objID', this.objId, undefined, this.strict); return root; } } exports.ReqMosObj = ReqMosObj; //# sourceMappingURL=reqMosObj.js.map