Пример #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) {
           PaymentReservation = new PaymentReservation();
           PaymentReservation.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
Пример #2
0
 public IAsyncResult send_buyCoinProduct(AsyncCallback callback, object state, PaymentReservation paymentReservation)
Пример #3
0
 public void send_buyCoinProduct(PaymentReservation paymentReservation)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("buyCoinProduct", TMessageType.Call, seqid_));
   buyCoinProduct_args args = new buyCoinProduct_args();
   args.PaymentReservation = paymentReservation;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Пример #4
0
      public void buyCoinProduct(PaymentReservation paymentReservation)
      {
        #if !SILVERLIGHT
        send_buyCoinProduct(paymentReservation);
        recv_buyCoinProduct();

        #else
        var asyncResult = Begin_buyCoinProduct(null, null, paymentReservation);
        End_buyCoinProduct(asyncResult);

        #endif
      }
Пример #5
0
 public IAsyncResult Begin_buyCoinProduct(AsyncCallback callback, object state, PaymentReservation paymentReservation)
 {
   return send_buyCoinProduct(callback, state, paymentReservation);
 }
Пример #6
0
 public IAsyncResult send_reservePayment(AsyncCallback callback, object state, PaymentReservation paymentReservation)
Пример #7
0
      public PaymentReservationResult reservePayment(PaymentReservation paymentReservation)
      {
        #if !SILVERLIGHT
        send_reservePayment(paymentReservation);
        return recv_reservePayment();

        #else
        var asyncResult = Begin_reservePayment(null, null, paymentReservation);
        return End_reservePayment(asyncResult);

        #endif
      }
Пример #8
0
 public IAsyncResult Begin_reservePayment(AsyncCallback callback, object state, PaymentReservation paymentReservation)
 {
   return send_reservePayment(callback, state, paymentReservation);
 }