fixes bugs and add project id staging

This commit is contained in:
mohammad
2025-02-10 10:26:02 +03:00
parent 48733fd65e
commit 9897c19dad
14 changed files with 67 additions and 86 deletions

View File

@ -40,7 +40,7 @@ class HomeManagementAPI {
final path = ApiEndpoints.spaceDevices
.replaceAll('{communityUuid}', communityUuid)
.replaceAll('{spaceUuid}', spaceUuid)
.replaceAll('{projectUuid}', TempConst.projectId);
.replaceAll('{projectUuid}', TempConst.projectIdDev);
await _httpService.get(
path: path,
@ -67,6 +67,7 @@ class HomeManagementAPI {
try {
final response = await _httpService.post(
path: ApiEndpoints.assignDeviceToRoom
.replaceAll('{projectUuid}', TempConst.projectIdDev)
.replaceAll('{communityUuid}', communityId)
.replaceAll('{spaceUuid}', spaceId)
.replaceAll('{subSpaceUuid}', subSpaceId)
@ -90,7 +91,7 @@ class HomeManagementAPI {
.replaceAll('{spaceUuid}', spaceId)
.replaceAll('{subSpaceUuid}', subSpaceId)
.replaceAll('{deviceUuid}', deviceId)
.replaceAll('{projectUuid}', TempConst.projectId),
.replaceAll('{projectUuid}', TempConst.projectIdDev),
expectedResponseModel: (json) {
return json;
},