using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Shared
{
[System.Serializable]
public class LightSwitch : Common
{
public LightSwitch ()
{
if (UserConfig.Instance.SocketList.Contains (CommonLoopID)) {
Type = DeviceType.LightSwitchSocket;
DeviceTextID = SimpleControl.R.MyInternationalizationString.ElectricalControl;
} else {
this.Type = DeviceType.LightSwitch;
DeviceTextID = SimpleControl.R.MyInternationalizationString.Lights;
}
}
///
/// µ±Ç°×´Ì¬
///
//public ONorOFF Status = ONorOFF.OFF;
public byte CurrentBrightness = 0;
///
/// ÑÓʱʱ¼ä¸ßλ
///
public byte DelayTimeHeight = 0;
///
/// ÑÓʱʱ¼äµÍλ
///
public byte DelayTimeLow = 0;
///
/// ÊÇ·ñÊDzå×ù
///
public bool IsSocket {
get {
bool issocket = UserConfig.Instance.SocketList.Contains (CommonLoopID);
//if (issocket)
// Type = DeviceType.LightSwithcSocket;
return issocket;
}
}
}
}