59 lines
1.7 KiB
C#
59 lines
1.7 KiB
C#
namespace Thermo.Active.Model.DTOModels.ThWarmers
|
|
{
|
|
public class DTOWarmers
|
|
{
|
|
/// <summary>
|
|
/// Channel Unique ID (from risk2007)
|
|
/// </summary>
|
|
public int IdChannel { get; set; } = 0;
|
|
/// <summary>
|
|
/// Reflector ID
|
|
/// </summary>
|
|
public int IdReflector { get; set; } = 0;
|
|
/// <summary>
|
|
/// Setpoint from HMI (%)
|
|
/// </summary>
|
|
public int SetpointHMI { get; set; } = 0;
|
|
public int SetpointTermocam { get; set; } = 0;
|
|
public int SetpointPLC { get; set; } = 0;
|
|
public int ChannelStatus { get; set; } = 0;
|
|
public double ActualCurrent { get; set; } = 0;
|
|
public int ActualPerc { get; set; } = 0;
|
|
public int MaxPower { get; set; } = 0;
|
|
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (!(obj is DTOWarmers item))
|
|
return false;
|
|
|
|
if (IdChannel != item.IdChannel)
|
|
return false;
|
|
if (IdReflector != item.IdReflector)
|
|
return false;
|
|
if (SetpointHMI != item.SetpointHMI)
|
|
return false;
|
|
if (SetpointTermocam != item.SetpointTermocam)
|
|
return false;
|
|
if (SetpointPLC != item.SetpointPLC)
|
|
return false;
|
|
if (ChannelStatus != item.ChannelStatus)
|
|
return false;
|
|
if (ActualCurrent != item.ActualCurrent)
|
|
return false;
|
|
if (ActualPerc != item.ActualPerc)
|
|
return false;
|
|
if (MaxPower != item.MaxPower)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
}
|
|
|
|
}
|