passo_mobile_app/lib/bloc/sos/sos_state.dart

51 lines
1.3 KiB
Dart
Raw Permalink Normal View History

2023-04-11 06:08:10 +00:00
part of 'sos_bloc.dart';
abstract class SosState extends Equatable {
const SosState();
@override
List<Object> get props => [];
}
class SosInitial extends SosState {}
class UserLocationLoaded extends SosState {
final LocationData locationData;
const UserLocationLoaded({required this.locationData});
@override
List<Object> get props => [locationData];
}
class ErrorState extends SosState{
final String message;
const ErrorState({required this.message});
@override
List<Object> get props => [message];
}
2023-04-13 08:45:19 +00:00
class RequestSosState extends SosState{
final LocationData locationData;
final String mobile1;
final String? mobile2;
const RequestSosState({required this.locationData, required this.mobile1, required this.mobile2});
@override
List<Object> get props => [locationData,mobile1];
}
2023-04-11 06:08:10 +00:00
class LoadingState extends SosState{
2023-04-13 08:45:19 +00:00
final String message;
const LoadingState({required this.message});
}
class SOSReceivedState extends SosState {
final String sessionToken;
const SOSReceivedState({required this.sessionToken});
@override
List<Object> get props => [sessionToken];
}
class SoSAcknowledgementConfirm extends SosState{
final SessionData sessionData;
const SoSAcknowledgementConfirm({required this.sessionData});
@override
List<Object> get props => [sessionData];
2023-04-11 06:08:10 +00:00
}