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

118 lines
3.1 KiB
Dart
Raw Normal View History

part of 'eligibility_bloc.dart';
abstract class EligibilityEvent extends Equatable {
const EligibilityEvent();
@override
List<Object> get props => [];
}
2023-08-27 08:38:05 +00:00
class ShowAddEligibilityForm extends EligibilityEvent {}
2023-08-27 08:38:05 +00:00
class GetEligibilities extends EligibilityEvent {
final int profileId;
final String token;
const GetEligibilities({required this.profileId, required this.token});
@override
2023-08-27 08:38:05 +00:00
List<Object> get props => [profileId, token];
}
2023-08-27 08:38:05 +00:00
class AddEligibility extends EligibilityEvent {
final EligibityCert eligibityCert;
final String profileId;
final String token;
2023-08-27 08:38:05 +00:00
const AddEligibility(
{required this.eligibityCert,
required this.profileId,
required this.token});
@override
2023-08-27 08:38:05 +00:00
List<Object> get props => [eligibityCert, profileId, token];
}
2023-08-27 08:38:05 +00:00
class UpdateEligibility extends EligibilityEvent {
final EligibityCert eligibityCert;
final String profileId;
final String token;
final int oldEligibility;
2023-08-27 08:38:05 +00:00
const UpdateEligibility(
{required this.eligibityCert,
required this.oldEligibility,
required this.profileId,
required this.token});
@override
2023-08-27 08:38:05 +00:00
List<Object> get props => [eligibityCert, profileId, token, oldEligibility];
}
2023-06-06 06:54:51 +00:00
2023-08-27 08:38:05 +00:00
class LoadEligibility extends EligibilityEvent {
2023-06-06 06:54:51 +00:00
const LoadEligibility();
@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;
2023-08-27 08:38:05 +00:00
const DeleteEligibility(
2023-08-27 08:38:05 +00:00
{required this.eligibilityId,
required this.profileId,
required this.token});
@override
2023-08-27 08:38:05 +00:00
List<Object> get props => [profileId, eligibilityId, token];
}
2023-08-27 08:38:05 +00:00
class CallErrorState extends EligibilityEvent {}
2023-08-07 06:33:38 +00:00
////Add Attachment
2023-08-27 08:38:05 +00:00
class AddEligibiltyAttachment extends EligibilityEvent {
final String categoryId;
final String attachmentModule;
final List<String> filePaths;
final String token;
final String profileId;
2023-08-27 08:38:05 +00:00
const AddEligibiltyAttachment(
{required this.attachmentModule,
required this.filePaths,
required this.categoryId,
required this.profileId,
required this.token});
@override
2023-08-27 08:38:05 +00:00
List<Object> get props =>
[categoryId, attachmentModule, filePaths, token, profileId];
}
2023-08-07 06:33:38 +00:00
////Delete Attachment
2023-08-27 08:38:05 +00:00
class DeleteEligibyAttachment extends EligibilityEvent {
final String profileId;
final String token;
final Attachment attachment;
final String moduleId;
2023-08-27 08:38:05 +00:00
const DeleteEligibyAttachment(
{required this.attachment,
required this.moduleId,
required this.profileId,
required this.token});
}
2023-08-27 08:38:05 +00:00
class EligibiltyViewAttachmentEvent extends EligibilityEvent{
final String source;
final String filename;
const EligibiltyViewAttachmentEvent({required this.source, required this.filename});
}
class ShareAttachment extends EligibilityEvent{
final String fileName;
final String source;
const ShareAttachment({required this.fileName, required this.source});
2023-08-27 08:38:05 +00:00
}