part of 'workHistory_bloc.dart';

abstract class WorkHistoryState extends Equatable {
  const WorkHistoryState();
  
  @override
  List<Object> get props => [];
}

class EducationInitial extends WorkHistoryState {}

class WorkHistoryLoaded extends WorkHistoryState{
  final List<WorkHistory> workExperiences;
  const WorkHistoryLoaded({required this.workExperiences});
    @override
  List<Object> get props => [workExperiences];
}

class WorkHistoryLoadingState extends WorkHistoryState{

}
class WorkHistoryErrorState extends WorkHistoryState{
  final String message;
  const WorkHistoryErrorState({required this.message});
  
      @override
  List<Object> get props => [message];
}



class AddWorkHistoryState extends WorkHistoryState{
  final List<Position> agencyPositions;
  final List<Agency> agencies;
  final List<Category> agencyCategory;
  final List<AppoinemtStatus> appointmentStatus;

  const AddWorkHistoryState({required this.agencyPositions, required this.appointmentStatus,required this.agencies,required this.agencyCategory});
      @override
  List<Object> get props => [agencyPositions,appointmentStatus,agencies,agencyCategory];

}

class EditWorkHistoryState extends WorkHistoryState{
  final WorkHistory workHistory;
    final List<Position> agencyPositions;
  final List<Agency> agencies;
  final List<Category> agencyCategory;
  final List<AppoinemtStatus> appointmentStatus;
  const EditWorkHistoryState({required this.workHistory, required this.agencies,required this.agencyCategory, required this.agencyPositions, required this.appointmentStatus});
  @override
    List<Object> get props => [workHistory, agencyPositions,appointmentStatus,agencies,agencyCategory];
}

class DeletedState extends WorkHistoryState{
  final bool success;
  const DeletedState({required this.success});
        @override
  List<Object> get props => [success];
}

class WorkHistoryEditedState extends WorkHistoryState{
  final Map<dynamic,dynamic> response;
  const WorkHistoryEditedState({required this.response});
          @override
  List<Object> get props => [response];
}

class WorkHistoryAddedState extends WorkHistoryState{
  final Map<dynamic,dynamic> response;
  const WorkHistoryAddedState({required this.response});
          @override
  List<Object> get props => [response];
}
