passo_mobile_app/lib/bloc/profile/learningDevelopment/learning_development_state....

147 lines
4.6 KiB
Dart
Raw Permalink Normal View History

part of 'learning_development_bloc.dart';
abstract class LearningDevelopmentState extends Equatable {
const LearningDevelopmentState();
2023-05-22 02:23:56 +00:00
@override
List<Object> get props => [];
}
class LearningDevelopmentInitial extends LearningDevelopmentState {}
2023-05-22 02:23:56 +00:00
class LearningDevelopmentLoadedState extends LearningDevelopmentState {
2023-08-07 06:33:38 +00:00
final List<AttachmentCategory> attachmentCategory;
2023-05-22 02:23:56 +00:00
final List<LearningDevelopement> learningsAndDevelopment;
2023-08-07 06:33:38 +00:00
const LearningDevelopmentLoadedState(
{required this.learningsAndDevelopment,
required this.attachmentCategory});
2023-05-22 02:23:56 +00:00
@override
List<Object> get props => [learningsAndDevelopment];
}
2023-05-22 02:23:56 +00:00
class LearningDevelopmentLoadingState extends LearningDevelopmentState {}
////added State
class LearningDevelopmentAddedState extends LearningDevelopmentState {
final Map<dynamic, dynamic> response;
const LearningDevelopmentAddedState({required this.response});
@override
List<Object> get props => [response];
}
////Updated State
class LearningDevelopmentUpdatedState extends LearningDevelopmentState {
final Map<dynamic, dynamic> response;
const LearningDevelopmentUpdatedState({required this.response});
@override
List<Object> get props => [response];
}
//// Deleted State
class DeleteLearningDevelopmentState extends LearningDevelopmentState {
final bool success;
const DeleteLearningDevelopmentState({required this.success});
@override
List<Object> get props => [success];
}
////Update State
class LearningDevelopmentUpdatingState extends LearningDevelopmentState {
final List<LearningDevelopmentType> types;
final List<LearningDevelopmentType> topics;
final LearningDevelopmentType training;
final LearningDevelopement learningDevelopement;
final Agency currentConductedBy;
final Agency? currentSponsor;
final List<Agency> conductedBy;
final List<Agency> sponsorAgencies;
final List<Category> agencyCategory;
final List<Country> countries;
final List<Region> regions;
final List<Province> provinces;
final List<Barangay> barangay;
final List<CityMunicipality> cities;
final Region? currentRegion;
final Country currentCountry;
final Province? currentProvince;
final CityMunicipality? currentCity;
final Barangay? currentBarangay;
final bool overseas;
const LearningDevelopmentUpdatingState(
{required this.currentBarangay,
required this.cities,
required this.barangay,
required this.provinces,
required this.types,
required this.topics,
required this.training,
required this.learningDevelopement,
required this.currentConductedBy,
required this.currentSponsor,
required this.conductedBy,
required this.sponsorAgencies,
required this.agencyCategory,
required this.countries,
required this.regions,
required this.currentRegion,
required this.currentCountry,
required this.currentProvince,
required this.currentCity,
required this.overseas});
}
////Adding State
class LearningDevelopmentAddingState extends LearningDevelopmentState {
final List<LearningDevelopmentType> types;
final List<LearningDevelopmentType> topics;
final List<Agency> conductedBy;
final List<Agency> sponsorAgencies;
final List<Country> countries;
final List<Region> regions;
final List<Category> agencyCategory;
const LearningDevelopmentAddingState(
{required this.types,
required this.topics,
required this.countries,
required this.regions,
required this.conductedBy,
required this.sponsorAgencies,
required this.agencyCategory});
}
class LearningDevelopmentErrorState extends LearningDevelopmentState {
final String message;
const LearningDevelopmentErrorState({required this.message});
}
2023-08-07 06:33:38 +00:00
////Attachment AddedState
class LearningDevAttachmentAddedState extends LearningDevelopmentState {
final Map<dynamic, dynamic> response;
const LearningDevAttachmentAddedState({required this.response});
@override
List<Object> get props => [response];
}
////Attachment Deleted State State
class LearningDevAttachmentDeletedState extends LearningDevelopmentState {
final bool success;
const LearningDevAttachmentDeletedState({required this.success});
@override
List<Object> get props => [success];
}
2023-08-27 08:38:05 +00:00
class LearningAndDevelopmentAttachmentViewState extends LearningDevelopmentState {
final String filename;
2023-08-27 08:38:05 +00:00
final String fileUrl;
const LearningAndDevelopmentAttachmentViewState({required this.fileUrl, required this.filename});
}
class LearningDevelopmentAttachmentShareState extends LearningDevelopmentState{
final bool success;
const LearningDevelopmentAttachmentShareState({required this.success,});
}