using System;
namespace Shared
{
///
/// 逻辑灯
///
[System.Serializable]
public class LightLogic : Common
{
public LightLogic ()
{
this.Type = DeviceType.LightLogic;
DeviceTextID = 3; //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;
///
/// R颜色值
///
public byte RStatus = 254;
///
/// G颜色值
///
public byte GStatus = 254;
///
/// B颜色值
///
public byte BStatus = 254;
///
/// W颜色值
///
public byte WStatus = 254;
///
/// CCT高位
///
public byte CTHStatus = 0;
///
/// CCT低位
///
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 ();
}
}
}
}