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 (); } } } }