From 5de5a26d3825b3182a7d3a18ed1cbdbb78a3f9aa Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 23 七月 2020 16:39:59 +0800 Subject: [PATCH] 2020-07-23 --- HDL_ON/Entity/Function/Function.cs | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs index 8808a33..64225a0 100644 --- a/HDL_ON/Entity/Function/Function.cs +++ b/HDL_ON/Entity/Function/Function.cs @@ -30,6 +30,11 @@ public int min; /// <summary> + /// + /// </summary> + public string data_type = ""; + + /// <summary> /// 褰撳墠鍊� /// app杞欢鑷畾涔夊睘鎬� /// 鐢ㄦ潵璁板綍褰撳墠鐘舵�� @@ -48,6 +53,7 @@ 鏁版嵁琛ㄧ储寮曞湴鍧�锛�2bytes 鍥炶矾锛�2bytes 涓句緥锛� 0001-00-2019101209001234-01-0001-0001 + 0001-01-14051D0A300C92C9-02-0202-0001-0001 */ public Function() { @@ -86,7 +92,7 @@ /// 濡傦細鏄疉C鍔熻兘锛氱壒鎬э細on_off,mode,fan,temperature /// attri /// </summary> - public List<Trait> propertList = new List<Trait>(); + public List<Trait> function = new List<Trait>(); /// <summary> /// 鎴块棿ID鍒楄〃 @@ -178,7 +184,7 @@ { if (trait_on_off == null) { - trait_on_off = propertList.Find((obj) => obj.attri == "on_off"); + trait_on_off = function.Find((obj) => obj.attri == "on_off"); //鎵句笉鍒板睘鎬ч渶瑕佸0鏄庝竴涓紝闃叉鎶ラ敊闂�� if (trait_on_off == null) { @@ -197,7 +203,7 @@ catch { MainPage.Log("on_off 鏁版嵁鑾峰彇澶辫触."); - propertList.Add( new Trait() + function.Add( new Trait() { attri = "on_off", value = new List<string> { "on", "off" }, @@ -213,7 +219,7 @@ { if (trait_on_off == null) { - trait_on_off = propertList.Find((obj) => obj.attri == "on_off"); + trait_on_off = function.Find((obj) => obj.attri == "on_off"); //鎵句笉鍒板睘鎬ч渶瑕佸0鏄庝竴涓紝闃叉鎶ラ敊闂�� if (trait_on_off == null) { @@ -232,7 +238,7 @@ catch (Exception ex) { MainPage.Log($"on_off 鏁版嵁鍒锋柊澶辫触: {ex.Message}"); - propertList.Add(new Trait() + function.Add(new Trait() { attri = "on_off", value = new List<string> { "on", "off" }, @@ -309,7 +315,6 @@ } return roomNameList; } - /// <summary> /// 鏇存柊鏃堕棿 -- Gitblit v1.8.0