Initial commit: unionflow-mobile-apps
Application Flutter complète (sans build artifacts). Signed-off-by: lions dev Team
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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];
|
||||
}
|
||||
Reference in New Issue
Block a user