2023-03-02 06:59:40 +00:00
|
|
|
part of 'education_bloc.dart';
|
|
|
|
|
|
|
|
abstract class EducationEvent extends Equatable {
|
|
|
|
const EducationEvent();
|
|
|
|
|
|
|
|
@override
|
|
|
|
List<Object> get props => [];
|
|
|
|
}
|
2023-04-25 07:50:36 +00:00
|
|
|
|
|
|
|
class GetEducationalBackground extends EducationEvent {
|
|
|
|
final int profileId;
|
|
|
|
final String token;
|
|
|
|
const GetEducationalBackground(
|
|
|
|
{required this.profileId, required this.token});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [profileId, token];
|
|
|
|
}
|
|
|
|
////show add form
|
|
|
|
class ShowAddEducationForm extends EducationEvent {}
|
|
|
|
////show edit form
|
|
|
|
class ShowEditEducationForm extends EducationEvent {
|
|
|
|
final EducationalBackground educationalBackground;
|
|
|
|
final int profileId;
|
|
|
|
final String token;
|
|
|
|
const ShowEditEducationForm({required this.educationalBackground,required this.profileId, required this.token});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [educationalBackground];
|
|
|
|
}
|
|
|
|
////load
|
|
|
|
class LoadEducations extends EducationEvent {}
|
|
|
|
////add
|
|
|
|
class AddEducation extends EducationEvent {
|
|
|
|
final List<Honor> honors;
|
|
|
|
final EducationalBackground educationalBackground;
|
|
|
|
final int profileId;
|
|
|
|
final String token;
|
|
|
|
const AddEducation(
|
|
|
|
{required this.educationalBackground,
|
|
|
|
required this.profileId,
|
|
|
|
required this.token, required this.honors});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [educationalBackground, profileId, token];
|
|
|
|
}
|
|
|
|
////update education
|
|
|
|
class UpdateEducation extends EducationEvent{
|
|
|
|
final List<Honor> honors;
|
|
|
|
final EducationalBackground educationalBackground;
|
|
|
|
final int profileId;
|
|
|
|
final String token;
|
|
|
|
const UpdateEducation(
|
|
|
|
{required this.educationalBackground,
|
|
|
|
required this.profileId,
|
|
|
|
required this.token,required this.honors});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [educationalBackground, profileId, token];
|
|
|
|
}
|
|
|
|
////delete
|
|
|
|
class DeleteEducation extends EducationEvent{
|
2023-03-02 06:59:40 +00:00
|
|
|
final int profileId;
|
|
|
|
final String token;
|
2023-04-25 07:50:36 +00:00
|
|
|
final EducationalBackground educationalBackground;
|
|
|
|
const DeleteEducation({required this.educationalBackground, required this.profileId, required this.token});
|
2023-03-02 06:59:40 +00:00
|
|
|
@override
|
2023-04-25 07:50:36 +00:00
|
|
|
List<Object> get props => [educationalBackground, profileId, token];
|
2023-03-02 06:59:40 +00:00
|
|
|
}
|
2023-08-01 08:20:38 +00:00
|
|
|
////Add attachment
|
2023-08-07 06:33:38 +00:00
|
|
|
class AddEducationAttachment extends EducationEvent{
|
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-07 06:33:38 +00:00
|
|
|
const AddEducationAttachment({required this.attachmentModule, required this.filePaths, required this.categoryId, required this.profileId, required this.token});
|
2023-08-01 08:20:38 +00:00
|
|
|
@override
|
|
|
|
List<Object> get props => [categoryId,attachmentModule,filePaths, token,profileId];
|
|
|
|
}
|
2023-08-07 06:33:38 +00:00
|
|
|
|
|
|
|
////Delete Attachment
|
|
|
|
class DeleteEducationAttachment extends EducationEvent{
|
|
|
|
final int moduleId;
|
|
|
|
final Attachment attachment;
|
|
|
|
final String token;
|
|
|
|
final int profileId;
|
|
|
|
const DeleteEducationAttachment({required this.attachment, required this.moduleId, required this.profileId, required this.token});
|
|
|
|
}
|