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 LoraService = /** @class */ (function (_super) {
    __extends(LoraService, _super);
    function LoraService() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.resources = SERVICE_CALLS;
        return _this;
    }
    /**
     * Get LoRa IDs
     *
     * LWM2M path: /1024//90
     *
     * @tapVersion(">=")
     * @return
     */
    LoraService.prototype.getIds = function () {
        return this.serviceCallRunner.execute(this.getIdsCall());
    };
    /**
     *
     *
     * LWM2M path: /1024//90
     *
     * @tapVersion(">=")
     * @return call options
     */
    LoraService.prototype.getIdsCall = function () {
        var callOptions = __assign({}, this.resources.getIds);
        return callOptions;
    };
    /**
     * Write LoRa IDs
     *
     * LWM2M path: /1024//90
     *
     * @tapVersion(">=")
     * @param value input
     * @return
     */
    LoraService.prototype.putIds = function (
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putIdsCall(value));
    };
    /**
     *
     *
     * LWM2M path: /1024//90
     *
     * @tapVersion(">=")
     * @param value input
     * @return call options
     */
    LoraService.prototype.putIdsCall = function (
    /*
     *
     */
    value) {
        var callOptions = __assign({}, this.resources.putIds);
        callOptions.body = value;
        return callOptions;
    };
    /**
     * Get LoRa configuration
     *
     * LWM2M path: /1024//91
     *
     * @tapVersion(">=")
     * @return
     */
    LoraService.prototype.getConfig = function () {
        return this.serviceCallRunner.execute(this.getConfigCall());
    };
    /**
     *
     *
     * LWM2M path: /1024//91
     *
     * @tapVersion(">=")
     * @return call options
     */
    LoraService.prototype.getConfigCall = function () {
        var callOptions = __assign({}, this.resources.getConfig);
        return callOptions;
    };
    /**
     * Write LoRa configuration
     *
     * LWM2M path: /1024//91
     *
     * @tapVersion(">=")
     * @param value input
     * @return
     */
    LoraService.prototype.putConfig = function (
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putConfigCall(value));
    };
    /**
     *
     *
     * LWM2M path: /1024//91
     *
     * @tapVersion(">=")
     * @param value input
     * @return call options
     */
    LoraService.prototype.putConfigCall = function (
    /*
     *
     */
    value) {
        var callOptions = __assign({}, this.resources.putConfig);
        callOptions.body = value;
        return callOptions;
    };
    return LoraService;
}(AbstractService));
export { LoraService };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL3NlcnZpY2UvaW1wbC9sb3JhLyIsInNvdXJjZXMiOlsibGliL2dlbmVyYXRlZC9zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUlBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUdoRCxPQUFPLEVBQUUsZUFBZSxFQUFtQixNQUFNLGFBQWEsQ0FBQztBQUUvRDtJQUFpQywrQkFBZTtJQUFoRDtRQUFBLHFFQXNJQztRQXJJUSxlQUFTLEdBQUcsYUFBYSxDQUFDOztJQXFJbkMsQ0FBQztJQW5JQzs7Ozs7OztPQU9HO0lBQ0gsNEJBQU0sR0FBTjtRQUNFLE9BQU8sSUFBSSxDQUFDLGlCQUFpQixDQUFDLE9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