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(); }
public IAsyncResult send_buyCoinProduct(AsyncCallback callback, object state, PaymentReservation paymentReservation)
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 }
public void buyCoinProduct(PaymentReservation paymentReservation) { #if !SILVERLIGHT send_buyCoinProduct(paymentReservation); recv_buyCoinProduct(); #else var asyncResult = Begin_buyCoinProduct(null, null, paymentReservation); End_buyCoinProduct(asyncResult); #endif }
public IAsyncResult Begin_buyCoinProduct(AsyncCallback callback, object state, PaymentReservation paymentReservation) { return send_buyCoinProduct(callback, state, paymentReservation); }
public IAsyncResult send_reservePayment(AsyncCallback callback, object state, PaymentReservation paymentReservation)
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 }
public IAsyncResult Begin_reservePayment(AsyncCallback callback, object state, PaymentReservation paymentReservation) { return send_reservePayment(callback, state, paymentReservation); }