using Aitex.Sorter.Common; using MECF.Framework.Common.CommonData; using MECF.Framework.Common.Equipment; using System; using System.Runtime.Serialization; namespace athosCore { [Serializable] [DataContract] public class JetRobotMoveInfo : NotifiableItem { public JetRobotMoveInfo(RobotAction action = RobotAction.None, Hand hand = Hand.Blade1, ModuleName target = ModuleName.Robot, int slot = 0) { Action = action; HandTarget = hand; TargetModule = target; Slot = slot; } public bool Equals(JetRobotMoveInfo target) { return target.Action == this.Action && target.HandTarget == this.HandTarget && target.TargetModule == this.TargetModule && target.Slot == this.Slot; } private ModuleName targetModule; [DataMember] public ModuleName TargetModule { get { return targetModule; } set { targetModule = value; InvokePropertyChanged("TargetModule"); } } private Hand handTarget; [DataMember] public Hand HandTarget { get => handTarget; set { handTarget = value; InvokePropertyChanged("HandTarget"); } } private RobotAction action; [DataMember] public RobotAction Action { get { return action; } set { action = value; InvokePropertyChanged("Action"); } } private int slot; [DataMember] public int Slot { get { return slot; } set { slot = value; InvokePropertyChanged("Slot"); } } } }