30 lines
918 B
Dart
Executable File
30 lines
918 B
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 {
|
|
var isLowBatteryNotify = false.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;
|
|
|
|
LowBatteryReminderState() {
|
|
Map map = Get.arguments;
|
|
if (map['lockId'] != null) {
|
|
getLockId.value = map['lockId'];
|
|
}
|
|
|
|
if (map['lockSetInfoData'] != null) {
|
|
msgNoticeInfo.value = map['lockSetInfoData'];
|
|
isLowBatteryNotify.value =
|
|
msgNoticeInfo.value.lowElecNoticeState == 1 ? true : false;
|
|
}
|
|
}
|
|
}
|