wxr
2020-07-23 5de5a26d3825b3182a7d3a18ed1cbdbb78a3f9aa
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 @@
        /// 如:是AC功能:特性: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");
                        //找不到属性需要声明一个,防止报错闪退
                        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");
                        //找不到属性需要声明一个,防止报错闪退
                        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>
        /// 更新时间