Files
homebridge-harmony-control/src/Models/IDevice.ts
2020-01-01 23:29:44 -05:00

14 lines
315 B
TypeScript

export interface ICommand {
command?: string,
deviceId?: string,
type?: string
}
export interface IDevice {
id: string,
name: string,
supportsCommand(commandName: string): boolean,
getCommand(commandName: string): ICommand,
commands: { [name: string]: ICommand };
on: boolean;
}