part of 'functions_bloc_bloc.dart';

abstract class FunctionBlocEvent extends Equatable {
  const FunctionBlocEvent();

  @override
  List<Object?> get props => [];
}

class AddFunction extends FunctionBlocEvent {
  final DeviceFunctionData functionData;

  const AddFunction({
    required this.functionData,
  });

  @override
  List<Object?> get props => [functionData];
}

class SelectFunction extends FunctionBlocEvent {
  final String functionCode;
  final String operationName;

  const SelectFunction({
    required this.functionCode,
    required this.operationName,
  });

  @override
  List<Object?> get props => [functionCode, operationName];
}

class InitializeFunctions extends FunctionBlocEvent {
  final List<DeviceFunctionData> functions;

  const InitializeFunctions(this.functions);

  @override
  List<Object?> get props => [functions];
}
