power_clamp_batch_control

This commit is contained in:
mohammad
2024-10-25 20:06:07 +03:00
parent b8ad20b3ff
commit a594d5b93c
9 changed files with 294 additions and 15 deletions

View File

@ -195,6 +195,31 @@ class DevicesManagementApi {
}
}
getPowerStatus(List<String> uuids) async {
try {
final queryParameters = {
'devicesUuid': uuids.join(','),
};
final response = await HTTPService().get(
path: ApiEndpoints.getBatchStatus,
queryParameters: queryParameters,
showServerMessage: true,
expectedResponseModel: (json) {
print('object======$json');
return json;
},
);
return response;
} catch (e) {
debugPrint('Error fetching $e');
return DeviceStatus(
productUuid: '',
productType: '',
status: [],
);
}
}
Future<bool> addScheduleRecord(
ScheduleEntry sendSchedule, String uuid) async {
try {