mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-08-26 09:19:40 +00:00
34 lines
708 B
Dart
34 lines
708 B
Dart
|
|
|
|
|
|
import 'package:equatable/equatable.dart';
|
|
import 'package:syncrow_app/utils/resource_manager/constants.dart';
|
|
|
|
abstract class CurtainEvent extends Equatable {
|
|
const CurtainEvent();
|
|
|
|
@override
|
|
List<Object?> get props => [];
|
|
}
|
|
|
|
class OpenCurtain extends CurtainEvent {
|
|
final DeviceType deviceType;
|
|
|
|
const OpenCurtain(this.deviceType);
|
|
|
|
@override
|
|
List<Object?> get props => [deviceType];
|
|
}
|
|
|
|
class CloseCurtain extends CurtainEvent {
|
|
final DeviceType deviceType;
|
|
|
|
const CloseCurtain(this.deviceType);
|
|
|
|
@override
|
|
List<Object?> get props => [deviceType];
|
|
}
|
|
|
|
class InitCurtain extends CurtainEvent {}
|
|
class PauseCurtain extends CurtainEvent {}
|
|
class useCurtainEvent extends CurtainEvent {} |