36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using CMS_CORE_Library.Models;
|
|
using static CMS_CORE_Library.Models.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)
|
|
{
|
|
// 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();
|
|
}
|
|
}
|
|
} |