mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
57 lines
1.1 KiB
Dart
57 lines
1.1 KiB
Dart
import 'package:equatable/equatable.dart';
|
|
|
|
sealed class AcsEvent extends Equatable {
|
|
const AcsEvent();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class AcFetchDeviceStatusEvent extends AcsEvent {
|
|
final String deviceId;
|
|
|
|
const AcFetchDeviceStatusEvent(this.deviceId);
|
|
|
|
@override
|
|
List<Object> get props => [deviceId];
|
|
}
|
|
|
|
class AcFetchBatchStatusEvent extends AcsEvent {
|
|
final List<String> devicesIds;
|
|
|
|
const AcFetchBatchStatusEvent(this.devicesIds);
|
|
|
|
@override
|
|
List<Object> get props => [devicesIds];
|
|
}
|
|
|
|
class AcControlEvent extends AcsEvent {
|
|
final String deviceId;
|
|
final String code;
|
|
final dynamic value;
|
|
|
|
const AcControlEvent({
|
|
required this.deviceId,
|
|
required this.code,
|
|
required this.value,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props => [deviceId, code, value];
|
|
}
|
|
|
|
class AcBatchControlEvent extends AcsEvent {
|
|
final List<String> devicesIds;
|
|
final String code;
|
|
final dynamic value;
|
|
|
|
const AcBatchControlEvent({
|
|
required this.devicesIds,
|
|
required this.code,
|
|
required this.value,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props => [devicesIds, code, value];
|
|
}
|