mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
push fetch devices and connecting the filters
This commit is contained in:
@ -1,8 +1,43 @@
|
||||
part of 'device_managment_bloc.dart';
|
||||
|
||||
sealed class DeviceManagmentEvent extends Equatable {
|
||||
const DeviceManagmentEvent();
|
||||
abstract class DeviceManagementEvent extends Equatable {
|
||||
const DeviceManagementEvent();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
|
||||
class FetchDevices extends DeviceManagementEvent {}
|
||||
|
||||
class FilterDevices extends DeviceManagementEvent {
|
||||
final String filter;
|
||||
|
||||
const FilterDevices(this.filter);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [filter];
|
||||
}
|
||||
|
||||
class SelectedFilterChanged extends DeviceManagementEvent {
|
||||
final int selectedIndex;
|
||||
|
||||
const SelectedFilterChanged(this.selectedIndex);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [selectedIndex];
|
||||
}
|
||||
|
||||
class SearchDevices extends DeviceManagementEvent {
|
||||
final String? community;
|
||||
final String? unitName;
|
||||
final String? productName;
|
||||
|
||||
const SearchDevices({
|
||||
this.community,
|
||||
this.unitName,
|
||||
this.productName,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [community, unitName, productName];
|
||||
}
|
||||
|
Reference in New Issue
Block a user