protected InPortCargo(InPortCargo previousState, IItinerary newItinerary) : base(previousState, newItinerary) { _lastKnownLocation = previousState._lastKnownLocation; _date = previousState._date; _customCleared = previousState._customCleared; }
protected InPortCargo(InPortCargo previousState, DateTime clearCustomDate) : base(previousState) { _lastKnownLocation = previousState._lastKnownLocation; _customCleared = true; _date = clearCustomDate; }
protected InPortCargo(InPortCargo previousState, IRouteSpecification newRoute) : base(previousState, newRoute) { _lastKnownLocation = previousState._lastKnownLocation; _date = previousState._date; _customCleared = previousState._customCleared; }
public override bool Equals(CargoState other) { InPortCargo cargo = other as InPortCargo; if (null != cargo && !_customCleared.Equals(cargo._customCleared)) { return(false); } return(base.Equals(other)); }