text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  var GetNumbers_1 = require("./Apis/GetNumbers");
  var GetRent_1 = require("./Apis/GetRent");
  var GetProxy_1 = require("./Apis/GetProxy");
  var GetUser_1 = require("./Apis/GetUser");
  var GetFree_1 = require("./Apis/GetFree");
  var GetForward_1 = require("./Apis/GetForward");
  var OnlineSimDriver = (function () {
      function OnlineSimDriver(apiToken, lang, dev_id) {
          if (apiToken === void 0) { apiToken = null; }
          if (lang === void 0) { lang = 'en'; }
          if (dev_id === void 0) { dev_id = null; }
          this.oauth = null;
          this.base = 'https://onlinesim.ru/api/';
          this.token = apiToken;
          this.dev_id = dev_id;
          this.lang = lang;
      }
      OnlineSimDriver.prototype.setBase = function (base) {
          if (base === void 0) { base = 'https://onlinesim.ru/api/'; }
          this.base = base;
          return this;
      };
      OnlineSimDriver.prototype.setOauth = function (token) {
          this.oauth = token;
          return this;
      };
      OnlineSimDriver.prototype.numbers = function () {
          return (new GetNumbers_1.default(this.token, this.lang, this.dev_id)).createRequest(this.oauth, this.base);
      };
      OnlineSimDriver.prototype.rent = function () {
          return (new GetRent_1.default(this.token, this.lang, this.dev_id)).createRequest(this.oauth, this.base);
      };
      OnlineSimDriver.prototype.proxy = function () {
          return (new GetProxy_1.default(this.token, this.lang, this.dev_id)).createRequest(this.oauth, this.base);
      };
      OnlineSimDriver.prototype.user = function () {
          return (new GetUser_1.default(this.token, this.lang, this.dev_id)).createRequest(this.oauth, this.base);
      };
      OnlineSimDriver.prototype.free = function () {
          return (new GetFree_1.default(this.token, this.lang, this.dev_id)).createRequest(this.oauth, this.base);
      };
      OnlineSimDriver.prototype.forward = function () {
          return (new GetForward_1.default(this.token, this.lang, this.dev_id)).createRequest(this.oauth, this.base);
      };
      return OnlineSimDriver;
  }());
  exports.default = OnlineSimDriver;
  try {
      window.OnlineSimDriver = OnlineSimDriver;
  }
  catch (err) { }
  //# sourceMappingURL=index.js.map