2023-03-02 05:28:33 +00:00
|
|
|
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 {
|
2023-04-11 01:27:53 +00:00
|
|
|
final int? profileId;
|
|
|
|
final String? token;
|
|
|
|
const LoadEligibility({ this.profileId, this.token});
|
2023-03-02 05:28:33 +00:00
|
|
|
@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(
|
2023-04-11 01:27:53 +00:00
|
|
|
{
|
2023-03-02 05:28:33 +00:00
|
|
|
required this.eligibilityId,
|
|
|
|
required this.profileId,
|
|
|
|
required this.token});
|
|
|
|
@override
|
2023-04-11 01:27:53 +00:00
|
|
|
List<Object> get props => [ profileId, eligibilityId, token];
|
2023-03-02 05:28:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class CallErrorState extends EligibilityEvent{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|