import 'package:equatable/equatable.dart';
import 'package:syncrow_app/features/devices/model/ceiling_sensor_model.dart';

class CeilingSensorState extends Equatable {
  const CeilingSensorState();

  @override
  List<Object> get props => [];
}

class InitialState extends CeilingSensorState {}

class FitchData extends CeilingSensorState {}

class LoadingInitialState extends CeilingSensorState {}

class UpdateState extends CeilingSensorState {
  final CeilingSensorModel ceilingSensorModel;
  const UpdateState({required this.ceilingSensorModel});

  @override
  List<Object> get props => [ceilingSensorModel];
}

class LoadingNewSate extends CeilingSensorState {
  final CeilingSensorModel ceilingSensorModel;
  const LoadingNewSate({required this.ceilingSensorModel});

  @override
  List<Object> get props => [ceilingSensorModel];
}

class FailedState extends CeilingSensorState {
  final String error;

  const FailedState({required this.error});

  @override
  List<Object> get props => [error];
}
