import { SERVICE_CALLS } from './service-calls';
import { AbstractService } from '@iotize/tap';
export class GpioService extends AbstractService {
    constructor() {
        super(...arguments);
        this.resources = SERVICE_CALLS;
    }
    /**
     * Get GPIO variable mode
     *
     * LWM2M path: /1029/{variableId}/4
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return
     */
    getGpioMode(
    /*
     * ID of the variable
     */
    variableId) {
        return this.serviceCallRunner.execute(this.getGpioModeCall(variableId));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/4
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return call options
     */
    getGpioModeCall(
    /*
     * ID of the variable
     */
    variableId) {
        const callOptions = Object.assign({}, this.resources.getGpioMode);
        callOptions.pathParameters = {
            variableId: variableId,
        };
        return callOptions;
    }
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NlcnZpY2UvaW1wbC9ncGlvL3NyYy9saWIvZ2VuZXJhdGVkL3NlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBR2hELE9BQU8sRUFBRSxlQUFlLEVBQW1CLE1BQU0sYUFBYSxDQUFDO0FBRS9ELE1BQU0sT0FBTyxXQUFZLFNBQVEsZUFBZTtJQUFoRDs7UUFDUyxjQUFTLEdBQUcsYUFBYSxDQUFDO0lBMkNuQyxDQUFDO0lBekNDOzs7Ozs7OztPQVFHO0lBQ0gsV0FBVztJQUNUOztPQUVHO0lBQ0gsVUFBa0I7UUFFbEIsT0FBTyxJQUFJLENBQUMsaUJBQWlCLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxlQUFlLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQztJQUMxRSxDQUFDO0lBRUQ7Ozs7Ozs7O09BUUc7SUFDSCxlQUFlO0lBQ2I7O09BRUc7SUFDSCxVQUFrQjtRQUVsQixNQUFNLFdBQVcscUJBQVEsSUFBSSxDQUFDLFNBQVMsQ0FBQyxXQUFXLENBQUUsQ0FBQztRQUV0RCxXQUFXLENBQUMsY0FBYyxHQUFHO1lBQzNCLFVBQVUsRUFBRSxVQUFVO1NBQ3ZCLENBQUM7UUFFRixPQUFPLFdBQVcsQ0FBQztJQUNyQixDQUFDO0NBQ0YifQ==