2023-03-06 00:57:39 +00:00
|
|
|
part of 'references_bloc.dart';
|
|
|
|
|
|
|
|
abstract class ReferencesEvent extends Equatable {
|
|
|
|
const ReferencesEvent();
|
|
|
|
|
|
|
|
@override
|
|
|
|
List<Object> get props => [];
|
|
|
|
}
|
|
|
|
|
2023-04-11 01:27:53 +00:00
|
|
|
class GetReferences extends ReferencesEvent {
|
2023-03-06 00:57:39 +00:00
|
|
|
final int profileId;
|
|
|
|
final String token;
|
|
|
|
const GetReferences({required this.profileId, required this.token});
|
2023-04-11 01:27:53 +00:00
|
|
|
@override
|
|
|
|
List<Object> get props => [profileId, token];
|
2023-03-06 00:57:39 +00:00
|
|
|
}
|
2023-03-24 06:46:17 +00:00
|
|
|
|
2023-04-11 01:27:53 +00:00
|
|
|
class ShowAddReferenceForm extends ReferencesEvent {}
|
2023-03-24 06:46:17 +00:00
|
|
|
|
2023-04-11 01:27:53 +00:00
|
|
|
class ShowEditReferenceForm extends ReferencesEvent {
|
2023-03-24 06:46:17 +00:00
|
|
|
final PersonalReference personalReference;
|
|
|
|
const ShowEditReferenceForm({required this.personalReference});
|
2023-04-11 01:27:53 +00:00
|
|
|
@override
|
2023-03-24 06:46:17 +00:00
|
|
|
List<Object> get props => [personalReference];
|
|
|
|
}
|
|
|
|
|
2023-04-11 01:27:53 +00:00
|
|
|
class CallErrorState extends ReferencesEvent {}
|
2023-03-24 06:46:17 +00:00
|
|
|
|
2023-04-11 01:27:53 +00:00
|
|
|
class AddReference extends ReferencesEvent {
|
2023-03-24 06:46:17 +00:00
|
|
|
final PersonalReference reference;
|
|
|
|
final String token;
|
|
|
|
final int profileId;
|
2023-04-11 01:27:53 +00:00
|
|
|
const AddReference(
|
|
|
|
{required this.profileId, required this.reference, required this.token});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [profileId, token, reference];
|
2023-03-24 06:46:17 +00:00
|
|
|
}
|
2023-04-11 01:27:53 +00:00
|
|
|
|
|
|
|
class EditReference extends ReferencesEvent {
|
|
|
|
final PersonalReference reference;
|
2023-03-24 06:46:17 +00:00
|
|
|
final String token;
|
|
|
|
final int profileId;
|
2023-04-11 01:27:53 +00:00
|
|
|
const EditReference(
|
|
|
|
{required this.profileId, required this.reference, required this.token});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [profileId, token, reference];
|
2023-03-24 06:46:17 +00:00
|
|
|
}
|
|
|
|
|
2023-04-11 01:27:53 +00:00
|
|
|
class DeleteReference extends ReferencesEvent {
|
|
|
|
final List<PersonalReference> references;
|
2023-03-24 06:46:17 +00:00
|
|
|
final int profileId;
|
|
|
|
final String token;
|
|
|
|
final int refId;
|
2023-04-11 01:27:53 +00:00
|
|
|
const DeleteReference(
|
|
|
|
{required this.profileId,
|
|
|
|
required this.refId,
|
|
|
|
required this.references,
|
|
|
|
required this.token});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [profileId, token, refId, references];
|
2023-03-24 06:46:17 +00:00
|
|
|
}
|
|
|
|
|
2023-04-11 01:27:53 +00:00
|
|
|
class LoadReferences extends ReferencesEvent {
|
2023-03-24 06:46:17 +00:00
|
|
|
@override
|
2023-04-11 01:27:53 +00:00
|
|
|
List<Object> get props => [];
|
2023-03-24 06:46:17 +00:00
|
|
|
}
|