public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { BookingParams = new BookingParams(); BookingParams.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void send_submitBooking(BookingParams bookingParams) #endif { oprot_.WriteMessageBegin(new TMessage("submitBooking", TMessageType.Call, seqid_)); submitBooking_args args = new submitBooking_args(); args.BookingParams = bookingParams; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public long submitBooking(BookingParams bookingParams) { #if !SILVERLIGHT send_submitBooking(bookingParams); return recv_submitBooking(); #else var asyncResult = Begin_submitBooking(null, null, bookingParams); return End_submitBooking(asyncResult); #endif }
public IAsyncResult send_submitBooking(AsyncCallback callback, object state, BookingParams bookingParams)
public IAsyncResult Begin_submitBooking(AsyncCallback callback, object state, BookingParams bookingParams) { return send_submitBooking(callback, state, bookingParams); }