Added device emit option for debugging purposes
This commit is contained in:
14
src/Models/IDevice.ts
Normal file
14
src/Models/IDevice.ts
Normal file
@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user