Exemplo n.º 1
0
 public void Update(DeviceOperate operate)
 {
     HumidityLimit    = operate.HumidityLimit;
     TemperatureLimit = operate.TemperatureLimit;
     RelayOne         = operate.RelayOne;
     RelayTwo         = operate.RelayTwo;
     Dehumidify       = operate.Dehumidify;
 }
Exemplo n.º 2
0
 public DeviceOperate(string parentID, DeviceOperate operate)
 {
     ID               = StringUtil.UniqueID();
     CreateTime       = DateTime.Now;
     OperateID        = parentID;
     DeviceCode       = operate.DeviceCode;
     HumidityLimit    = operate.HumidityLimit;
     TemperatureLimit = operate.TemperatureLimit;
     RelayOne         = operate.RelayOne;
     RelayTwo         = operate.RelayTwo;
     Dehumidify       = operate.Dehumidify;
 }