1
wxr
2023-03-31 7e42cc13a14b7de31c9f5d5c61cdf24f3246335d
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
using System;
namespace Shared
{
[System.Serializable]
    public class LightLogic : Common
    {
        public LightLogic ()
        {
            this.Type = DeviceType.LightLogic;
            DeviceTextID = SimpleControl.R.MyInternationalizationString.Lights;
        }
        public byte LastOpenBrightness = 0;
 
        public byte CurrentBrightness = 0;
 
        public byte CustomDelayTimeOpen = 0;
        public byte CustomDelayTimeClose = 0;
 
        public byte DelayTimeHeigh = 0;
 
        public byte DelayTimeLow = 0;
 
        public byte RStatus = 254;
        public byte GStatus = 254;
        public byte BStatus = 254;
        public byte WStatus = 254;
        public byte CTHStatus = 0;
        public byte CTLStatus = 0;
 
        public bool DimmingFunction {
            get {
                return !UserConfig.Instance.UnEnableDimmingLight.Contains (LightDimmingID);
            }
        }
 
        public string LightDimmingID {
            get {
                return this.SubnetID.ToString () + "_" + this.DeviceID.ToString () + "_" + LoopID.ToString ();
            }
        }
 
    }
}