passo_mobile_app/lib/bloc/profile/eligibility/eligibility_event.dart

73 lines
1.9 KiB
Dart
Raw Normal View History

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});
@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
{
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];
}
class CallErrorState extends EligibilityEvent{
}