define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    class ServiceTaskExtensions {
        constructor(extionsions) {
            this._module = null;
            this._method = null;
            this._namespace = null;
            this._parameter = null;
            this.parseExtensions(extionsions);
        }
        get module() {
            return this._module;
        }
        get method() {
            return this._method;
        }
        get namspace() {
            return this._namespace;
        }
        get parameter() {
            return this._parameter;
        }
        get isValid() {
            return (this._module != null && this._method != null);
        }
        parseExtensions(extensions) {
            if (extensions) {
                const props = (extensions && extensions.properties) ? extensions.properties : null;
                if (props) {
                    props.forEach((prop) => {
                        if (prop.name === 'module') {
                            this._module = prop.value;
                        }
                        if (prop.name === 'method') {
                            this._method = prop.value;
                        }
                        if (prop.name === 'params') {
                            this._parameter = prop.value;
                        }
                        if (prop.name === 'namespace') {
                            this._namespace = prop.value;
                        }
                    });
                }
            }
        }
    }
    exports.ServiceTaskExtensions = ServiceTaskExtensions;
});

//# sourceMappingURL=service_task_extensions.js.map
