analytics devices integtation.

This commit is contained in:
Faris Armoush
2025-05-14 15:03:30 +03:00
parent 3dfbcb5935
commit 7515b347ce
8 changed files with 146 additions and 18 deletions

View File

@ -1,17 +1,20 @@
enum AnalyticsDeviceRequestType { energyManagement, occupancy }
class GetAnalyticsDevicesParam {
final String? spaceUuid;
final String deviceType;
final List<String> deviceTypes;
final String? communityUuid;
final AnalyticsDeviceRequestType requestType;
const GetAnalyticsDevicesParam({
required this.requestType,
required this.spaceUuid,
required this.deviceType,
required this.deviceTypes,
required this.communityUuid,
});
Map<String, dynamic> toJson() {
return <String, dynamic>{
'deviceType': deviceType,
if (spaceUuid != null) 'spaceUuid': spaceUuid,
if (communityUuid != null) 'communityUuid': communityUuid,
};