namespace Shared
{
[System.Serializable]
public class LightDimming:Common
{
public LightDimming()
{
this.Type = DeviceType.LightDimming;
DeviceTextID = SimpleControl.R.MyInternationalizationString.Lights;
}
///
/// ÁÁ¶È
///
public byte CurrentBrightness;
///
/// ±£´æÉÏÒ»´Î´ò¿ªµÄÁÁ¶È
///
public byte LastOpenBrightness = 100;
///
/// ÑÓʱʱ¼ä¸ßλ
///
public byte DelayTimeHeight;
///
/// ÑÓʱʱ¼äµÍλ
///
public byte DelayTimeLow;
///
/// µ×ÏÞ
///
public byte Minimum;
///
/// ×î´óˮƽ
///
public byte MaxLevel;
public bool DimmingFunction {
get {
return !UserConfig.Instance.UnEnableDimmingLight.Contains (CommonLoopID);
}
}
public byte CustomDelayTimeOpen = 0;
public byte CustomDelayTimeClose = 0;
}
[System.Serializable]
public class LightDALI : LightDimming
{
public LightDALI ()
{
this.Type = DeviceType.LightDALI;
DeviceTextID = SimpleControl.R.MyInternationalizationString.Lights;
}
///
/// DALIÊÇ·ñÁ¬½ÓÁ˵ƹâ
///
public byte LinkLightStatus;
public bool DALIModule = true;
}
}