mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
23 lines
600 B
Dart
23 lines
600 B
Dart
enum AnalyticsDeviceRequestType { energyManagement, occupancy }
|
|
|
|
class GetAnalyticsDevicesParam {
|
|
final String? spaceUuid;
|
|
final List<String> deviceTypes;
|
|
final String? communityUuid;
|
|
final AnalyticsDeviceRequestType requestType;
|
|
|
|
const GetAnalyticsDevicesParam({
|
|
required this.requestType,
|
|
required this.spaceUuid,
|
|
required this.deviceTypes,
|
|
required this.communityUuid,
|
|
});
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return <String, dynamic>{
|
|
if (spaceUuid != null) 'spaceUuid': spaceUuid,
|
|
if (communityUuid != null) 'communityUuid': communityUuid,
|
|
};
|
|
}
|
|
}
|