mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
43 lines
1020 B
Dart
43 lines
1020 B
Dart
import 'package:equatable/equatable.dart';
|
|
|
|
abstract class WallSensorEvent extends Equatable {
|
|
const WallSensorEvent();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class WallSensorInitialEvent extends WallSensorEvent {}
|
|
|
|
class WallSensorChangeValueEvent extends WallSensorEvent {
|
|
final int value;
|
|
final String code;
|
|
const WallSensorChangeValueEvent({required this.value, required this.code});
|
|
|
|
@override
|
|
List<Object> get props => [value, code];
|
|
}
|
|
|
|
class WallSensorBatchControlEvent extends WallSensorEvent {
|
|
const WallSensorBatchControlEvent();
|
|
}
|
|
|
|
class GetDeviceReportsEvent extends WallSensorEvent {
|
|
final String deviceUuid;
|
|
final String code;
|
|
const GetDeviceReportsEvent({
|
|
required this.deviceUuid,
|
|
required this.code,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props => [deviceUuid, code];
|
|
}
|
|
|
|
class ShowDescriptionEvent extends WallSensorEvent {
|
|
final String description;
|
|
const ShowDescriptionEvent({required this.description});
|
|
}
|
|
|
|
class BackToGridViewEvent extends WallSensorEvent {}
|