curtain changes

This commit is contained in:
mohammad
2024-08-29 16:54:43 +03:00
parent dcc98445d7
commit 9c23ab1399
12 changed files with 638 additions and 398 deletions

View File

@ -32,11 +32,14 @@ class DevicesAPI {
static Future<Map<String, dynamic>> controlDevice(
DeviceControlModel controlModel, String deviceId) async {
try {
print('controlDevice====${controlModel.toJson()}');
print('controlDevice====${deviceId}');
final response = await _httpService.post(
path: ApiEndpoints.controlDevice.replaceAll('{deviceUuid}', deviceId),
body: controlModel.toJson(),
showServerMessage: false,
expectedResponseModel: (json) {
print('json====${json}');
return json;
},
);
@ -74,6 +77,7 @@ class DevicesAPI {
path: ApiEndpoints.deviceFunctionsStatus.replaceAll('{deviceUuid}', deviceId),
showServerMessage: false,
expectedResponseModel: (json) {
print('getDeviceStatus=$json');
return json;
},
);