From c2b68b777ddd4d9733e3bd64746929295c04ec45 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 10 八月 2020 11:53:45 +0800
Subject: [PATCH] 2020-08-10-1

---
 ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs |    2 
 ZigbeeApp/.vs/GateWay/xs/UserPrefs.xml              |   24 +++++++-----
 ZigbeeApp/GateWay.Droid/Application.cs              |   50 ++++++------------------
 ZigbeeApp/.vs/GateWay/xs/sqlite3/storage.ide        |    0 
 .DS_Store                                           |    0 
 5 files changed, 28 insertions(+), 48 deletions(-)

diff --git a/.DS_Store b/.DS_Store
index 8753efe..e82cf34 100644
--- a/.DS_Store
+++ b/.DS_Store
Binary files differ
diff --git a/ZigbeeApp/.vs/GateWay/xs/UserPrefs.xml b/ZigbeeApp/.vs/GateWay/xs/UserPrefs.xml
index 22a7054..e4c6ff0 100644
--- a/ZigbeeApp/.vs/GateWay/xs/UserPrefs.xml
+++ b/ZigbeeApp/.vs/GateWay/xs/UserPrefs.xml
@@ -1,21 +1,25 @@
 锘�<Properties StartupConfiguration="{28EDE1FF-20EF-476B-8AF8-24A3EEB69F45}|Default">
   <MonoDevelop.Ide.ItemProperties.GateWay.Droid AndroidDesignerPreferredTheme="MyTheme1" AndroidDesignerPreferredDevice="Nexus 4" PreferredExecutionTarget="Android.5c86e4357d63" />
   <MonoDevelop.Ide.ItemProperties.ShardLib PreferredExecutionTarget="Android.Android_Accelerated_Oreo" />
-  <MonoDevelop.Ide.Workbench>
+  <MonoDevelop.Ide.Workbench ActiveDocument="Shared/Phone/Device/Logic/AddLogicPage.cs">
+    <Files>
+      <File FileName="GateWay.Droid/Application.cs" Line="471" Column="17" />
+      <File FileName="GateWay.Droid/VideoActivity.cs" Line="1" Column="1" />
+      <File FileName="Shared/Phone/Device/Logic/AddLogicPage.cs" Line="69" Column="28" />
+    </Files>
     <Pads>
       <Pad Id="ProjectPad">
         <State name="__root__">
           <Node name="GateWay" expanded="True">
-            <Node name="GateWay.Droid" expanded="True">
-              <Node name="Properties" expanded="True">
-                <Node name="AndroidManifest.xml" selected="True" />
-              </Node>
-            </Node>
+            <Node name="GateWay.Droid" expanded="True" />
             <Node name="Shared" expanded="True">
-              <Node name="Common" expanded="True" />
               <Node name="Phone" expanded="True">
-                <Node name="Login" expanded="True" />
-                <Node name="UserView" expanded="True" />
+                <Node name="Device" expanded="True">
+                  <Node name="Logic" expanded="True">
+                    <Node name="AddLogicPage.cs" selected="True" />
+                  </Node>
+                </Node>
+                <Node name="VideoPhone" expanded="True" />
               </Node>
             </Node>
           </Node>
@@ -25,7 +29,7 @@
   </MonoDevelop.Ide.Workbench>
   <MonoDevelop.Ide.ItemProperties.Home.IOS automaticSigning="False" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget.00008020-001674E61438002E" />
   <MonoDevelop.Ide.DebuggingService.PinnedWatches />
-  <MonoDevelop.Ide.Workspace ActiveConfiguration="Release|iPhoneSimulator" />
+  <MonoDevelop.Ide.Workspace ActiveConfiguration="Release|iPhone" />
   <MonoDevelop.Ide.DebuggingService.Breakpoints>
     <BreakpointStore />
   </MonoDevelop.Ide.DebuggingService.Breakpoints>
diff --git a/ZigbeeApp/.vs/GateWay/xs/sqlite3/storage.ide b/ZigbeeApp/.vs/GateWay/xs/sqlite3/storage.ide
index 4bcec99..0fd8ac0 100644
--- a/ZigbeeApp/.vs/GateWay/xs/sqlite3/storage.ide
+++ b/ZigbeeApp/.vs/GateWay/xs/sqlite3/storage.ide
Binary files differ
diff --git a/ZigbeeApp/GateWay.Droid/Application.cs b/ZigbeeApp/GateWay.Droid/Application.cs
index 8928f90..96899e7 100644
--- a/ZigbeeApp/GateWay.Droid/Application.cs
+++ b/ZigbeeApp/GateWay.Droid/Application.cs
@@ -247,6 +247,12 @@
         /// <param name="bundle">Bundle.</param>
         private void OpenNotification(Context context, Bundle bundle)
         {
+
+            Intent i = new Intent(context, typeof(BaseActivity));//Intent intent=new Intent( 璧峰缁勪欢瀵硅薄 , 鐩爣 Service.class);
+            i.PutExtras(bundle);
+            i.SetFlags(ActivityFlags.NewTask);
+            context.StartActivity(i);
+
             String extras = bundle.GetString(JPushInterface.ExtraExtra);
             //String myValue = "";
             try
@@ -261,10 +267,7 @@
                 System.Console.WriteLine(TAG, "Unexpected: extras is not a valid json", e);
                 return;
             }
