mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-23 09:57:55 +00:00
Refactor device interfaces to use interfaces instead of classes
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
export class GetDeviceDetailsInterface {
|
||||
export interface GetDeviceDetailsInterface {
|
||||
result: {
|
||||
productId: string;
|
||||
};
|
||||
success: boolean;
|
||||
msg: string;
|
||||
}
|
||||
export class GetDevicesByRoomIdInterface {
|
||||
export interface GetDevicesByRoomIdInterface {
|
||||
success: boolean;
|
||||
msg: string;
|
||||
result: [];
|
||||
}
|
||||
|
||||
export class GetDevicesByGroupIdInterface {
|
||||
export interface GetDevicesByGroupIdInterface {
|
||||
success: boolean;
|
||||
msg: string;
|
||||
result: {
|
||||
@@ -20,18 +20,18 @@ export class GetDevicesByGroupIdInterface {
|
||||
};
|
||||
}
|
||||
|
||||
export class addDeviceInRoomInterface {
|
||||
export interface addDeviceInRoomInterface {
|
||||
success: boolean;
|
||||
msg: string;
|
||||
result: boolean;
|
||||
}
|
||||
|
||||
export class controlDeviceInterface {
|
||||
export interface controlDeviceInterface {
|
||||
success: boolean;
|
||||
result: boolean;
|
||||
msg: string;
|
||||
}
|
||||
export class GetDeviceDetailsFunctionsInterface {
|
||||
export interface GetDeviceDetailsFunctionsInterface {
|
||||
result: {
|
||||
category: string;
|
||||
functions: [];
|
||||
@@ -39,7 +39,7 @@ export class GetDeviceDetailsFunctionsInterface {
|
||||
success: boolean;
|
||||
msg: string;
|
||||
}
|
||||
export class GetDeviceDetailsFunctionsStatusInterface {
|
||||
export interface GetDeviceDetailsFunctionsStatusInterface {
|
||||
result: [{ id: string; status: [] }];
|
||||
success: boolean;
|
||||
msg: string;
|
||||
|
||||
Reference in New Issue
Block a user