part of 'notifications_bloc.dart';

abstract class NotificationsEvent extends Equatable {
  const NotificationsEvent();

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

class LoadNotifications extends NotificationsEvent {
  /// Si null ou vide, utilise GET /api/notifications/me (membre connecté).
  final String? membreId;
  final bool onlyUnread;
  const LoadNotifications({this.membreId, this.onlyUnread = false});

  @override
  List<Object?> get props => [membreId, onlyUnread];
}

class MarkNotificationAsRead extends NotificationsEvent {
  final String notificationId;
  const MarkNotificationAsRead(this.notificationId);

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

class RefreshNotifications extends NotificationsEvent {
  final String? membreId;
  const RefreshNotifications([this.membreId]);

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