| | |
| | | /// </summary> |
| | | public string MasterToken; |
| | | |
| | | //RegionInfoRes _residecenInfo; |
| | | RegionInfoRes _residecenInfo = new RegionInfoRes(); |
| | | /// <summary> |
| | | /// 住宅基础信息 |
| | |
| | | ShowFunction.Sensor,ShowFunction.VideoIntercom, |
| | | ShowFunction.SecurityCenter |
| | | }); |
| | | instance.SupportFacePass = false; |
| | | instance.SaveResidenceData(); |
| | | } |
| | | catch (Exception ex) |
| | |
| | | HDL_ON.UI.UI2.Intelligence.Automation.Logic.LogicList.Clear(); |
| | | DAL.Mqtt.MqttClient.DisConnectRemote("退出登录,或者切换住宅"); |
| | | } |
| | | /// <summary> |
| | | /// 是否支持人脸通行 |
| | | /// </summary> |
| | | public bool SupportFacePass = false; |
| | | |
| | | /// <summary> |
| | | /// 网关详细信息 |
| | |
| | | public HomeGatewayInfo HomeGateway; |
| | | |
| | | /// <summary> |
| | | /// 0:bus网关 |
| | | /// 1:A协议网关 |
| | | /// 0:一端口 |
| | | /// 1:Link协议网关 |
| | | /// </summary> |
| | | public int GatewayType |
| | | { |
| | |
| | | //#endif |
| | | if (HomeGateway == null) |
| | | return -1; |
| | | if (HomeGateway.gatewayType == "AGATEWAY") |
| | | if (HomeGateway.gatewayType != "BUSUDPGATEWAY") |
| | | { |
| | | return 1; |
| | | } |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | ///// <summary> |
| | | ///// 城市信息 |
| | | ///// </summary> |
| | | //public static Entity.CityInfo cityInfo = new Entity.CityInfo(); |
| | | |
| | | /// <summary> |
| | | /// 住宅图片 |
| | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 上一次提示的时间 |
| | | /// </summary> |
| | | public DateTime LastTipTime = DateTime.MinValue; |
| | | /// <summary> |
| | | /// 是否需要提示 |
| | | /// </summary> |
| | | public bool NeedTip |
| | | { |
| | | get |
| | | { |
| | | return (DateTime.Now - LastTipTime).TotalDays > 2; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |