var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
///<reference path="../../base/BaseClass.ts" />
var econda;
(function (econda) {
    var recengine;
    (function (recengine) {
        var response;
        (function (response) {
            /**
             * Tracking parameter values as configured in cross sell ui
             * @class econda.recengine.response.Tracking
             */
            var Tracking = (function (_super) {
                __extends(Tracking, _super);
                function Tracking(cfg) {
                    if (cfg === void 0) { cfg = null; }
                    _super.call(this);
                    /**
                     * True if "add performance tracking checkbox" is checked in cross sell user interface
                     * @cfg {Boolean} emcs
                     * @accessor
                     */
                    this.emcs = null;
                    /**
                     * Widget name if configured in cross sell ui
                     * @cfg {String} emcs0
                     * @accessor
                     */
                    this.emcs0 = null;
                    /**
                     * Widget position if configured in cross sell ui
                     * @cfg {String} emcs1
                     * @accessor
                     */
                    this.emcs1 = null;
                    if (cfg instanceof Tracking) {
                        return cfg;
                    }
                    if (cfg) {
                        this.initConfig(cfg);
                    }
                }
                Tracking.prototype.setEmcs = function (enabled) {
                    this.emcs = enabled;
                    return this;
                };
                Tracking.prototype.getEmcs = function () {
                    return this.emcs;
                };
                Tracking.prototype.getEmcs0 = function () {
                    return this.emcs0;
                };
                Tracking.prototype.setEmcs0 = function (name) {
                    this.emcs0 = name;
                    return this;
                };
                Tracking.prototype.getEmcs1 = function () {
                    return this.emcs1;
                };
                Tracking.prototype.setEmcs1 = function (position) {
                    this.emcs1 = position;
                    return this;
                };
                return Tracking;
            }(econda.base.BaseClass));
            response.Tracking = Tracking;
        })(response = recengine.response || (recengine.response = {}));
    })(recengine = econda.recengine || (econda.recengine = {}));
})(econda || (econda = {})); // end of module