wxr
2020-03-19 b69d7735274b8d0f741da8a6bb8b8e1347477a5a
HDL_ON/Entity/Function/A_Protocol_FunctionInfo.cs
@@ -1,4 +1,6 @@
using 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协议功能的通行
        /// 如:是AC功能:特性包含:Switch/mode/fan/temperature
        /// </summary>
        public string trait = "";
        public string trait="";
        //string _trait;
        /// <summary>
        /// 功能附带的属性与值的列表
        /// </summary>
        public Dictionary<string, string> dicPropert;
    }
}