34 lines
1.0 KiB
Dart
Executable File
34 lines
1.0 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 LowBatteryReminderState {
|
|
|
|
LowBatteryReminderState() {
|
|
Map map = Get.arguments;
|
|
if (map['lockId'] != null) {
|
|
getLockId.value = map['lockId'];
|
|
}
|
|
|
|
if (map['lockSetInfoData'] != null) {
|
|
msgNoticeInfo.value = map['lockSetInfoData'];
|
|
if (msgNoticeInfo.value.lowElecNoticeState == 1) {
|
|
isLowBatteryNotify.value = true;
|
|
} else {
|
|
isLowBatteryNotify.value = false;
|
|
}
|
|
}
|
|
}
|
|
RxBool isLowBatteryNotify = false.obs; // 是否低电量提醒
|
|
|
|
RxInt getLockId = 0.obs;
|
|
Rx<LockUserListKeys> lockUserKeys = LockUserListKeys().obs;
|
|
RxList emailReceiverList = [].obs;
|
|
RxList phoneReceiverList = [].obs;
|
|
RxString emailListStr = ''.obs;
|
|
RxString phontListStr = ''.obs;
|
|
|
|
Rx<MsgNoticeData> msgNoticeInfo = MsgNoticeData().obs;
|
|
}
|