passo_mobile_app/lib/bloc/profile/references/references_event.dart

67 lines
1.8 KiB
Dart
Raw Normal View History

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 {
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-04-11 01:27:53 +00:00
class ShowAddReferenceForm extends ReferencesEvent {}
2023-04-11 01:27:53 +00:00
class ShowEditReferenceForm extends ReferencesEvent {
final PersonalReference personalReference;
const ShowEditReferenceForm({required this.personalReference});
2023-04-11 01:27:53 +00:00
@override
List<Object> get props => [personalReference];
}
2023-04-11 01:27:53 +00:00
class CallErrorState extends ReferencesEvent {}
2023-04-11 01:27:53 +00:00
class AddReference extends ReferencesEvent {
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-04-11 01:27:53 +00:00
class EditReference extends ReferencesEvent {
final PersonalReference reference;
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-04-11 01:27:53 +00:00
class DeleteReference extends ReferencesEvent {
final List<PersonalReference> references;
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-04-11 01:27:53 +00:00
class LoadReferences extends ReferencesEvent {
@override
2023-04-11 01:27:53 +00:00
List<Object> get props => [];
}