From b69d7735274b8d0f741da8a6bb8b8e1347477a5a Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 19 三月 2020 17:14:16 +0800 Subject: [PATCH] 20200319 --- HDL_ON/Entity/Function/A_Protocol_FunctionInfo.cs | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/HDL_ON/Entity/Function/A_Protocol_FunctionInfo.cs b/HDL_ON/Entity/Function/A_Protocol_FunctionInfo.cs index 55c6d64..9d4ac6b 100644 --- a/HDL_ON/Entity/Function/A_Protocol_FunctionInfo.cs +++ b/HDL_ON/Entity/Function/A_Protocol_FunctionInfo.cs @@ -1,4 +1,6 @@ 锘縰sing System; +using System.Collections.Generic; + namespace HDL_ON.Entity { public class A_Protocol_FunctionInfo @@ -15,6 +17,17 @@ 涓句緥锛� 0001-00-2019101209001234-01-0001-0001 */ + public A_Protocol_FunctionInfo() + { + dicPropert = new Dictionary<string, string>(); + if (!string.IsNullOrEmpty(trait)) + { + foreach (string t in trait.Split(",", StringSplitOptions.None)) + { + dicPropert.TryAdd(t, ""); + } + } + } /// <summary> /// 鍔熻兘绫诲埆 /// 濡傦細绌鸿皟绫汇�佺伅鍏夌被銆佺獥甯樼被 @@ -43,8 +56,13 @@ /// A鍗忚鍔熻兘鐨勯�氳 /// 濡傦細鏄疉C鍔熻兘锛氱壒鎬у寘鍚細Switch/mode/fan/temperature /// </summary> - public string trait = ""; + public string trait=""; + //string _trait; + /// <summary> + /// 鍔熻兘闄勫甫鐨勫睘鎬т笌鍊肩殑鍒楄〃 + /// </summary> + public Dictionary<string, string> dicPropert; } } -- Gitblit v1.8.0