part of 'routine_bloc.dart'; abstract class RoutineEvent extends Equatable { const RoutineEvent(); @override List get props => []; } class AddToIfContainer extends RoutineEvent { final Map item; final bool isTabToRun; const AddToIfContainer(this.item, this.isTabToRun); @override List get props => [item, isTabToRun]; } class AddToThenContainer extends RoutineEvent { final Map item; const AddToThenContainer(this.item); @override List get props => [item]; } class LoadScenes extends RoutineEvent { final String unitId; const LoadScenes(this.unitId); @override List get props => [unitId]; } class LoadAutomation extends RoutineEvent { final String unitId; const LoadAutomation(this.unitId); @override List get props => [unitId]; } class AddFunctionToRoutine extends RoutineEvent { final List functions; final String uniqueCustomId; const AddFunctionToRoutine(this.functions, this.uniqueCustomId); @override List get props => [functions, uniqueCustomId]; } class RemoveFunction extends RoutineEvent { final DeviceFunctionData function; const RemoveFunction(this.function); @override List get props => [function]; } class SearchRoutines extends RoutineEvent { final String query; const SearchRoutines(this.query); @override List get props => [query]; } class AddSelectedIcon extends RoutineEvent { final String icon; const AddSelectedIcon(this.icon); @override List get props => [icon]; } class CreateSceneEvent extends RoutineEvent { const CreateSceneEvent(); @override List get props => []; } class RemoveDragCard extends RoutineEvent { final int index; final bool isFromThen; const RemoveDragCard({required this.index, required this.isFromThen}); @override List get props => [index]; } class ChangeAutomationOperator extends RoutineEvent { final String operator; const ChangeAutomationOperator({required this.operator}); @override List get props => [operator]; } class EffectiveTimePeriodEvent extends RoutineEvent { final EffectiveTime effectiveTime; const EffectiveTimePeriodEvent(this.effectiveTime); @override List get props => [effectiveTime]; } class CreateAutomationEvent extends RoutineEvent { // final CreateAutomationModel createAutomationModel; final String? automationId; final bool updateAutomation; const CreateAutomationEvent({ //required this.createAutomationModel, this.automationId, this.updateAutomation = false, }); @override List get props => []; } class SetRoutineName extends RoutineEvent { final String name; const SetRoutineName(this.name); @override List get props => [name]; } class ResetRoutineState extends RoutineEvent {} class ClearFunctions extends RoutineEvent {}