push ac functions and gang switches functions

This commit is contained in:
ashrafzarkanisala
2024-11-21 00:50:06 +03:00
parent 57b8f6b03e
commit 4441878bdd
27 changed files with 1739 additions and 188 deletions

View File

@ -0,0 +1,17 @@
import 'package:syncrow_web/pages/routiens/models/device_functions.dart';
import 'package:syncrow_web/pages/routiens/models/gang_switches/switch_operational_value.dart';
abstract class BaseSwitchFunction extends DeviceFunction<bool> {
BaseSwitchFunction({
required super.deviceId,
required super.deviceName,
required super.code,
required super.operationName,
required super.icon,
});
@override
bool execute(bool currentStatus, dynamic newValue);
List<SwitchOperationalValue> getOperationalValues();
}