From ca86e07981d722f373b302b2a5565d8a1d21bf6f Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Mon, 25 Mar 2024 14:27:31 +0300 Subject: [PATCH] Update GetDeviceDetailsInterface and add new interfaces --- src/device/interfaces/get.device.interface.ts | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/device/interfaces/get.device.interface.ts b/src/device/interfaces/get.device.interface.ts index e6f1361..d7c856b 100644 --- a/src/device/interfaces/get.device.interface.ts +++ b/src/device/interfaces/get.device.interface.ts @@ -1,5 +1,7 @@ export class GetDeviceDetailsInterface { - result: object; + result: { + productId: string; + }; success: boolean; msg: string; } @@ -42,3 +44,21 @@ export class GetDeviceDetailsFunctionsStatusInterface { success: boolean; msg: string; } +export interface GetProductInterface { + productType: string; + productId: string; +} + +export interface DeviceInstructionResponse { + success: boolean; + result: { + productId: string; + productType: string; + functions: { + code: string; + values: any[]; + dataType: string; + }[]; + }; + msg: string; +}