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 GpioService = /** @class */ (function (_super) {
    __extends(GpioService, _super);
    function GpioService() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.resources = SERVICE_CALLS;
        return _this;
    }
    /**
     * Get GPIO variable mode
     *
     * LWM2M path: /1029/{variableId}/4
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return
     */
    GpioService.prototype.getGpioMode = function (
    /*
     * ID of the variable
     */
    variableId) {
        return this.serviceCallRunner.execute(this.getGpioModeCall(variableId));
    };
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/4
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return call options
     */
    GpioService.prototype.getGpioModeCall = function (
    /*
     * ID of the variable
     */
    variableId) {
        var callOptions = __assign({}, this.resources.getGpioMode);
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    };
    return GpioService;
}(AbstractService));
export { GpioService };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL3NlcnZpY2UvaW1wbC9ncGlvLyIsInNvdXJjZXMiOlsibGliL2dlbmVyYXRlZC9zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUlBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUdoRCxPQUFPLEVBQUUsZUFBZSxFQUFtQixNQUFNLGFBQWEsQ0FBQztBQUUvRDtJQUFpQywrQkFBZTtJQUFoRDtRQUFBLHFFQTRDQztRQTNDUSxlQUFTLEdBQUcsYUFBYSxDQUFDOztJQTJDbkMsQ0FBQztJQXpDQzs7Ozs7Ozs7T0FRRztJQUNILGlDQUFXLEdBQVg7SUFDRTs7T0FFRztJQUNILFVBQWtCO1FBRWxCLE9BQU8sSUFBSSxDQUFDLGlCQUFpQixDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsZUFBZSxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUM7SUFDMUUsQ0FBQztJQUVEOzs7Ozs7OztPQVFHO0lBQ0gscUNBQWUsR0FBZjtJQUNFOztPQUVHO0lBQ0gsVUFBa0I7UUFFbEIsSUFBTSxXQUFXLGdCQUFRLElBQUksQ0FBQyxTQUFTLENBQUMsV0FBVyxDQUFFLENBQUM7UUFFdEQsV0FBVyxDQUFDLGNBQWMsR0FBRztZQUMzQixVQUFVLEVBQUUsVUFBVTtTQUN2QixDQUFDO1FBRUYsT0FBTyxXQUFXLENBQUM7SUFDckIsQ0FBQztJQUNILGtCQUFDO0FBQUQsQ0FBQyxBQTVDRCxDQUFpQyxlQUFlLEdBNEMvQyJ9