import 'package:syncrow_web/pages/routines/models/gang_switches/base_switch_function.dart';
import 'package:syncrow_web/pages/routines/models/gang_switches/switch_operational_value.dart';
import 'package:syncrow_web/utils/constants/assets.dart';

class OneGangSwitchFunction extends BaseSwitchFunction {
  OneGangSwitchFunction({required super.deviceId, required super.deviceName})
      : super(
          code: 'switch_1',
          operationName: 'Light Switch',
          icon: Assets.assetsAcPower,
        );

  @override
  List<SwitchOperationalValue> getOperationalValues() => [
        SwitchOperationalValue(
          icon: Assets.assetsAcPower,
          description: "ON",
          value: true,
        ),
        SwitchOperationalValue(
          icon: Assets.assetsAcPowerOFF,
          description: "OFF",
          value: false,
        ),
      ];
}

class OneGangCountdownFunction extends BaseSwitchFunction {
  OneGangCountdownFunction({required super.deviceId, required super.deviceName})
      : super(
          code: 'countdown_1',
          operationName: 'Light Countdown',
          icon: Assets.assetsLightCountdown,
        );

  @override
  List<SwitchOperationalValue> getOperationalValues() => [
        SwitchOperationalValue(
          icon: '',
          description: "sec",
          value: 0.0,
          minValue: 0,
          maxValue: 43200,
          stepValue: 1,
        ),
      ];
}
