Daisy 8593088ab0 1,新增与后台约定code值弹出公用组件提示
2,修复开锁页-消息提醒-半自动锁和XHJ 的锁应没有有人出现在门口
2024-06-07 15:58:24 +08:00

33 lines
1.1 KiB
Dart
Executable File

import 'package:get/get.dart';
import 'package:star_lock/main/lockDetail/messageWarn/msgNotification/msgNotification/msgNotification_entity.dart';
class MsgNotificationState {
var msgNoticeInfo = MsgNoticeData().obs;
var getLockId = 0.obs;
var isCheck = false.obs;
var nDaysNotOpenDoor = '已启用'.obs; //N天未开门
var isTamperAlarm = false.obs; //防拆报警
var isLowBattery = '已启用'.obs; //低电量提醒
var isLeaveHomeOpenDoor = false.obs; //离家开门
var isDoorNotShut = false.obs; //门未关好
var isSomeoneRing = false.obs; //有人按门铃
var isSomeoneAppeared = false.obs; //有人出现在门口
final String notifyEnable = '已启用'.tr;
final String notifyDisable = '未启用'.tr;
final String settingSuccess = '设置成功'.tr;
var isSupportCatEye = false.obs;
MsgNotificationState() {
Map map = Get.arguments;
if (map['lockId'] != null) {
getLockId.value = map['lockId'];
}
if (map['isSupportCatEye'] != null) {
isSupportCatEye.value = map['isSupportCatEye'] == 1;
}
nDaysNotOpenDoor.value = notifyEnable;
isLowBattery.value = notifyEnable;
}
}