From f60ce72c3c29c7d31a046795c88ec39a69e73d45 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 06 一月 2021 17:33:54 +0800
Subject: [PATCH] 2021-01-06 1.替换新云端前期准备相关接口,和修改相关参数。

---
 Crabtree/SmartHome/HDL/Operation/RemoteInfo.cs |   90 ++++++++++++++++++++++----------------------
 1 files changed, 45 insertions(+), 45 deletions(-)

diff --git a/Crabtree/SmartHome/HDL/Operation/RemoteInfo.cs b/Crabtree/SmartHome/HDL/Operation/RemoteInfo.cs
index 939db75..8c97216 100644
--- a/Crabtree/SmartHome/HDL/Operation/RemoteInfo.cs
+++ b/Crabtree/SmartHome/HDL/Operation/RemoteInfo.cs
@@ -27,52 +27,52 @@
         {
             if (MainPage.LoginUser == null)
                 return;
-#if HDL
-            System.Threading.Tasks.Task.Run (() => {
-                var se = new service.hdlcontrol.com_push.WebServicePush ();
-                var msgList = se.MsgList (rsgID);
-                foreach (var msg in msgList) {
-                    Current.RemoteInfoList.Add (new RemoteInfoMsg () { Msg = msg.Msg, MsgID = msg.MsgID, MsgTime = msg.MsgTime, MsgType = msg.MsgType });
-                }
-                Current.Save ();
-                if (msgList.Length > 0) {
-                    Application.RunOnMainThread (() => {
-                        string tipMsg = Language.StringByID (SimpleControl.R.MyInternationalizationString.NewMessageReceived);
+//#if HDL
+//            System.Threading.Tasks.Task.Run (() => {
+//                var se = new service.hdlcontrol.com_push.WebServicePush ();
+//                var msgList = se.MsgList (rsgID);
+//                foreach (var msg in msgList) {
+//                    Current.RemoteInfoList.Add (new RemoteInfoMsg () { Msg = msg.Msg, MsgID = msg.MsgID, MsgTime = msg.MsgTime, MsgType = msg.MsgType });
+//                }
+//                Current.Save ();
+//                if (msgList.Length > 0) {
+//                    Application.RunOnMainThread (() => {
+//                        string tipMsg = Language.StringByID (SimpleControl.R.MyInternationalizationString.NewMessageReceived);
 
-                        if (needTip) {
-                            Alert alert = new Alert (Language.StringByID (SimpleControl.R.MyInternationalizationString.Tip),
-                                                     tipMsg ,
-                                                     Language.StringByID (SimpleControl.R.MyInternationalizationString.Close),
-                                                     Language.StringByID (SimpleControl.R.MyInternationalizationString.Read));
-                            alert.Show ();
-                            alert.ResultEventHandler += (sender, e) => {
-                                if (e) {
-                                    if (Shared.Application.IsPad) {
-                                        //SimpleControl.Pad.WarningList.ShowWarningListPage ();
-                                    } else {
-                                        SimpleControl.Phone.UserMiddle.ShowSettingView ();
-                                        var msgView = new SimpleControl.Phone.WarningList ();
-                                        SimpleControl.Phone.UserMiddle.SettingPageView.AddChidren (msgView);
-                                        msgView.ShowWarningListPage ();
-                                        SimpleControl.Phone.UserMiddle.SettingPageView.PageIndex = 1;
-                                    }
-                                }
-                            };
-                        } else {
-                            if (Shared.Application.IsPad) {
-                                //SimpleControl.Pad.WarningList.ShowWarningListPage ();
-                            } else {
-                                SimpleControl.Phone.UserMiddle.ShowSettingView ();
-                                var msgView = new SimpleControl.Phone.WarningList ();
-                                SimpleControl.Phone.UserMiddle.SettingPageView.AddChidren (msgView);
-                                msgView.ShowWarningListPage ();
-                                SimpleControl.Phone.UserMiddle.SettingPageView.PageIndex = 1;
-                            }
-                        }
-                    });
-                }
-            });
-#endif
+//                        if (needTip) {
+//                            Alert alert = new Alert (Language.StringByID (SimpleControl.R.MyInternationalizationString.Tip),
+//                                                     tipMsg ,
+//                                                     Language.StringByID (SimpleControl.R.MyInternationalizationString.Close),
+//                                                     Language.StringByID (SimpleControl.R.MyInternationalizationString.Read));
+//                            alert.Show ();
+//                            alert.ResultEventHandler += (sender, e) => {
+//                                if (e) {
+//                                    if (Shared.Application.IsPad) {
+//                                        //SimpleControl.Pad.WarningList.ShowWarningListPage ();
+//                                    } else {
+//                                        SimpleControl.Phone.UserMiddle.ShowSettingView ();
+//                                        var msgView = new SimpleControl.Phone.WarningList ();
+//                                        SimpleControl.Phone.UserMiddle.SettingPageView.AddChidren (msgView);
+//                                        msgView.ShowWarningListPage ();
+//                                        SimpleControl.Phone.UserMiddle.SettingPageView.PageIndex = 1;
+//                                    }
+//                                }
+//                            };
+//                        } else {
+//                            if (Shared.Application.IsPad) {
+//                                //SimpleControl.Pad.WarningList.ShowWarningListPage ();
+//                            } else {
+//                                SimpleControl.Phone.UserMiddle.ShowSettingView ();
+//                                var msgView = new SimpleControl.Phone.WarningList ();
+//                                SimpleControl.Phone.UserMiddle.SettingPageView.AddChidren (msgView);
+//                                msgView.ShowWarningListPage ();
+//                                SimpleControl.Phone.UserMiddle.SettingPageView.PageIndex = 1;
+//                            }
+//                        }
+//                    });
+//                }
+//            });
+//#endif
         }
 
         public static RemoteInfo Current {

--
Gitblit v1.8.0