finshed device endpoint

This commit is contained in:
faris Aljohari
2024-03-13 13:57:04 +03:00
parent 5f18d1f4d5
commit 1bd30ebb33
8 changed files with 343 additions and 184 deletions
+26 -7
View File
@@ -1,25 +1,44 @@
export class GetDeviceDetailsInterface {
result: {
id: string;
name: string;
};
result: object;
success: boolean;
msg: string;
}
export class GetDevicesInterface {
export class GetDevicesByRoomIdInterface {
success: boolean;
msg: string;
result: [];
}
export class addDeviceInterface {
export class GetDevicesByGroupIdInterface {
success: boolean;
msg: string;
result: {
id: string;
count: number;
data_list: [];
};
}
export class addDeviceInRoomInterface {
success: boolean;
msg: string;
result: boolean;
}
export class controlDeviceInterface {
success: boolean;
result: boolean;
msg: string;
}
export class GetDeviceDetailsFunctionsInterface {
result: {
category: string;
functions: [];
};
success: boolean;
msg: string;
}
export class GetDeviceDetailsFunctionsStatusInterface {
result: [{ id: string; status: [] }];
success: boolean;
msg: string;
}