Removed prints and warnings

This commit is contained in:
Abdullah Alassaf
2024-09-08 23:09:45 +03:00
parent f6cc19cad7
commit 1f22e5d322
2 changed files with 31 additions and 55 deletions

View File

@ -33,7 +33,6 @@ class DevicesManagementApi {
path: ApiEndpoints.getDeviceStatus.replaceAll('{uuid}', uuid),
showServerMessage: true,
expectedResponseModel: (json) {
print('getDeviceStatus$json');
return DeviceStatus.fromJson(json);
},
);
@ -66,8 +65,7 @@ class DevicesManagementApi {
}
}
static Future<List<DeviceModel>> getDevicesByGatewayId(
String gatewayId) async {
static Future<List<DeviceModel>> getDevicesByGatewayId(String gatewayId) async {
final response = await HTTPService().get(
path: ApiEndpoints.gatewayApi.replaceAll('{gatewayUuid}', gatewayId),
showServerMessage: false,
@ -98,9 +96,7 @@ class DevicesManagementApi {
static Future<DeviceReport> getDeviceReports(String uuid, String code) async {
final response = await HTTPService().get(
path: ApiEndpoints.getDeviceLogs
.replaceAll('{uuid}', uuid)
.replaceAll('{code}', code),
path: ApiEndpoints.getDeviceLogs.replaceAll('{uuid}', uuid).replaceAll('{code}', code),
showServerMessage: false,
expectedResponseModel: (json) {
return DeviceReport.fromJson(json);