remove socket from water heater

This commit is contained in:
mohammad
2024-10-08 10:27:05 +03:00
parent 4916961d49
commit 978e77c167
6 changed files with 8 additions and 13 deletions

View File

@ -33,7 +33,6 @@ class DevicesAPI {
static Future<Map<String, dynamic>> controlDevice(
DeviceControlModel controlModel, String deviceId) async {
try {
print(controlModel.toJson());
final response = await _httpService.post(
path: ApiEndpoints.controlDevice.replaceAll('{deviceUuid}', deviceId),
body: controlModel.toJson(),
@ -77,7 +76,7 @@ class DevicesAPI {
.replaceAll('{deviceUuid}', deviceId),
showServerMessage: false,
expectedResponseModel: (json) {
print(json);
print('json======${json}');
return json;
},
);
@ -386,13 +385,11 @@ class DevicesAPI {
String? code,
bool? value,
}) async {
print({"devicesUuid": devicesUuid, "code": code, "value": value});
final response = await _httpService.post(
path: ApiEndpoints.controlBatch,
body: {"devicesUuid": devicesUuid, "code": code, "value": value},
showServerMessage: true,
expectedResponseModel: (json) {
print('json===$json');
return json;
},
);