From d89a8ccb3d48d39f920b294c1966a3522ee8adbc Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期二, 23 二月 2021 17:17:37 +0800 Subject: [PATCH] 11 --- HDL_ON/Entity/Function/Function.cs | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs index 772be78..59a077a 100644 --- a/HDL_ON/Entity/Function/Function.cs +++ b/HDL_ON/Entity/Function/Function.cs @@ -157,6 +157,19 @@ /// 鍔熻兘鐘舵�佸垪琛� /// </summary> public List<AttributesStatus> status = new List<AttributesStatus>(); + /// <summary> + /// 鑾峰彇鐘舵�佸�� + /// </summary> + /// <returns></returns> + public string GetStatusValus(string key) + { + var d = status.Find((obj) => obj.key == key); + if(d==null) + { + return null; + } + return d.value; + } /// <summary> /// 鎴块棿ID鍒楄〃 @@ -672,6 +685,7 @@ /// </summary> public static class FunctionAttributeKey { + public const string _null = ""; /// <summary> /// 寮�鍏� /// </summary> @@ -720,6 +734,17 @@ /// value /// </summary> public const string Value = "value"; + /// <summary> + /// 鐘舵��,浼犳劅鍣� + /// </summary> + public const string Status = "status"; + + #region tuya + /// <summary> + /// 娑傞甫姘撮榾寮�鍚椂闂� + /// </summary> + public const string TuyaWaterTime = "countdown_1"; + #endregion } /// <summary> /// 璁惧鍔熻兘oid -- Gitblit v1.8.0