import 'package:equatable/equatable.dart';

abstract class NetworkEvent extends Equatable {
  const NetworkEvent();

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

class LoadNetworkRequested extends NetworkEvent {}

class SearchNetworkRequested extends NetworkEvent {
  final String query;

  const SearchNetworkRequested(this.query);

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

/// Bascule Suivre / Ne plus suivre pour un item (membre ou organisation).
class ToggleFollowRequested extends NetworkEvent {
  final String itemId;

  const ToggleFollowRequested(this.itemId);

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