示例#1
0
 public static async Task <BlockList> PlaceBlockOrder(this IAuctionApiClient apiClient,
                                                      BlockOrderRequest blockOrder)
 {
     try
     {
         return(await apiClient.PostBlockOrderAsync(blockOrder));
     }
     catch (ApiException exception)
     {
         throw ConstructApiException(exception);
     }
 }
示例#2
0
        public static void WriteBlockOrderRequest(BlockOrderRequest blockOrderRequest)
        {
            Console.WriteLine($"AuctionId: {blockOrderRequest.AuctionId}");
            Console.WriteLine($"AreaCode: {blockOrderRequest.AreaCode}");
            Console.WriteLine($"Portfolio: {blockOrderRequest.Portfolio}");

            Console.WriteLine("Blocks:");

            foreach (var block in blockOrderRequest.Blocks)
            {
                WriteBlock(block);
            }
        }