tbf/Config/Entities/HeatMetersPath.cs
2016-08-04 14:01:54 +02:00

65 lines
2.0 KiB
C#

///
/// Copyright (c) 2016 Sensus Metering Systems
///
using System;
namespace Config.Entities
{
public class HeatMetersPath : IHasItemNr
{
public virtual int Id { get; protected set; }
public virtual int ItemNr { get; set; }
public virtual string Name { get; set; }
public virtual float TempWarmFrom { get; set; } /// Warm temperature range from [°C]
public virtual float TempWarmTo { get; set; } /// Warm temperature range to [°C]
public virtual float TempColdFrom { get; set; } /// Cold temperature range from [°C]
public virtual float TempColdTo { get; set; } /// Cold temperature renge to [°C]
public virtual string TempWarmRef1 { get; set; }
public virtual string TempWarmRef2 { get; set; }
public virtual string TempColdRef1 { get; set; }
public virtual string TempColdRef2 { get; set; }
public virtual string TempBath1 { get; set; }
public virtual string TempBath2 { get; set; }
public virtual string TempBath3 { get; set; }
public virtual string TempBath4 { get; set; }
/// ------------- Additional stuff not mapped into the database -------------
public HeatMetersPath()
{
}
public HeatMetersPath(string name, int itemNr)
: this()
{
Name = name;
ItemNr = itemNr;
}
public virtual HeatMetersPath Clone(string name, int itemNr)
{
HeatMetersPath result = new HeatMetersPath(name, itemNr);
result.TempWarmFrom = TempWarmFrom;
result.TempWarmTo = TempWarmTo;
result.TempColdFrom = TempColdFrom;
result.TempColdTo = TempColdTo;
result.TempWarmRef1 = TempWarmRef1;
result.TempWarmRef2 = TempWarmRef2;
result.TempColdRef1 = TempColdRef1;
result.TempColdRef2 = TempColdRef2;
result.TempBath1 = TempBath1;
result.TempBath2 = TempBath2;
result.TempBath3 = TempBath3;
result.TempBath4 = TempBath4;
return result;
}
}
}