Files
cms_thermo_active/Thermo.Active.Model/DTOModels/DTOPowerOnDataModel.cs
T
2020-04-09 14:37:07 +02:00

36 lines
1.1 KiB
C#

using CMS_CORE_Library.Models;
using static CMS_CORE_Library.Models.DataStructures;
namespace Thermo.Active.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)
{
// Object is not a DTOPowerOnDataModel instance
if (!(obj is DTOPowerOnDataModel item))
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();
}
}
}