zigbee-herdsman
Version:
An open source ZigBee gateway solution with node.js.
24 lines • 1 kB
TypeScript
/// <reference types="node" />
import ZiGateFrame from './frame';
import { ZiGateCommandCode, ZiGateMessageCode, ZiGateObjectPayload } from "./constants";
import { ZiGateCommandType } from "./commandType";
type ZiGateCode = ZiGateCommandCode | ZiGateMessageCode;
declare class ZiGateObject {
private readonly _code;
private readonly _payload;
private readonly _parameters;
private readonly _frame;
private constructor();
get code(): ZiGateCode;
get frame(): ZiGateFrame;
get payload(): ZiGateObjectPayload;
get command(): ZiGateCommandType;
static createRequest(commandCode: ZiGateCommandCode, payload: ZiGateObjectPayload): ZiGateObject;
static fromZiGateFrame(frame: ZiGateFrame): ZiGateObject;
static fromBufer(code: number, buffer: Buffer, frame?: ZiGateFrame): ZiGateObject;
private static readParameters;
toZiGateFrame(): ZiGateFrame;
private createPayloadBuffer;
}
export default ZiGateObject;
//# sourceMappingURL=ziGateObject.d.ts.map