workouttest_app/lib/bloc/account/account_event.dart
2020-09-16 15:41:39 +02:00

58 lines
1.1 KiB
Dart

part of 'account_bloc.dart';
@immutable
abstract class AccountEvent extends Equatable {
const AccountEvent();
@override
List<Object> get props => [];
}
class AccountChangeCustomer extends AccountEvent {
final Customer customer;
const AccountChangeCustomer({this.customer});
@override
List<Object> get props => [customer];
}
class AccountLogout extends AccountEvent {
final Customer customer;
const AccountLogout({this.customer});
@override
List<Object> get props => [customer];
}
class AccountLogin extends AccountEvent {
final Customer customer;
const AccountLogin({this.customer});
@override
List<Object> get props => [customer];
}
class AccountLogInFinished extends AccountEvent {
final Customer customer;
const AccountLogInFinished({this.customer});
@override
List<Object> get props => [customer];
}
class AccountGetTrainees extends AccountEvent {
const AccountGetTrainees();
}
class AccountSelectTrainee extends AccountEvent {
final int traineeId;
const AccountSelectTrainee({this.traineeId});
@override
List<Object> get props => [traineeId];
}