push door lock

This commit is contained in:
ashrafzarkanisala
2024-08-27 00:16:00 +03:00
parent 2dc5a1e7ed
commit f39ce0a72b
13 changed files with 654 additions and 154 deletions

View File

@ -82,4 +82,15 @@ class DevicesManagementApi {
);
return response;
}
static Future<bool> openDoorLock(String deviceId) async {
final response = await HTTPService().post(
path: ApiEndpoints.openDoorLock.replaceAll('{doorLockUuid}', deviceId),
showServerMessage: false,
expectedResponseModel: (json) {
return json['success'] ?? false;
},
);
return response;
}
}