From dc9a1b15bb69227e19afc070adf58156a362d2a2 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期一, 30 九月 2024 17:07:58 +0800 Subject: [PATCH] 安卓可视对讲响铃, --- HDL_ON/Entity/FunctionList.cs | 66 ++++++++++++++++++++++----------- 1 files changed, 44 insertions(+), 22 deletions(-) diff --git a/HDL_ON/Entity/FunctionList.cs b/HDL_ON/Entity/FunctionList.cs index f91b737..a2fc90f 100644 --- a/HDL_ON/Entity/FunctionList.cs +++ b/HDL_ON/Entity/FunctionList.cs @@ -111,7 +111,7 @@ /// <returns></returns> public List<Function> GetAcstParentList() { - return Functions.FindAll((obj) => obj.spk == SPK.AcstParent);//.OrderByDescending(o=>o.controlCounter).ToList() + return Functions.FindAll((obj) => obj.spk == SPK.AcstParent); } /// <summary> @@ -122,6 +122,28 @@ public List<Function> GetAcstSubList() { return Functions.FindAll((obj) => obj.spk == SPK.AcstSub); + } + /// <summary> + /// 缁垮缓绉戞妧绯荤粺 + /// 鐑按鍣ㄥ垪琛� + /// </summary> + /// <returns></returns> + public List<Function> GetWaterHeaterJinmaoList() + { + return Functions.FindAll((obj) => obj.spk == SPK.WaterHeaterJinmao); + } + /// <summary> + /// 閲戣寕鍏変紡鍌ㄨ兘 + /// </summary> + /// <returns></returns> + public List<Function> GetInverterJinmaoList() + { + var tempList = Functions.FindAll((obj) => obj.spk == SPK.InverterJinmao); + foreach(var device in tempList) + { + device.collect = true; + } + return tempList; } /// <summary> @@ -228,11 +250,11 @@ /// </summary> public List<Function> GetElectricals() { - var spkList = SPK.ElectricalSpkList(); + var spkList = SPK.ElectricalSpkList(); return Functions.FindAll((obj) => spkList.Contains(obj.spk)); } - - + + /// <summary> /// 绾㈠瀹濆垪琛� /// </summary> @@ -240,7 +262,7 @@ { return Functions.FindAll((obj) => obj.spk == SPK.IrModule); } -#endregion + #endregion /// <summary> /// 闊充箰鍒楄〃 @@ -304,7 +326,7 @@ { get { - if(_OtherBrandFunction == null) + if (_OtherBrandFunction == null) { _OtherBrandFunction = new List<Function>(); var spkList = SPK.GetAll3tySPK(); @@ -372,9 +394,9 @@ { //妫�娴嬮噸澶� var same = Functions.FindAll((obj) => obj.deviceId == tempFunction.deviceId); - if(same!= null) + if (same != null) { - foreach(var sameTemp in same) + foreach (var sameTemp in same) { Functions.Remove(sameTemp); } @@ -446,7 +468,7 @@ { } else - { + { switch (brandType) { case SPK.BrandType.Hdl: @@ -513,11 +535,11 @@ /// <summary> /// 鍔熻兘缁戝畾鎴块棿 /// </summary> - public string FunctionsBindRooms(List<string> roomIds,List<string> deviceIds) + public string FunctionsBindRooms(List<string> roomIds, List<string> deviceIds) { var pm = new HttpServerRequest(); var pack = pm.BindDeviceToRoom(deviceIds, roomIds); - if(pack.Code == StateCode.SUCCESS) + if (pack.Code == StateCode.SUCCESS) { } @@ -531,7 +553,7 @@ /// <summary> /// 鍒犻櫎鍦烘櫙 /// </summary> - public void DeleteScene(Scene scene,bool upSevser) + public void DeleteScene(Scene scene, bool upSevser) { if (upSevser) { @@ -614,7 +636,7 @@ { Read3tyFunctionStatus(); - if(DriverLayer.Control.Ins.GatewayOnline_Local) + if (DriverLayer.Control.Ins.GatewayOnline_Local) { //List<Function> functions = GetDeviceFunctionList(SPK.BrandType.Hdl); @@ -678,12 +700,12 @@ MainPage.Log($"缁撴潫--璇诲彇"); } - + }) { IsBackground = true }.Start(); } -#region 鍦烘櫙鐩稿叧 + #region 鍦烘櫙鐩稿叧 /// <summary> /// 娣诲姞鍦烘櫙 /// </summary> @@ -715,10 +737,10 @@ } return revPack.Code; } -#endregion + #endregion -#region 鏀惰棌鍔熻兘 - + #region 鏀惰棌鍔熻兘 + /// <summary> /// 鏀惰棌鍦烘櫙 /// </summary> @@ -743,14 +765,14 @@ return result; } -#endregion + #endregion -#region - + #region -#endregion + + #endregion } } -- Gitblit v1.8.0