nubli
Version:
Nuki Bluetooth Library
20 lines (19 loc) • 761 B
TypeScript
/// <reference types="node" />
import { SmartLockResponse } from "../smartLockResponse";
import { NukiConfig } from "../nukiConfig";
export declare abstract class SmartLockCommand {
private _challenge;
protected _callback?: (response: SmartLockResponse) => void;
protected _response: SmartLockResponse;
protected _complete: boolean;
abstract readonly requiresChallenge: boolean;
abstract requestData(config: NukiConfig): Buffer;
abstract handleData(command: number, payload: Buffer): void;
constructor();
challenge: Buffer;
readonly complete: boolean;
readonly response: SmartLockResponse;
callback: (response: SmartLockResponse) => void;
sendResponse(): void;
sendFailure(errorMessage?: string): void;
}