73 lines
1.9 KiB
Dart
73 lines
1.9 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 int? profileId;
|
|
final String? token;
|
|
const LoadEligibility({ this.profileId, this.token});
|
|
@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 String profileId;
|
|
final int eligibilityId;
|
|
final String token;
|
|
const DeleteEligibility(
|
|
{
|
|
required this.eligibilityId,
|
|
required this.profileId,
|
|
required this.token});
|
|
@override
|
|
List<Object> get props => [ profileId, eligibilityId, token];
|
|
}
|
|
|
|
class CallErrorState extends EligibilityEvent{
|
|
|
|
}
|
|
|
|
|