2023-03-02 06:59:40 +00:00
|
|
|
part of 'education_bloc.dart';
|
|
|
|
|
|
|
|
abstract class EducationState extends Equatable {
|
|
|
|
const EducationState();
|
2023-04-25 07:50:36 +00:00
|
|
|
|
2023-03-02 06:59:40 +00:00
|
|
|
@override
|
|
|
|
List<Object> get props => [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class EducationInitial extends EducationState {}
|
|
|
|
|
2023-04-25 07:50:36 +00:00
|
|
|
class EducationalBackgroundLoadedState extends EducationState {
|
2023-08-07 06:33:38 +00:00
|
|
|
final List<AttachmentCategory> attachmentCategory;
|
2023-03-02 06:59:40 +00:00
|
|
|
final List<EducationalBackground> educationalBackground;
|
2023-08-07 06:33:38 +00:00
|
|
|
const EducationalBackgroundLoadedState(
|
|
|
|
{required this.educationalBackground, required this.attachmentCategory});
|
2023-04-25 07:50:36 +00:00
|
|
|
@override
|
2023-03-02 06:59:40 +00:00
|
|
|
List<Object> get props => [educationalBackground];
|
|
|
|
}
|
|
|
|
|
2023-04-25 07:50:36 +00:00
|
|
|
class EducationalBackgroundErrorState extends EducationState {
|
2023-03-02 06:59:40 +00:00
|
|
|
final String message;
|
|
|
|
const EducationalBackgroundErrorState({required this.message});
|
2023-04-25 07:50:36 +00:00
|
|
|
@override
|
2023-03-02 06:59:40 +00:00
|
|
|
List<Object> get props => [message];
|
|
|
|
}
|
|
|
|
|
2023-04-25 07:50:36 +00:00
|
|
|
class EducationalBackgroundLoadingState extends EducationState {}
|
|
|
|
|
|
|
|
////Add
|
|
|
|
class AddEducationState extends EducationState {
|
|
|
|
final List<School> schools;
|
|
|
|
final List<Course> programs;
|
|
|
|
final List<Honor> honors;
|
|
|
|
const AddEducationState(
|
|
|
|
{required this.honors, required this.programs, required this.schools});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [schools, programs, honors];
|
|
|
|
}
|
|
|
|
|
|
|
|
////Edit
|
|
|
|
class EditEducationState extends EducationState {
|
|
|
|
final EducationalBackground educationalBackground;
|
|
|
|
final List<School> schools;
|
|
|
|
final List<Course> programs;
|
|
|
|
final List<Honor> honors;
|
|
|
|
const EditEducationState({
|
|
|
|
required this.educationalBackground,
|
|
|
|
required this.honors,
|
|
|
|
required this.programs,
|
|
|
|
required this.schools,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//// Added State
|
|
|
|
class EducationAddedState extends EducationState {
|
|
|
|
final Map<dynamic, dynamic> response;
|
|
|
|
const EducationAddedState({required this.response});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [response];
|
|
|
|
}
|
2023-08-07 06:33:38 +00:00
|
|
|
|
2023-04-25 07:50:36 +00:00
|
|
|
//// Edited State
|
|
|
|
class EditedEducationState extends EducationState {
|
|
|
|
final Map<dynamic, dynamic> response;
|
|
|
|
const EditedEducationState({required this.response});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [response];
|
|
|
|
}
|
|
|
|
|
|
|
|
////deleted State
|
|
|
|
class EducationDeletedState extends EducationState {
|
|
|
|
final bool success;
|
|
|
|
const EducationDeletedState({required this.success});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [success];
|
2023-03-02 06:59:40 +00:00
|
|
|
}
|
2023-08-07 06:33:38 +00:00
|
|
|
|
|
|
|
////Attachment AddedState
|
|
|
|
class EducationAttachmentAddedState extends EducationState {
|
|
|
|
final Map<dynamic, dynamic> response;
|
|
|
|
const EducationAttachmentAddedState({required this.response});
|
|
|
|
}
|
|
|
|
|
|
|
|
////Attachment Deleted State State
|
|
|
|
class EducationAttachmentDeletedState extends EducationState {
|
|
|
|
final bool success;
|
|
|
|
const EducationAttachmentDeletedState({required this.success});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [success];
|
2023-08-27 08:38:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class EducationAttachmentViewState extends EducationState {
|
|
|
|
final String fileUrl;
|
|
|
|
final String fileName;
|
|
|
|
const EducationAttachmentViewState({required this.fileUrl, required this.fileName});
|
|
|
|
}
|
|
|
|
|
|
|
|
class EducationAttachmentShareState extends EducationState{
|
|
|
|
final bool success;
|
|
|
|
const EducationAttachmentShareState({required this.success,});
|
|
|
|
}
|