2023-02-01 08:03:05 +00:00
|
|
|
part of 'profile_bloc.dart';
|
|
|
|
|
|
|
|
abstract class ProfileState extends Equatable {
|
|
|
|
const ProfileState();
|
2023-02-20 07:48:24 +00:00
|
|
|
|
2023-02-01 08:03:05 +00:00
|
|
|
@override
|
|
|
|
List<Object> get props => [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class ProfileInitial extends ProfileState {}
|
|
|
|
|
2023-02-20 07:48:24 +00:00
|
|
|
class ProfileLoaded extends ProfileState {
|
2023-02-01 08:03:05 +00:00
|
|
|
final ProfileInformation profileInformation;
|
2023-02-20 07:48:24 +00:00
|
|
|
const ProfileLoaded({required this.profileInformation});
|
2023-02-01 08:03:05 +00:00
|
|
|
@override
|
|
|
|
List<Object> get props => [profileInformation];
|
|
|
|
}
|
|
|
|
|
2023-02-20 07:48:24 +00:00
|
|
|
class ProfileErrorState extends ProfileState {
|
2023-02-01 08:03:05 +00:00
|
|
|
final String mesage;
|
|
|
|
const ProfileErrorState({required this.mesage});
|
2023-02-20 07:48:24 +00:00
|
|
|
@override
|
2023-02-01 08:03:05 +00:00
|
|
|
List<Object> get props => [mesage];
|
|
|
|
}
|
2023-05-22 02:23:56 +00:00
|
|
|
class BasicInformationEditingState extends ProfileState{
|
|
|
|
final Profile primaryInformation;
|
|
|
|
final List<ProfileOtherInfo> religion;
|
|
|
|
final List<ProfileOtherInfo> ethnicity;
|
|
|
|
final List<ProfileOtherInfo> disability;
|
|
|
|
final List<ProfileOtherInfo> indigenous;
|
|
|
|
final List<ProfileOtherInfo> genders;
|
|
|
|
final List<String>sexes;
|
|
|
|
final List<String> bloodTypes;
|
|
|
|
final List<String> civilStatus;
|
|
|
|
final List<String> extensions;
|
|
|
|
const BasicInformationEditingState( {required this.genders, required this.extensions, required this.primaryInformation, required this.sexes, required this.bloodTypes, required this.civilStatus, required this.disability,required this.ethnicity,required this.indigenous,required this.religion});
|
|
|
|
}
|
|
|
|
////Edited State
|
|
|
|
class BasicProfileInfoEditedState extends ProfileState{
|
|
|
|
final Map<dynamic,dynamic> response;
|
|
|
|
const BasicProfileInfoEditedState({required this.response});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [response];
|
|
|
|
}
|
|
|
|
|
|
|
|
class BasicInformationProfileLoaded extends ProfileState{
|
|
|
|
final Profile primaryBasicInformation;
|
|
|
|
const BasicInformationProfileLoaded({required this.primaryBasicInformation});
|
|
|
|
|
|
|
|
}
|
|
|
|
class BasicPrimaryInformationLoadingState extends ProfileState{
|
|
|
|
|
|
|
|
}
|
|
|
|
class BasicPrimaryInformationErrorState extends ProfileState{
|
|
|
|
final String message;
|
|
|
|
const BasicPrimaryInformationErrorState({required this.message});
|
|
|
|
}
|
2023-02-01 08:03:05 +00:00
|
|
|
|
2023-02-20 07:48:24 +00:00
|
|
|
class ProfileLoading extends ProfileState {}
|
2023-02-01 08:03:05 +00:00
|
|
|
|
2023-02-20 07:48:24 +00:00
|
|
|
|
2023-02-27 06:26:27 +00:00
|
|
|
|