示例#1
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 2:
         if (field.Type == TType.Struct) {
           Request = new CoinPurchaseReservation();
           Request.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
示例#2
0
 public void send_reserveCoinPurchase(CoinPurchaseReservation request)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("reserveCoinPurchase", TMessageType.Call, seqid_));
   reserveCoinPurchase_args args = new reserveCoinPurchase_args();
   args.Request = request;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
示例#3
0
      public PaymentReservationResult reserveCoinPurchase(CoinPurchaseReservation request)
      {
        #if !SILVERLIGHT
        send_reserveCoinPurchase(request);
        return recv_reserveCoinPurchase();

        #else
        var asyncResult = Begin_reserveCoinPurchase(null, null, request);
        return End_reserveCoinPurchase(asyncResult);

        #endif
      }
示例#4
0
 public IAsyncResult send_reserveCoinPurchase(AsyncCallback callback, object state, CoinPurchaseReservation request)
示例#5
0
 public IAsyncResult Begin_reserveCoinPurchase(AsyncCallback callback, object state, CoinPurchaseReservation request)
 {
   return send_reserveCoinPurchase(callback, state, request);
 }