curtain changes

This commit is contained in:
mohammad
2024-09-02 15:04:16 +03:00
parent bf944a6121
commit ea3bc4b5e1
4 changed files with 1 additions and 253 deletions

View File

@ -32,14 +32,12 @@ 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;
},
);
@ -77,7 +75,6 @@ class DevicesAPI {
path: ApiEndpoints.deviceFunctionsStatus.replaceAll('{deviceUuid}', deviceId),
showServerMessage: false,
expectedResponseModel: (json) {
print('getDeviceStatus=$json');
return json;
},
);
@ -217,7 +214,6 @@ class DevicesAPI {
"effectiveTime": effectiveTime,
"invalidTime": invalidTime,
};
print('createPassword =$body');
if (scheduleList != null) {
body["scheduleList"] = scheduleList.map((schedule) => schedule.toJson()).toList();
}