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;
|
}
|
}
|
|
/// <summary>
|
/// µ±Ç°×´Ì¬
|
/// </summary>
|
//public ONorOFF Status = ONorOFF.OFF;
|
public byte CurrentBrightness = 0;
|
|
/// <summary>
|
/// ÑÓʱʱ¼ä¸ßλ
|
/// </summary>
|
public byte DelayTimeHeight = 0;
|
|
/// <summary>
|
/// ÑÓʱʱ¼äµÍλ
|
/// </summary>
|
public byte DelayTimeLow = 0;
|
|
/// <summary>
|
/// ÊÇ·ñÊDzå×ù
|
/// </summary>
|
public bool IsSocket {
|
get {
|
bool issocket = UserConfig.Instance.SocketList.Contains (CommonLoopID);
|
//if (issocket)
|
// Type = DeviceType.LightSwithcSocket;
|
return issocket;
|
}
|
}
|
}
|
}
|