mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
Implemented side tree to devices and rountines screen
This commit is contained in:
@ -0,0 +1,41 @@
|
||||
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];
|
||||
}
|
Reference in New Issue
Block a user