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