mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
42 lines
859 B
Dart
42 lines
859 B
Dart
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];
|
|
}
|