using System;
|
namespace Shared
|
{
|
[System.Serializable]
|
public class LightEnergySocket : LightSwitch
|
{
|
public LightEnergySocket ()
|
{
|
this.Type = DeviceType.LightEnergySocket;
|
DeviceTextID = SimpleControl.R.MyInternationalizationString.ElectricalControl;
|
}
|
|
/// <summary>
|
/// 电压
|
/// </summary>
|
public byte Voltage = 0;
|
/// <summary>
|
/// 电流
|
/// </summary>
|
public byte ElectricCurrent = 0;
|
/// <summary>
|
/// 功率
|
/// </summary>
|
public byte Power = 0;
|
/// <summary>
|
/// 电能
|
/// </summary>
|
public byte ElectricEnergy = 0;
|
}
|
|
public class LightEnergySwitch : LightSwitch
|
{
|
public LightEnergySwitch ()
|
{
|
this.Type = DeviceType.LightEnergySwitch;
|
DeviceTextID = SimpleControl.R.MyInternationalizationString.ElectricalControl;
|
}
|
|
/// <summary>
|
/// 电压
|
/// </summary>
|
public byte Voltage = 0;
|
/// <summary>
|
/// 电流
|
/// </summary>
|
public byte ElectricCurrent = 0;
|
/// <summary>
|
/// 功率
|
/// </summary>
|
public byte Power = 0;
|
/// <summary>
|
/// 电能
|
/// </summary>
|
public byte ElectricEnergy = 0;
|
}
|
}
|