73 lines
2.0 KiB
Dart
73 lines
2.0 KiB
Dart
|
part of 'eligibility_bloc.dart';
|
||
|
|
||
|
abstract class EligibilityEvent extends Equatable {
|
||
|
const EligibilityEvent();
|
||
|
|
||
|
@override
|
||
|
List<Object> get props => [];
|
||
|
}
|
||
|
|
||
|
class ShowAddEligibilityForm extends EligibilityEvent {
|
||
|
|
||
|
}
|
||
|
|
||
|
class GetEligibilities extends EligibilityEvent{
|
||
|
final int profileId;
|
||
|
final String token;
|
||
|
const GetEligibilities({required this.profileId, required this.token});
|
||
|
@override
|
||
|
List<Object> get props => [profileId,token];
|
||
|
}
|
||
|
|
||
|
class AddEligibility extends EligibilityEvent{
|
||
|
final EligibityCert eligibityCert;
|
||
|
final String profileId;
|
||
|
final String token;
|
||
|
const AddEligibility({required this.eligibityCert, required this.profileId, required this.token});
|
||
|
@override
|
||
|
List<Object> get props => [eligibityCert, profileId, token];
|
||
|
}
|
||
|
class UpdateEligibility extends EligibilityEvent{
|
||
|
final EligibityCert eligibityCert;
|
||
|
final String profileId;
|
||
|
final String token;
|
||
|
final int oldEligibility;
|
||
|
const UpdateEligibility({required this.eligibityCert, required this.oldEligibility,required this.profileId, required this.token});
|
||
|
|
||
|
@override
|
||
|
List<Object> get props =>[eligibityCert,profileId,token,oldEligibility];
|
||
|
}
|
||
|
class LoadEligibility extends EligibilityEvent {
|
||
|
final List<EligibityCert> eligibilities;
|
||
|
const LoadEligibility({required this.eligibilities});
|
||
|
@override
|
||
|
List<Object> get props => [];
|
||
|
}
|
||
|
|
||
|
class ShowEditEligibilityForm extends EligibilityEvent {
|
||
|
final EligibityCert eligibityCert;
|
||
|
const ShowEditEligibilityForm({required this.eligibityCert});
|
||
|
@override
|
||
|
List<Object> get props => [];
|
||
|
}
|
||
|
|
||
|
class DeleteEligibility extends EligibilityEvent {
|
||
|
final List<EligibityCert> eligibilities;
|
||
|
final String profileId;
|
||
|
final int eligibilityId;
|
||
|
final String token;
|
||
|
const DeleteEligibility(
|
||
|
{required this.eligibilities,
|
||
|
required this.eligibilityId,
|
||
|
required this.profileId,
|
||
|
required this.token});
|
||
|
@override
|
||
|
List<Object> get props => [eligibilities, profileId, eligibilityId, token];
|
||
|
}
|
||
|
|
||
|
class CallErrorState extends EligibilityEvent{
|
||
|
|
||
|
}
|
||
|
|
||
|
|