import 'package:equatable/equatable.dart';
import 'package:syncrow_app/features/devices/model/power_clamp_model.dart';
import 'package:syncrow_app/features/devices/view/widgets/power_clamp/power_chart.dart';

class PowerClampState extends Equatable {
  const PowerClampState();

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

class PowerClampInitialState extends PowerClampState {}

class PowerClampLoadingState extends PowerClampState {}

class ChangeTimeState extends PowerClampState {}

class DateSelectedState extends PowerClampState {}
//DateSelectedState

class PowerClampFailedState extends PowerClampState {
  final String errorMessage;

  const PowerClampFailedState({required this.errorMessage});

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

class UpdateState extends PowerClampState {
  final PowerClampModel powerClampModel;
  const UpdateState({required this.powerClampModel});

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

class LoadingNewSate extends PowerClampState {
  final PowerClampModel powerClampModel;
  const LoadingNewSate({required this.powerClampModel});

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

class EnergyDataState extends PowerClampState {
  final List<EnergyData> energyData;

  const EnergyDataState({required this.energyData});
}

// State for filtered records
class FilterRecordsState extends PowerClampState {
  final List<EnergyData> filteredRecords;

  const FilterRecordsState({required this.filteredRecords});
}
