Files
cms_thermo_active/Step.Model/DTOModels/DTOPowerOnDataModel.cs
T
Lucio Maranta a5d919e159 Optimized signalR messaging ( send messages only when there are changes )
Added broadcast method to send data to new clients
2018-02-20 11:32:25 +01:00

36 lines
1.1 KiB
C#

using static CMS_CORE_Library.DataStructures;
namespace Step.Model.DTOModels
{
public class DTOPowerOnDataModel
{
public PrePowerOnModel PrePowerOn { get; set; }
public PostPowerOnModel PostPowerOn { get; set; }
public AxisResetDataModel AxisReset;
public DTOPowerOnDataModel()
{
PrePowerOn = new PrePowerOnModel();
PostPowerOn = new PostPowerOnModel();
AxisReset = new AxisResetDataModel();
}
public override bool Equals(object obj)
{
var item = obj as DTOPowerOnDataModel;
// Object is not a DTOPowerOnDataModel instance
if (item == null)
return false;
// If one field is different, objects are different
if (!PrePowerOn.Equals(item.PrePowerOn) || !PostPowerOn.Equals(item.PostPowerOn) || !AxisReset.Equals(item.AxisReset))
return false;
return true;
}
public override int GetHashCode()
{
return base.GetHashCode();
}
}
}