part of 'device_managment_bloc.dart';

abstract class DeviceManagementEvent extends Equatable {
  const DeviceManagementEvent();

  @override
  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];
}

class SelectDevice extends DeviceManagementEvent {
  final AllDevicesModel selectedDevice;

  const SelectDevice(this.selectedDevice);

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

class ResetFilters extends DeviceManagementEvent {}
