"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var http_1 = require("./http");
var singleton = Symbol();
var singletonEnforcer = Symbol();
var HttpService = /** @class */ (function (_super) {
    __extends(HttpService, _super);
    function HttpService(enforcer) {
        var _this = _super.call(this) || this;
        if (enforcer !== singletonEnforcer) {
            throw new Error('Cannot construct singleton');
        }
        _this._type = 'HttpService';
        return _this;
    }
    Object.defineProperty(HttpService, "instance", {
        get: function () {
            if (!this[singleton]) {
                this[singleton] = new HttpService(singletonEnforcer);
            }
            return this[singleton];
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(HttpService.prototype, "type", {
        get: function () {
            return this._type;
        },
        set: function (value) {
            this._type = value;
        },
        enumerable: true,
        configurable: true
    });
    return HttpService;
}(http_1.Http));
exports.HttpService = HttpService;
//# sourceMappingURL=http-service.js.map