From 3d4996d54a0508724b199b5c4f50e2a02ec86103 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期五, 26 二月 2021 15:04:27 +0800
Subject: [PATCH] 添加萤石功能
---
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