HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-12-14 e90209beae6a4e822cecb18e6889f8bda23f630e
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDevicePirSensorLogic.cs
File was renamed from ZigbeeApp/Shared/Phone/Common/Logic/HdlDevicePirSensorLogic.cs
@@ -5,7 +5,7 @@
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
namespace Shared.Phone
namespace Shared.Phone.UserCenter
{
    /// <summary>
    /// PIR传感器的逻辑
@@ -50,7 +50,7 @@
            }
            var data = await iASZone.GetPIRLightAbilitySizeAsync();
            //共通错误检测
            string error = HdlCheckLogic.Current.CheckGatewayErrorCode(data);
            string error = HdlCheckLogic.Current.CheckCommonErrorCode(data);
            if (error != null)
            {
                this.ShowErrorMsg(error);
@@ -62,7 +62,7 @@
                //获取传感器光感等级失败
                string msg = Language.StringByID(R.MyInternationalizationString.uGetPirSensorLightPerceptionRegulationFail);
                //拼接上【网关回复超时】的Msg
                msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, data);
                msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, data);
                this.ShowErrorMsg(msg);
                return -1;
@@ -88,7 +88,7 @@
                //获取传感器设置信息失败
                string msg = Language.StringByID(R.MyInternationalizationString.uGetPirSensorSettionFail);
                //拼接上【网关回复超时】的Msg
                msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, data);
                msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, data);
                this.ShowErrorMsg(msg);
                return null;
@@ -115,7 +115,7 @@
                //获取传感器亮度值失败
                string msg = Language.StringByID(R.MyInternationalizationString.uGetPirSensorLuxFail);
                //拼接上【网关回复超时】的Msg
                msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, data);
                msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, data);
                if (mode == ShowErrorMode.YES)
                {
                    this.ShowErrorMsg(msg);
@@ -198,7 +198,7 @@
                //设置传感器配置信息失败
                string msg = Language.StringByID(R.MyInternationalizationString.uSetPirSensorSettionFail);
                //拼接上【网关回复超时】的Msg
                msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result);
                msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result);
                this.ShowErrorMsg(msg);
                return false;
@@ -440,7 +440,7 @@
        {
            Application.RunOnMainThread(() =>
            {
                var contr = new ShowMsgControl(ShowMsgType.Tip, msg);
                var contr = new UserCenter.ShowMsgControl(ShowMsgType.Tip, msg);
                contr.Show();
            });
        }