From 6c02f60f287dc290b62179171a1557e0b4743562 Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Mon, 25 Mar 2024 14:36:11 +0300 Subject: [PATCH] Refactor device interfaces to use interfaces instead of classes --- src/device/interfaces/get.device.interface.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/device/interfaces/get.device.interface.ts b/src/device/interfaces/get.device.interface.ts index d7c856b..30f57f8 100644 --- a/src/device/interfaces/get.device.interface.ts +++ b/src/device/interfaces/get.device.interface.ts @@ -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;