mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-17 02:25:16 +00:00
50 lines
1.0 KiB
Dart
50 lines
1.0 KiB
Dart
import 'package:equatable/equatable.dart';
|
|
import 'package:syncrow_app/features/scene/model/update_automation.dart';
|
|
|
|
abstract class SceneEvent extends Equatable {
|
|
const SceneEvent();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class LoadScenes extends SceneEvent {
|
|
final String unitId;
|
|
|
|
const LoadScenes(this.unitId);
|
|
|
|
@override
|
|
List<Object> get props => [unitId];
|
|
}
|
|
|
|
class LoadAutomation extends SceneEvent {
|
|
final String unitId;
|
|
|
|
const LoadAutomation(this.unitId);
|
|
|
|
@override
|
|
List<Object> get props => [unitId];
|
|
}
|
|
|
|
class SceneTrigger extends SceneEvent {
|
|
final String sceneId;
|
|
final String name;
|
|
|
|
const SceneTrigger(this.sceneId, this.name);
|
|
|
|
@override
|
|
List<Object> get props => [sceneId];
|
|
}
|
|
|
|
//updateAutomationStatus
|
|
class UpdateAutomationStatus extends SceneEvent {
|
|
final String automationId;
|
|
final AutomationStatusUpdate automationStatusUpdate;
|
|
|
|
const UpdateAutomationStatus(
|
|
{required this.automationStatusUpdate, required this.automationId});
|
|
|
|
@override
|
|
List<Object> get props => [automationStatusUpdate];
|
|
}
|