From 8ccc71771efec9434ad3b4a45c5f2ec11326d40f Mon Sep 17 00:00:00 2001 From: lss <lsc@hdlchina.com.cn> Date: 星期五, 23 四月 2021 10:25:24 +0800 Subject: [PATCH] 2021-04-23 添加乐橙可视对讲 --- HDL_ON/Entity/FunctionList.cs | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Entity/FunctionList.cs b/HDL_ON/Entity/FunctionList.cs index fe72790..82b8dbe 100644 --- a/HDL_ON/Entity/FunctionList.cs +++ b/HDL_ON/Entity/FunctionList.cs @@ -70,6 +70,27 @@ var spkList = SPK.FhSpkList(); return Functions.FindAll((obj) => spkList.Contains(obj.spk)); } + + /// <summary> + /// 鏂伴鍒楄〃 + /// </summary> + /// <returns></returns> + public List<Function> GetAirFreshList() + { + var spkList = SPK.AirFreshSpkList(); + return Functions.FindAll((obj) => spkList.Contains(obj.spk)); + } + + /// <summary> + /// 鑳芥簮鍒楄〃 + /// </summary> + /// <returns></returns> + public List<Function> GetEnergyList() + { + var spkList = SPK.EnergySpkList(); + return Functions.FindAll((obj) => spkList.Contains(obj.spk)); + } + #region 瀹剁數鍒楄〃 electricals /// <summary> /// 瀹剁數鍒楄〃 @@ -107,6 +128,15 @@ return Functions.FindAll((obj) => spkList.Contains(obj.spk)); } + /// <summary> + /// 鍙瀵硅鍒楄〃,褰撲负null鎴杝ize涓�0鍒欎笉鏄剧ず鍙瀵硅icon + /// </summary> + // public UI.UI2.FuntionControlView.Video.VideoClouds videoIntercom; + public List<UI.UI2.FuntionControlView.Video.Video> videoIntercom = new List<UI.UI2.FuntionControlView.Video.Video>(); + + /// <summary> + /// 鍦烘櫙鍒楄〃 + /// </summary> public List<Scene> scenes = new List<Scene>(); /// <summary> @@ -127,6 +157,7 @@ var tempFunction = Newtonsoft.Json.JsonConvert.DeserializeObject<Function>(functionDataString); if (tempFunction == null) { + MainPage.Log("null"); FileUtlis.Files.DeleteFile(filePath); return; } @@ -247,6 +278,7 @@ List.scenes.Remove(scene); } } + /// <summary> /// 鍒犻櫎鏈湴鍔熻兘鍙婃枃浠� /// </summary> @@ -364,6 +396,7 @@ }) { IsBackground = true }.Start(); } + #region 鍦烘櫙鐩稿叧 /// <summary> /// 娣诲姞鍦烘櫙 -- Gitblit v1.8.0