import 'package:equatable/equatable.dart';
import 'package:syncrow_web/pages/device_managment/two_gang_switch/models/two_gang_status_model.dart';

class TwoGangSwitchState extends Equatable {
  @override
  List<Object?> get props => [];
}

class TwoGangSwitchInitial extends TwoGangSwitchState {}

class TwoGangSwitchLoading extends TwoGangSwitchState {}

class TwoGangSwitchStatusLoaded extends TwoGangSwitchState {
  final TwoGangStatusModel status;

  TwoGangSwitchStatusLoaded(this.status);

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

class TwoGangSwitchError extends TwoGangSwitchState {
  final String message;

 TwoGangSwitchError(this.message);

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

class TwoGangSwitchControlError extends TwoGangSwitchState {
  final String message;

  TwoGangSwitchControlError(this.message);

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

class TwoGangSwitchBatchControlError extends TwoGangSwitchState {
  final String message;

  TwoGangSwitchBatchControlError(this.message);

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

class TwoGangSwitchBatchStatusLoaded extends TwoGangSwitchState {
  final List<String> status;

  TwoGangSwitchBatchStatusLoaded(this.status);

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