import 'package:get/get.dart'; import 'package:star_lock/main/lockDetail/lockSet/lockSet/lockSetInfo_entity.dart'; import 'package:star_lock/tools/dateTool.dart'; class VideoSlotState { //实时画面 0发生事件事查看 1实时查看 VideoSlotState() { Map map = Get.arguments; if (map['lockSetInfoData'] != null) { lockSetInfoData.value = map['lockSetInfoData']; } if (map['catEyeConfigData'] != null) { catEyeConfigData.value = map['catEyeConfigData']; } } Rx lockSetInfoData = LockSetInfoData().obs; Rx catEyeConfigData = CatEyeConfig().obs; RxBool isCustom = false.obs; //是否自定义 DateTime dateTime = DateTime.now(); RxString startDate = DateTool().getNowDateWithType(6).obs; //默认为当前时间 RxString endDate = DateTool().getNowDateWithType(6).obs; //默认为当前时间 RxInt recordMode = 0.obs; //录像时段 0全天 1自定义时间 RxInt recordStartTime = 0.obs; // 自定义开始时间 RxInt recordEndTime = 0.obs; // 自定义结束时间 RxString recordTime = ''.obs; //有人出现时录像 RxInt detectionDistance = 0.obs; //人体侦测距离 RxInt realTimeMode = 0.obs; }