From 0d9f64668fd7350d6a21fd157e32009a96d98134 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期三, 16 十二月 2020 13:09:08 +0800
Subject: [PATCH] 新云端代码Ver1.2

---
 ZigbeeApp/Shared/Phone/Common/Logic/HdlDeviceAirConditionerLogic.cs |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceAirConditionerLogic.cs b/ZigbeeApp/Shared/Phone/Common/Logic/HdlDeviceAirConditionerLogic.cs
similarity index 96%
rename from ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceAirConditionerLogic.cs
rename to ZigbeeApp/Shared/Phone/Common/Logic/HdlDeviceAirConditionerLogic.cs
index 98dc9ef..6f3e6dd 100644
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceAirConditionerLogic.cs
+++ b/ZigbeeApp/Shared/Phone/Common/Logic/HdlDeviceAirConditionerLogic.cs
@@ -5,7 +5,7 @@
 using System.Threading.Tasks;
 using ZigBee.Device;
 
-namespace Shared.Phone.UserCenter
+namespace Shared.Phone
 {
     /// <summary>
     /// 绌鸿皟鐨勯�昏緫
@@ -46,7 +46,7 @@
         {
             var result = await device.Open();
             //妫�娴嬬綉鍏宠繑鍥炵殑鍏遍�氶敊璇姸鎬佺爜
-            string error = HdlCheckLogic.Current.CheckCommonErrorCode(result);
+            string error = HdlCheckLogic.Current.CheckGatewayErrorCode(result);
             if (error != null)
             {
                 this.ShowTipMsg(error);
@@ -57,7 +57,7 @@
                 //鎵撳紑绌鸿皟澶辫触
                 string msg = Language.StringByID(R.MyInternationalizationString.uOpenAirConditionerFail);
                 //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg
-                msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result);
+                msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result);
                 this.ShowTipMsg(msg);
                 return false;
             }
@@ -84,7 +84,7 @@
         {
             var result = await device.Close();
             //妫�娴嬬綉鍏宠繑鍥炵殑鍏遍�氶敊璇姸鎬佺爜
-            string error = HdlCheckLogic.Current.CheckCommonErrorCode(result);
+            string error = HdlCheckLogic.Current.CheckGatewayErrorCode(result);
             if (error != null)
             {
                 this.ShowTipMsg(error);
@@ -95,7 +95,7 @@
                 //鍏抽棴绌鸿皟澶辫触
                 string msg = Language.StringByID(R.MyInternationalizationString.uCloseAirConditionerFail);
                 //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg
-                msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result);
+                msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result);
                 this.ShowTipMsg(msg);
                 return false;
             }
@@ -125,7 +125,7 @@
             if (Common.Config.Instance.Home.IsVirtually == true)
             {
                 //鐩存帴娣诲姞缂撳瓨
-                TemplateData.TemplateDeviceDataLogic.Current.SetAcModeSupport(device, data, null);
+                HdlTemplateDeviceDataLogic.Current.SetAcModeSupport(device, data, null);
                 return true;
             }
             //鍙戦�佹暟鎹�
@@ -141,7 +141,7 @@
                 //璁剧疆绌鸿皟妯″紡澶辫触
                 string msg = Language.StringByID(R.MyInternationalizationString.uSetAcModeFail);
                 //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg
-                msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result);
+                msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result);
                 this.ShowTipMsg(msg); ;
                 return false;
             }
@@ -156,7 +156,7 @@
             }
 
             //娣诲姞缂撳瓨
-            TemplateData.TemplateDeviceDataLogic.Current.SetAcModeSupport(device, data, result.JsonData[0]);
+            HdlTemplateDeviceDataLogic.Current.SetAcModeSupport(device, data, result.JsonData[0]);
 
             return true;
         }
@@ -177,7 +177,7 @@
             if (Common.Config.Instance.Home.IsVirtually == true)
             {
                 //鐩存帴娣诲姞缂撳瓨
-                TemplateData.TemplateDeviceDataLogic.Current.SetAcSwingModeSupport(device, data, null);
+                HdlTemplateDeviceDataLogic.Current.SetAcSwingModeSupport(device, data, null);
                 return true;
             }
             //鍙戦�佹暟鎹�
@@ -193,7 +193,7 @@
                 //璁剧疆绌鸿皟鎽嗛澶辫触
                 string msg = Language.StringByID(R.MyInternationalizationString.uSetAirConditionerSwingFunctionFail);
                 //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg
-                msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result);
+                msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result);
                 this.ShowTipMsg(msg);
                 return false;
             }
@@ -208,7 +208,7 @@
             }
 
             //娣诲姞缂撳瓨
-            TemplateData.TemplateDeviceDataLogic.Current.SetAcSwingModeSupport(device, data, result.JsonData[0]);
+            HdlTemplateDeviceDataLogic.Current.SetAcSwingModeSupport(device, data, result.JsonData[0]);
 
             return true;
         }

--
Gitblit v1.8.0