import 'package:get/get.dart'; import 'package:star_lock/main/lockDetail/messageWarn/msgNotification/msgNotification/msgNotification_entity.dart'; class MsgNotificationState { 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; } Rx msgNoticeInfo = MsgNoticeData().obs; RxInt getLockId = 0.obs; RxBool isCheck = false.obs; RxString nDaysNotOpenDoor = '已启用'.obs; //N天未开门 RxBool isTamperAlarm = false.obs; //防拆报警 RxString isLowBattery = '已启用'.obs; //低电量提醒 RxBool isLeaveHomeOpenDoor = false.obs; //离家开门 RxBool isDoorNotShut = false.obs; //门未关好 RxBool isSomeoneRing = false.obs; //有人按门铃 RxBool isSomeoneAppeared = false.obs; //有人出现在门口 final String notifyEnable = '已启用'.tr; final String notifyDisable = '未启用'.tr; final String settingSuccess = '设置成功'.tr; RxBool isSupportCatEye = false.obs; }