public override void doOrderUpdate(DisplayOrder order, DisplayOperation operation) { // this is blind to the client }
public abstract void doOrderUpdate(DisplayOrder order, DisplayOperation operation);
public void setOperation(DisplayOperation operation) { if (null == operation) { return; } if (operation is LineItemsAddedOperation) { this.lineItemsAddedOperation = JsonUtils.serialize(operation); } else if (operation is LineItemsDeletedOperation) { this.lineItemsDeletedOperation = JsonUtils.serialize(operation); } else if (operation is DiscountsDeletedOperation) { this.discountsDeletedOperation = JsonUtils.serialize(operation); } else if (operation is DiscountsAddedOperation) { this.discountsAddedOperation = JsonUtils.serialize(operation); } else if (operation is OrderDeletedOperation) { this.orderDeletedOperation = JsonUtils.serialize(operation); } }
public override void doOrderUpdate(DisplayOrder order, DisplayOperation operation) { OrderUpdateMessage updateMessage = new OrderUpdateMessage(order); updateMessage.setOperation(operation); sendObjectMessage(updateMessage); }