Refactor device interfaces to use interfaces instead of classes

This commit is contained in:
faris Aljohari
2024-03-25 14:36:11 +03:00
parent a289b1645c
commit 6c02f60f28
@@ -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;