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="proxy/AdProxy.ts" />
/// <reference path="Request.ts" />
var econda;
(function (econda) {
var recengine;
(function (recengine) {
/**
* Class to get recommendations to be used in offsite ads.
* @class econda.recengine.AdRequest
* @extends econda.recengine.Request
*/
var AdRequest = (function (_super) {
__extends(AdRequest, _super);
function AdRequest(cfg) {
if (cfg === void 0) { cfg = null; }
_super.call(this);
if (cfg instanceof AdRequest) {
return cfg;
}
this.setType(recengine.Request.TYPE_AD_REQUEST);
this.setDefaultContextEnabled(false);
this.initConfig(cfg);
this.setProxy(new econda.recengine.proxy.AdProxy());
}
return AdRequest;
}(recengine.Request));
recengine.AdRequest = AdRequest;
})(recengine = econda.recengine || (econda.recengine = {}));
})(econda || (econda = {}));