part of 'dashboard_bloc.dart';

abstract class DashboardState extends Equatable {
  const DashboardState();

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

class DashboardInitial extends DashboardState {}

class DashboardLoading extends DashboardState {}

class DashboardLoaded extends DashboardState {
  final DashboardEntity dashboardData;

  const DashboardLoaded(this.dashboardData);

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

class DashboardRefreshing extends DashboardState {
  final DashboardEntity dashboardData;

  const DashboardRefreshing(this.dashboardData);

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

class DashboardError extends DashboardState {
  final String message;

  const DashboardError(this.message);

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

/// État émis quand l'utilisateur est authentifié dans Keycloak
/// mais n'a pas encore de fiche membre en base de données.
class DashboardMemberNotRegistered extends DashboardState {
  const DashboardMemberNotRegistered();
}
