mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-17 02:25:16 +00:00
built 3 gang switch View
This commit is contained in:
@ -1,17 +1,19 @@
|
||||
import 'package:syncrow_app/features/devices/model/function_model.dart';
|
||||
import 'package:syncrow_app/generated/assets.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/constants.dart';
|
||||
|
||||
abstract class DeviceModel {
|
||||
final String? id;
|
||||
class DeviceModel {
|
||||
final int? id;
|
||||
final String? name;
|
||||
final DeviceType? type;
|
||||
bool? status;
|
||||
final String? image;
|
||||
final double? timer;
|
||||
|
||||
late final String icon;
|
||||
bool isSelected = false;
|
||||
|
||||
late List<FunctionModel> functions;
|
||||
|
||||
DeviceModel({
|
||||
required this.id,
|
||||
required this.name,
|
||||
@ -19,6 +21,7 @@ abstract class DeviceModel {
|
||||
required this.status,
|
||||
required this.image,
|
||||
required this.timer,
|
||||
required this.functions,
|
||||
}) {
|
||||
switch (type) {
|
||||
case DeviceType.AC:
|
||||
|
Reference in New Issue
Block a user