Files
unionflow-mobile-apps/lib/features/solidarity/bloc/solidarity_event.dart
dahoud d094d6db9c Initial commit: unionflow-mobile-apps
Application Flutter complète (sans build artifacts).

Signed-off-by: lions dev Team
2026-03-15 16:30:08 +00:00

55 lines
1.3 KiB
Dart

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];
}