mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 01:56:19 +00:00
curtain changes
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user