You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
498 B
25 lines
498 B
7 years ago
|
export interface IDeviceUpdate {
|
||
|
type: "deviceUpdate";
|
||
|
name: string;
|
||
|
data: any;
|
||
|
}
|
||
|
|
||
|
export interface IDeviceCallResponse {
|
||
|
type: "deviceCallResponse";
|
||
|
id: number;
|
||
|
result: "success" | "error";
|
||
|
data: any;
|
||
|
}
|
||
|
|
||
|
export type IServerMessage = IDeviceUpdate | IDeviceCallResponse;
|
||
|
|
||
|
export interface IDeviceCallRequest {
|
||
|
type: "deviceCallRequest";
|
||
|
id: number;
|
||
|
deviceName: string;
|
||
|
method: string;
|
||
|
args: any[];
|
||
|
}
|
||
|
|
||
|
export type IClientMessage = IDeviceCallRequest;
|