-            Intent i = new Intent(context, typeof(BaseActivity));//Intent intent=new Intent( 璧峰缁勪欢瀵硅薄 , 鐩爣 Service.class);
-            i.PutExtras(bundle);
-            i.SetFlags(ActivityFlags.NewTask);
-            context.StartActivity(i);
+         
             //if (TYPE_THIS.equals(myValue))
             //{
             //Intent mIntent = new Intent(context, ThisActivity.class);
@@ -282,42 +285,15 @@
         }
 
 
-        /// <summary>
-        /// android閫氱煡鏍忕偣鍑绘墦寮�鍙瀵硅鐨勬柟娉�
-        /// </summary>
-        /// <param name="hiddenJson">浜戠鎺ㄨ繃鏉ョ殑鏁版嵁</param>
-        private void VideoMethod(string hiddenJson)
-        {
 
-            var json = Newtonsoft.Json.Linq.JObject.Parse(hiddenJson);
-            if (json == null)
-            {
-                return;
-            }
-            Shared.Phone.VideoPhone.ESVideoInfo eSVideoInfo = new Shared.Phone.VideoPhone.ESVideoInfo();
-            if (json["uuid"].ToString().Contains(","))
-            {
-                var uuid = json["uuid"].ToString().Split(',');
-                eSVideoInfo.ESVideoUUID = uuid[0];
-            }
-            else
-            {
-                eSVideoInfo.ESVideoUUID = json["uuid"].ToString();
-            }
 
-            eSVideoInfo.DeviceName = Language.StringByID(Shared.R.MyInternationalizationString.theOutdoorUnit);
-            eSVideoInfo.ESRoomID = int.Parse(json["roomno"].ToString());
-            if (!string.IsNullOrEmpty(json["unitno"].ToString()))
-            {
-                string str = json["unitno"].ToString();
-                string str1 = str.Substring(0, 2).TrimStart('0');
-                string str2 = str.Substring(2, 2).TrimStart('0');
-                eSVideoInfo.RoomName = str1 + Language.StringByID(Shared.R.MyInternationalizationString.dong) + str2 + Language.StringByID(Shared.R.MyInternationalizationString.unit);
-            }
-            Shared.Phone.VideoPhone.ESVideo.ShowESvideoVideoIntercom(eSVideoInfo);
 
-            //var url = "https://global.hdlcontrol.com/HangZhouHdlCloudApi/VideoIntercom/Answer";
-            //var dd=await Shared.Phone.Device.Logic.Send.HttpWebRequest(url, json.ToString(), "POST", 3, true);
+
+
+
+
+        /// <summary>
        /// android閫氱煡鏍忕偣鍑绘墦寮�鍙瀵硅鐨勬柟娉�
        /// </summary>
        /// <param name="hiddenJson">浜戠鎺ㄨ繃鏉ョ殑鏁版嵁</param>
        private void VideoMethod(string hiddenJson)
        {
            
            var hiddanJson = Newtonsoft.Json.Linq.JObject.Parse(hiddenJson);
            if (hiddanJson == null)
            {
                return;
            }
            var json = Newtonsoft.Json.Linq.JObject.Parse(hiddanJson["HiddanJson"].ToString());
            if (json == null)
            {
                return;
            }
            Shared.Phone.VideoPhone.ESVideoInfo eSVideoInfo = new Shared.Phone.VideoPhone.ESVideoInfo();
            if (json["uuid"].ToString().Contains(","))
            {
                var uuid = json["uuid"].ToString().Split(',');
                eSVideoInfo.ESVideoUUID = uuid[0];

            }
            else
            {
                eSVideoInfo.ESVideoUUID = json["uuid"].ToString();
            }

            eSVideoInfo.DeviceName = Language.StringByID(Shared.R.MyInternationalizationString.theOutdoorUnit);
            eSVideoInfo.ESRoomID = int.Parse(json["roomno"].ToString());
            if (!string.IsNullOrEmpty(json["unitno"].ToString()))
            {
                string str = json["unitno"].ToString();
                string str1 = str.Substring(0, 2).TrimStart('0');
                string str2 = str.Substring(2, 2).TrimStart('0');
                eSVideoInfo.RoomName = str1 + Language.StringByID(Shared.R.MyInternationalizationString.dong) + str2 + Language.StringByID(Shared.R.MyInternationalizationString.unit);
            }
            Shared.Phone.VideoPhone.ESVideo.ShowESvideoVideoIntercom(eSVideoInfo);
+
         }
     }
 }
diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs b/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs
index afa6567..bb9f7cb 100644
--- a/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs
@@ -66,7 +66,6 @@
 
             timeView.clickviewBtn.MouseUpEventHandler += (sender, e) =>
             {
-
                 TimeView();
             };
             functionView.clickviewBtn.MouseUpEventHandler += (sender, e) =>
@@ -577,6 +576,7 @@
             };
         }
 
+
     }
 
 }

--
Gitblit v1.8.0