mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
39 lines
929 B
Dart
39 lines
929 B
Dart
import 'package:equatable/equatable.dart';
|
|
import 'package:syncrow_web/pages/device_managment/wall_sensor/model/wall_sensor_model.dart';
|
|
|
|
class WallSensorState extends Equatable {
|
|
const WallSensorState();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class InitialState extends WallSensorState {}
|
|
|
|
class LoadingInitialState extends WallSensorState {}
|
|
|
|
class UpdateState extends WallSensorState {
|
|
final WallSensorModel wallSensorModel;
|
|
const UpdateState({required this.wallSensorModel});
|
|
|
|
@override
|
|
List<Object> get props => [wallSensorModel];
|
|
}
|
|
|
|
class LoadingNewSate extends WallSensorState {
|
|
final WallSensorModel wallSensorModel;
|
|
const LoadingNewSate({required this.wallSensorModel});
|
|
|
|
@override
|
|
List<Object> get props => [wallSensorModel];
|
|
}
|
|
|
|
class FailedState extends WallSensorState {
|
|
final String error;
|
|
|
|
const FailedState({required this.error});
|
|
|
|
@override
|
|
List<Object> get props => [error];
|
|
}
|