4 and 6 scene

This commit is contained in:
mohammad
2024-11-24 10:48:25 +03:00
parent 9f02ce8a31
commit 3d17c588c5
15 changed files with 210 additions and 164 deletions

View File

@ -217,4 +217,8 @@ abstract class ApiEndpoints {
static const String fourSceneByName =
'/device/{deviceUuid}/scenes?switchName={switchName}';
static const String resetDevice =
'/factory/reset/{deviceUuid}';
}

View File

@ -513,4 +513,20 @@ class DevicesAPI {
);
return response;
}
static Future resetDevise({
String? devicesUuid,
}) async {
final response = await _httpService.post(
path: ApiEndpoints.resetDevice.replaceAll('{deviceUuid}', devicesUuid!),
showServerMessage: false,
body: {
"devicesUuid": [devicesUuid]
},
expectedResponseModel: (json) {
return json;
},
);
return response;
}
}

View File

@ -60,6 +60,8 @@ class SpacesAPI {
}
}
//factory/reset/{deviceUuid}
static Future<String> generateInvitationCode(
String unitId, String communityId) async {
final response = await _httpService.get(