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

class ThreeGangState extends Equatable {
  const ThreeGangState();

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

class InitialState extends ThreeGangState {}

class LoadingInitialState extends ThreeGangState {}

class UpdateState extends ThreeGangState {
  final ThreeGangModel threeGangModel;
  const UpdateState({required this.threeGangModel});

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

class LoadingNewSate extends ThreeGangState {
  final ThreeGangModel threeGangModel;
  const LoadingNewSate({required this.threeGangModel});

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

class UpdateGroupState extends ThreeGangState {
  final List<GroupThreeGangModel> threeGangList;
  final bool allSwitches;

  const UpdateGroupState({required this.threeGangList, required this.allSwitches});

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

class FailedState extends ThreeGangState {
  final String error;

  const FailedState({required this.error});

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

class ChangeSlidingSegmentState extends ThreeGangState {
  final int value;

  const ChangeSlidingSegmentState({required this.value});

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

class UpdateTimerState extends ThreeGangState {
  final int seconds;
  const UpdateTimerState({required this.seconds});

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

class TimerRunInProgress extends ThreeGangState {
  final int remainingTime;

  const TimerRunInProgress(this.remainingTime);

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

class TimerRunComplete extends ThreeGangState {}


class ThreeGangSaveSchedule extends ThreeGangState {}
class IsToggleState extends ThreeGangState {
  final bool? onOff;
  const IsToggleState({this.onOff});
}
class ChangeTimeState extends ThreeGangState {}
class UpdateCreateScheduleState extends ThreeGangState {
  final bool createSchedule;
  UpdateCreateScheduleState(this.createSchedule);
}
