wxr
2020-03-13 171bf03f3664226eeff2b20ee9bd2e914b63a17d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
namespace HDL_ON.Entity
{
    public class Curtain : Function
    {
        /*
        窗帘属性列表:trait: [switch,openLevel,lock]
        属性    描述
        switch    on/off/stop;
        openLevel    0-100;
        lock    boolean (Lock锁定控制)
        */
        public Curtain()
        {
        }
        /// <summary>
        /// 窗帘状态
        /// 0停;1开;2关
        /// </summary>
        public byte state = 0;
 
 
        /// <summary>
        /// 获取功能类型
        /// </summary>
        /// <returns></returns>
        protected override string GetFunctionType()
        {
            string type = "Curtain";
            if (PropertyArray.Contains("curtaintype"))
            {
                type = "MotorCurtain";
                if (PropertyArray.Contains("rollingshutter"))
                {
                    type = "RollingShutter";
                }
            }
            return type;
        }
 
    }
}