4_scene&6_scene

This commit is contained in:
mohammad
2024-11-18 09:09:47 +03:00
parent b547a126ed
commit ec7b351a82
76 changed files with 8584 additions and 130 deletions

View File

@ -65,7 +65,7 @@ class DevicesAPI {
showServerMessage: false,
expectedResponseModel: (json) => DevicesCategoryModel.fromJsonList(json),
);
return response;
}
@ -75,6 +75,7 @@ class DevicesAPI {
.replaceAll('{deviceUuid}', deviceId),
showServerMessage: false,
expectedResponseModel: (json) {
print('json==#$json');
return json;
},
);
@ -121,6 +122,16 @@ class DevicesAPI {
return response;
}
static Future getDeviceInfo(String deviceId) async {
final response = await _httpService.get(
path: ApiEndpoints.deviceByUuid.replaceAll('{deviceUuid}', deviceId),
showServerMessage: false,
expectedResponseModel: (json) {
return json;
});
return response;
}
static Future<List<DeviceModel>> getDeviceByGroupName(
String unitId, String groupName) async {
final response = await _httpService.get(