import 'package:equatable/equatable.dart';

abstract class UnifiedFeedEvent extends Equatable {
  const UnifiedFeedEvent();

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

class LoadFeedRequested extends UnifiedFeedEvent {
  final bool isRefresh;
  const LoadFeedRequested({this.isRefresh = false});

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

class FeedLoadMoreRequested extends UnifiedFeedEvent {}

/// Efface le message d'erreur « load more » après affichage du SnackBar.
class ClearLoadMoreError extends UnifiedFeedEvent {}

// Exemples d'événements interactifs sans tout polluer
class FeedItemLiked extends UnifiedFeedEvent {
  final String itemId;
  const FeedItemLiked(this.itemId);

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