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 => [];
|
|
|
|
}
|
|
|
|
|
2023-08-27 08:38:05 +00:00
|
|
|
class ShowAddEligibilityForm extends EligibilityEvent {}
|
2023-03-02 05:28:33 +00:00
|
|
|
|
2023-08-27 08:38:05 +00:00
|
|
|
class GetEligibilities extends EligibilityEvent {
|
2023-03-02 05:28:33 +00:00
|
|
|
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-03-02 05:28:33 +00:00
|
|
|
}
|
|
|
|
|
2023-08-27 08:38:05 +00:00
|
|
|
class AddEligibility extends EligibilityEvent {
|
|
|
|
final EligibityCert eligibityCert;
|
2023-03-02 05:28:33 +00:00
|
|
|
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});
|
2023-03-02 05:28:33 +00:00
|
|
|
@override
|
2023-08-27 08:38:05 +00:00
|
|
|
List<Object> get props => [eligibityCert, profileId, token];
|
2023-03-02 05:28:33 +00:00
|
|
|
}
|
2023-08-27 08:38:05 +00:00
|
|
|
|
|
|
|
class UpdateEligibility extends EligibilityEvent {
|
2023-03-02 05:28:33 +00:00
|
|
|
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});
|
2023-03-02 05:28:33 +00:00
|
|
|
|
|
|
|
@override
|
2023-08-27 08:38:05 +00:00
|
|
|
List<Object> get props => [eligibityCert, profileId, token, oldEligibility];
|
2023-03-02 05:28:33 +00:00
|
|
|
}
|
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();
|
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;
|
2023-08-27 08:38:05 +00:00
|
|
|
|
2023-03-02 05:28:33 +00:00
|
|
|
const DeleteEligibility(
|
2023-08-27 08:38:05 +00:00
|
|
|
{required this.eligibilityId,
|
2023-03-02 05:28:33 +00:00
|
|
|
required this.profileId,
|
|
|
|
required this.token});
|
|
|
|
@override
|
2023-08-27 08:38:05 +00:00
|
|
|
List<Object> get props => [profileId, eligibilityId, token];
|
2023-03-02 05:28:33 +00:00
|
|
|
}
|
|
|
|
|
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 {
|
2023-08-01 08:20:38 +00:00
|
|
|
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});
|
2023-08-01 08:20:38 +00:00
|
|
|
@override
|
2023-08-27 08:38:05 +00:00
|
|
|
List<Object> get props =>
|
|
|
|
[categoryId, attachmentModule, filePaths, token, profileId];
|
2023-08-01 08:20:38 +00:00
|
|
|
}
|
|
|
|
|
2023-08-07 06:33:38 +00:00
|
|
|
////Delete Attachment
|
2023-08-27 08:38:05 +00:00
|
|
|
class DeleteEligibyAttachment extends EligibilityEvent {
|
2023-08-01 08:20:38 +00:00
|
|
|
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-01 08:20:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-08-27 08:38:05 +00:00
|
|
|
class EligibiltyViewAttachmentEvent extends EligibilityEvent{
|
|
|
|
final String source;
|
2023-08-30 01:55:03 +00:00
|
|
|
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
|
|
|
}
|
2023-03-02 05:28:33 +00:00
|
|
|
|