From 015d94a8c3a3bcdaa7de04a7fd7799046866db36 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 26 十一月 2021 09:52:02 +0800
Subject: [PATCH] 1

---
 SiriKit/HDLRunSceneIntentHandlder.cs |   41 ++++++-----------------------------------
 1 files changed, 6 insertions(+), 35 deletions(-)

diff --git a/SiriKit/HDLRunSceneIntentHandlder.cs b/SiriKit/HDLRunSceneIntentHandlder.cs
index ee43db0..6ab16bd 100644
--- a/SiriKit/HDLRunSceneIntentHandlder.cs
+++ b/SiriKit/HDLRunSceneIntentHandlder.cs
@@ -1,51 +1,22 @@
 锘縰sing System;
 using HDLSceneSiri;
+using ObjCRuntime;
 //using HdlSiri;
 
 namespace SiriKit
 {
     public class HDLRunSceneIntentHandlder : HDLRunSceneIntentHandling
     {
-
-        override public void ConfirmRunScene(HDLRunSceneIntent intent, Action<HDLRunSceneIntentResponse> completion)
+        public override void HandleHDLRunScene(HDLRunSceneIntent intent,  Action<HDLRunSceneIntentResponse> completion)
         {
-            Console.WriteLine("ConfirmRunScene");
-
-            //SceneDateManager sdm = new SceneDateManager();
-            //if(sdm.IsLgoin)
-            {
-                //鎵ц鎴愬姛
-                HDLRunSceneIntentResponse rsp = new HDLRunSceneIntentResponse(HDLRunSceneIntentResponseCode.Success,null);
-                rsp.SceneName = intent.SceneName;
-                rsp.SuccessMessage = @"璇风瓑寰�...";
-                completion(rsp);
-            }
-            //else
-            //{
-            //    completion(new HDLRunSceneIntentResponse(HDLRunSceneIntentResponseCode.Error, null) { ErrorMessage = "鏈櫥褰�" });
-            //}
-
+            var rsp = new HDLRunSceneIntentResponse(HDLRunSceneIntentResponseCode.InProgress, null);
+            completion(rsp);
         }
 
-        public override void HandleRunScene(HDLRunSceneIntent intent,  Action<HDLRunSceneIntentResponse> completion)
+        public override void ConfirmHDLRunScene(HDLRunSceneIntent intent,Action<HDLRunSceneIntentResponse> completion)
         {
-            Console.WriteLine("HandleRunScene");
+            completion(new HDLRunSceneIntentResponse(HDLRunSceneIntentResponseCode.Success, null));
 
-            //SceneDateManager sdm = new SceneDateManager();
-            //if (sdm.IsLgoin)
-            {
-                //鎵ц鎴愬姛
-                HDLRunSceneIntentResponse rsp = new HDLRunSceneIntentResponse(HDLRunSceneIntentResponseCode.Success, null);
-                rsp.SceneName = intent.SceneName;
-                rsp.SuccessMessage = @"鎵ц鎴愬姛";
-                completion(rsp);
-            }
-            //else
-            //{
-            //    completion(new HDLRunSceneIntentResponse(HDLRunSceneIntentResponseCode.Error, null) { ErrorMessage = "鏈櫥褰�" });
-            //}
-
-            //throw new NotImplementedException();
         }
     }
 }

--
Gitblit v1.8.0