Exemple #1
0
 public CreateOrder(DraftOrderData order, DraftAllocationData allocation)
 {
     draft_order_message = DraftOrderMessage.CreateBuilder()
                           .SetDraftOrderData(order)
                           .AddDraftAllocationData(allocation)
                           .Build();
 }
Exemple #2
0
        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();
        }
Exemple #3
0
 public CreateOrder(DraftOrderMessage draft_order)
 {
     draft_order_message = draft_order;
 }