using System.Collections.Generic; using System.Linq; namespace Step.Model.DTOModels { public class DTOAxesModel { public Dictionary interpolated; public Dictionary machine; public Dictionary programmePos; public Dictionary toGo; public Dictionary followingErr; public DTOAxesModel() { interpolated = new Dictionary(); machine = new Dictionary(); programmePos = new Dictionary(); toGo = new Dictionary(); followingErr = new Dictionary(); } public struct AxisModel { public string name; public double value; } public override bool Equals(object obj) { var item = obj as DTOAxesModel; if (item == null) return false; if (!interpolated.SequenceEqual(item.interpolated)) return false; if (!machine.SequenceEqual(item.machine)) return false; if (!programmePos.SequenceEqual(item.programmePos)) return false; if (!toGo.SequenceEqual(item.toGo)) return false; if (!followingErr.SequenceEqual(item.followingErr)) return false; return true; } public override int GetHashCode() { return base.GetHashCode(); } } }