part of 'solidarity_bloc.dart';

abstract class SolidarityEvent extends Equatable {
  const SolidarityEvent();
  @override
  List<Object?> get props => [];
}

class LoadDemandesAide extends SolidarityEvent {
  final int page;
  final int size;
  const LoadDemandesAide({this.page = 0, this.size = 20});
  @override
  List<Object?> get props => [page, size];
}

class LoadDemandeAideById extends SolidarityEvent {
  final String id;
  const LoadDemandeAideById(this.id);
  @override
  List<Object?> get props => [id];
}

class SearchDemandesAide extends SolidarityEvent {
  final String? statut;
  final String? type;
  final int page;
  final int size;
  const SearchDemandesAide({this.statut, this.type, this.page = 0, this.size = 20});
  @override
  List<Object?> get props => [statut, type, page, size];
}

class CreateDemandeAide extends SolidarityEvent {
  final DemandeAideModel demande;
  const CreateDemandeAide(this.demande);
  @override
  List<Object?> get props => [demande];
}

class ApprouverDemandeAide extends SolidarityEvent {
  final String id;
  const ApprouverDemandeAide(this.id);
  @override
  List<Object?> get props => [id];
}

class RejeterDemandeAide extends SolidarityEvent {
  final String id;
  final String? motif;
  const RejeterDemandeAide(this.id, {this.motif});
  @override
  List<Object?> get props => [id, motif];
}
