namespace Shared
|
{
|
[System.Serializable]
|
public class LightDimming:Common
|
{
|
public LightDimming()
|
{
|
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;
|
|
}
|
|
[System.Serializable]
|
public class LightDALI : LightDimming
|
{
|
public LightDALI ()
|
{
|
this.Type = DeviceType.LightDALI;
|
DeviceTextID = SimpleControl.R.MyInternationalizationString.Lights;
|
}
|
/// <summary>
|
/// DALIÊÇ·ñÁ¬½ÓÁ˵ƹâ
|
/// </summary>
|
public byte LinkLightStatus;
|
|
public bool DALIModule = true;
|
}
|
}
|