passo_mobile_app/lib/bloc/user/user_state.dart

78 lines
1.8 KiB
Dart
Raw Normal View History

part of 'user_bloc.dart';
abstract class UserState extends Equatable {
@override
List<Object> get props => [];
}
2023-01-23 03:02:59 +00:00
class UserInitial extends UserState {
UserInitial();
@override
List<Object> get props => [];
}
class UserLoading extends UserState {
final String? message;
2023-01-23 03:02:59 +00:00
UserLoading({this.message});
@override
List<Object> get props => [message!];
}
class SplashScreen extends UserState {
2023-04-05 00:54:24 +00:00
@override
List<Object> get props => [];
}
class UserError extends UserState {
final String? message;
2023-01-23 03:02:59 +00:00
UserError({this.message});
@override
List<Object> get props => [];
}
class UserLoggedIn extends UserState{
2023-08-11 08:38:26 +00:00
final List<AssignedArea>? estPersonAssignedArea;
final UserData? userData;
final String? message;
final bool? success;
2023-04-05 00:54:24 +00:00
final bool? savedCredentials;
2023-08-11 08:38:26 +00:00
UserLoggedIn({this.userData,this.message,this.success,this.savedCredentials, required this.estPersonAssignedArea});
}
class VersionLoaded extends UserState {
final VersionInfo? versionInfo;
final String? apkVersion;
2023-04-13 08:45:19 +00:00
final String? username;
final String? password;
VersionLoaded({this.versionInfo,this.apkVersion, this.password,this.username});
@override
List<Object> get props => [versionInfo!];
}
2023-01-23 03:02:59 +00:00
class UuidLoaded extends UserState{
final String uuid;
UuidLoaded({required this.uuid});
@override
List<Object> get props => [uuid];
}
class InternetTimeout extends UserState{
final String message;
InternetTimeout({required this.message});
@override
List<Object> get props => [message];
}
class InvalidCredentials extends UserState{
final String message ;
InvalidCredentials ({required this.message});
}
class LoginErrorState extends UserState{
final String message;
LoginErrorState({required this.message});
}
2023-10-06 04:43:37 +00:00
class ErrorWithOfflineMode extends UserState{
}