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(); }
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 }
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 }
public IAsyncResult send_reserveCoinPurchase(AsyncCallback callback, object state, CoinPurchaseReservation request)
public IAsyncResult Begin_reserveCoinPurchase(AsyncCallback callback, object state, CoinPurchaseReservation request) { return send_reserveCoinPurchase(callback, state, request); }