public CreateOrder(DraftOrderData order, DraftAllocationData allocation) { draft_order_message = DraftOrderMessage.CreateBuilder() .SetDraftOrderData(order) .AddDraftAllocationData(allocation) .Build(); }
public CreateOrder(DraftOrderData order, ArrayList allocations) { DraftOrderMessage.Builder builder = DraftOrderMessage.CreateBuilder(); builder.SetDraftOrderData(order); foreach (DraftAllocationData allocation in allocations) { builder.AddDraftAllocationData(allocation); } draft_order_message = builder.Build(); }
public CreateOrder(DraftOrderMessage draft_order) { draft_order_message = draft_order; }