var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        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 extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { SERVICE_CALLS } from "./service-calls";
import { AbstractService } from "@iotize/tap";
var BleService = /** @class */ (function (_super) {
    __extends(BleService, _super);
    function BleService() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.resources = SERVICE_CALLS;
        return _this;
    }
    /**
     * Get BLE MAC address
     *
     * LWM2M path: /1024//22
     *
     * @tapVersion(">=")
     * @return
     */
    BleService.prototype.getAddress = function () {
        return this.serviceCallRunner.execute(this.getAddressCall());
    };
    /**
     *
     *
     * LWM2M path: /1024//22
     *
     * @tapVersion(">=")
     * @return call options
     */
    BleService.prototype.getAddressCall = function () {
        var callOptions = __assign({}, this.resources.getAddress);
        return callOptions;
    };
    return BleService;
}(AbstractService));
export { BleService };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL3NlcnZpY2UvaW1wbC9ibGUvIiwic291cmNlcyI6WyJsaWIvZ2VuZXJhdGVkL3NlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBSUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRWhELE9BQU8sRUFBRSxlQUFlLEVBQW1CLE1BQU0sYUFBYSxDQUFDO0FBRS9EO0lBQWdDLDhCQUFlO0lBQS9DO1FBQUEscUVBNEJDO1FBM0JRLGVBQVMsR0FBRyxhQUFhLENBQUM7O0lBMkJuQyxDQUFDO0lBekJDOzs7Ozs7O09BT0c7SUFDSCwrQkFBVSxHQUFWO1FBQ0UsT0FBTyxJQUFJLENBQUMsaUJBQWlCLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxjQUFjLEVBQUUsQ0FBQyxDQUFDO0lBQy9ELENBQUM7SUFFRDs7Ozs7OztPQU9HO0lBQ0gsbUNBQWMsR0FBZDtRQUNFLElBQU0sV0FBVyxnQkFBUSxJQUFJLENBQUMsU0FBUyxDQUFDLFVBQVUsQ0FBRSxDQUFDO1FBRXJELE9BQU8sV0FBVyxDQUFDO0lBQ3JCLENBQUM7SUFDSCxpQkFBQztBQUFELENBQUMsQUE1QkQsQ0FBZ0MsZUFBZSxHQTRCOUMifQ==