50 lines
1.2 KiB
Dart
Executable File
50 lines
1.2 KiB
Dart
Executable File
import 'package:get/get.dart';
|
|
import 'package:star_lock/main/lockDetail/messageWarn/lockUser/lockUser_entity.dart';
|
|
import 'package:star_lock/main/lockDetail/messageWarn/msgNotification/msgNotification/msgNotification_entity.dart';
|
|
|
|
class NDaysUnopenedState {
|
|
final List unopenDoorTimeList = [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
];
|
|
|
|
var isUnOpenNotice = false.obs; // 是否N天未开门提醒
|
|
var unOpenDoorTime = 1.obs; // 未开门时间
|
|
|
|
var getLockId = 0.obs;
|
|
var lockUserKeys = LockUserListKeys().obs;
|
|
var emailReceiverList = [].obs;
|
|
var phoneReceiverList = [].obs;
|
|
var emailListStr = ''.obs;
|
|
var phontListStr = ''.obs;
|
|
|
|
var msgNoticeInfo = MsgNoticeData().obs;
|
|
|
|
NDaysUnopenedState() {
|
|
Map map = Get.arguments;
|
|
if (map['lockId'] != null) {
|
|
getLockId.value = map['lockId'];
|
|
}
|
|
|
|
if (map['lockSetInfoData'] != null) {
|
|
msgNoticeInfo.value = map['lockSetInfoData'];
|
|
isUnOpenNotice.value =
|
|
msgNoticeInfo.value.dayNotOpenDoorState == 1 ? true : false;
|
|
unOpenDoorTime.value = msgNoticeInfo.value.dayNotOpenDoorValue!;
|
|
}
|
|
}
|
|
}
|