public void Update(ClientToServerMessage other) { ClientId = other.ClientId; MessageType = other.MessageType; LimitOrder.Update(other.LimitOrder); MarketOrder.Update(other.MarketOrder); StopLimitOrder.Update(other.StopLimitOrder); DuoLimitOrder.Update(other.DuoLimitOrder); }
public void Update(IServerToClientMessage other) { Reset(); MessageType = other.MessageType; LimitOrder.Update(other.LimitOrder); LimitOrderList.AddRange(other.LimitOrderList); StopLimitOrderList.AddRange(other.StopLimitOrderList); Message = other.Message; ReceiverClientId = other.ReceiverClientId; Execution.Update(other.Execution); Level1.Update(other.Level1); StopLimitOrder.Update(other.StopLimitOrder); }