ttlock-sdk-js
Version:
JavaScript port of the TTLock Android SDK
18 lines (17 loc) • 574 B
TypeScript
/// <reference types="node" />
import { CommandType } from "../../constant/CommandType";
import { Command } from "../Command";
import { UnlockDataInterface } from "./UnlockCommand";
export declare class LockCommand extends Command {
static COMMAND_TYPE: CommandType;
private sum?;
private uid?;
private uniqueid?;
private dateTime?;
private batteryCapacity?;
protected processData(): void;
build(): Buffer;
setSum(psFromLock: number, unlockKey: number): void;
getUnlockData(): UnlockDataInterface;
getBatteryCapacity(): number;
}