import type { ConnectionKey } from '../models/ConnectionKey'; import type { ErrorResponse } from '../models/ErrorResponse'; import type { PositionAbsoluteResponse } from '../models/PositionAbsoluteResponse'; import type { SlideResponse } from '../models/SlideResponse'; import type { SlideSettings } from '../models/SlideSettings'; import type { SlideUpdateResponse } from '../models/SlideUpdateResponse'; import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class SlideService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Get the slide settings. * Get the slide min and max position. * @param xConnectionKey Device connection key or a channel reference. * @returns any Slider values. * @throws ApiError */ getSlide(xConnectionKey: string): CancelablePromise<(ErrorResponse | SlideResponse)>; /** * Set slide settings. * Set the slide min and max position.
The slide min and max position decides the range of the movement of the slide.
Examples:
You can update min and max individually or set both values.
The fixed flag can be set to move the current min-max-range relative to a new min or max value. By setting fixed=true, the current min-max-range will be shifted relative to the new value.
When updating the slide values, the device will adjust the provided values if the provided values are not legal. Typical situations where this might occur:
If an adjustment was needed, it will be reflected in the response result code. See SlideResult schema for details.
* @param xConnectionKey Device connection key or a channel reference. * @param requestBody * @returns any SlideSettings * @throws ApiError */ setSlide(xConnectionKey: string, requestBody: SlideSettings): CancelablePromise<(ErrorResponse | SlideUpdateResponse)>; /** * Get the current slide position * Get the current slide position in millimeter (mm). * @param xConnectionKey Device connection key. * @returns any Current absolute position * @throws ApiError */ getPositionAbs(xConnectionKey: ConnectionKey): CancelablePromise<(ErrorResponse | PositionAbsoluteResponse)>; }