JLChen
2020-05-28 04bd96cbf5d12a4e4b116d2b05fd0d05ea81ee23
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
43
44
45
46
47
48
49
50
51
52
namespace Shared
{
    [System.Serializable]
    public class YiPanelLightDimming : YiPanelCommon
    {
        public YiPanelLightDimming ()
        {
            this.Type = DeviceType.LightDimming;
            DeviceTextID = SimpleControl.R.MyInternationalizationString.Lights;
        }
 
        /// <summary>
        /// 亮度
        /// </summary>
        public byte CurrentBrightness;
 
        /// <summary>
        /// 保存上一次打开的亮度
        /// </summary>
        public byte LastOpenBrightness = 100;
 
        /// <summary>
        /// 延时时间高位
        /// </summary>
        public byte DelayTimeHeight;
 
        /// <summary>
        /// 延时时间低位
        /// </summary>
        public byte DelayTimeLow;
 
        /// <summary>
        /// 底限
        /// </summary>
        public byte Minimum;
 
        /// <summary>
        /// 最大水平
        /// </summary>
        public byte MaxLevel;
 
        public bool DimmingFunction {
            get {
                return !UserConfig.Instance.UnEnableDimmingLight.Contains (CommonLoopID);
            }
        }
 
        public byte CustomDelayTimeOpen = 0;
        public byte CustomDelayTimeClose = 0;
     
    }
}