mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
42 lines
1021 B
Dart
42 lines
1021 B
Dart
import 'package:equatable/equatable.dart';
|
|
|
|
abstract class CeilingSensorEvent extends Equatable {
|
|
const CeilingSensorEvent();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class CeilingInitialEvent extends CeilingSensorEvent {}
|
|
|
|
class CeilingChangeValueEvent extends CeilingSensorEvent {
|
|
final dynamic value;
|
|
final String code;
|
|
const CeilingChangeValueEvent({required this.value, required this.code});
|
|
|
|
@override
|
|
List<Object> get props => [value, code];
|
|
}
|
|
|
|
class GetCeilingDeviceReportsEvent extends CeilingSensorEvent {
|
|
final String code;
|
|
final String deviceUuid;
|
|
|
|
const GetCeilingDeviceReportsEvent(
|
|
{required this.code, required this.deviceUuid});
|
|
|
|
@override
|
|
List<Object> get props => [code, deviceUuid];
|
|
}
|
|
|
|
class ShowCeilingDescriptionEvent extends CeilingSensorEvent {
|
|
final String description;
|
|
|
|
const ShowCeilingDescriptionEvent({required this.description});
|
|
|
|
@override
|
|
List<Object> get props => [description];
|
|
}
|
|
|
|
class BackToCeilingGridViewEvent extends CeilingSensorEvent {}
|