import 'package:equatable/equatable.dart'; import 'package:syncrow_app/features/devices/model/device_info_model.dart'; import 'package:syncrow_app/features/devices/model/device_model.dart'; import 'package:syncrow_app/features/devices/model/question_model.dart'; import 'package:syncrow_app/features/devices/model/sos_model.dart'; import 'package:syncrow_app/features/devices/model/subspace_model.dart'; class SosState extends Equatable { const SosState(); @override List get props => []; } class SosLoadingState extends SosState {} class SaveState extends SosState {} class LoadingSosDeviceInfo extends SosState { final DeviceInfoModel? deviceInfo; const LoadingSosDeviceInfo({this.deviceInfo}); } class SosFailedState extends SosState { final String errorMessage; const SosFailedState({required this.errorMessage}); @override List get props => [errorMessage]; } class UpdateState extends SosState { final SosModel sensor; const UpdateState({required this.sensor}); @override List get props => [sensor]; } class LoadingNewSate extends SosState { final SosModel sosSensor; const LoadingNewSate({required this.sosSensor}); @override List get props => [sosSensor]; } class NameEditingState extends SosState { final bool editName; NameEditingState({required this.editName}); } class FaqLoadedState extends SosState { final List filteredFaqQuestions; FaqLoadedState({this.filteredFaqQuestions = const []}); } class FaqSearchState extends SosState { final List filteredFaqQuestions; const FaqSearchState({this.filteredFaqQuestions = const []}); } class FetchRoomsState extends SosState { final List roomsList; final List devicesList; const FetchRoomsState({required this.devicesList, required this.roomsList}); @override List get props => [devicesList]; } class OptionSelectedState extends SosState { final String selectedOption; final bool hasSelectionChanged; OptionSelectedState({ required this.selectedOption, required this.hasSelectionChanged, }); @override List get props => [selectedOption, hasSelectionChanged]; } class SaveSelectionSuccessState extends SosState { @override List get props => []; }