public void matchBooking_Process(int seqid, TProtocol iprot, TProtocol oprot) { matchBooking_args args = new matchBooking_args(); args.Read(iprot); iprot.ReadMessageEnd(); matchBooking_result result = new matchBooking_result(); result.Success = iface_.matchBooking(args.Src); oprot.WriteMessageBegin(new TMessage("matchBooking", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public BookingMatchResults recv_matchBooking() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } matchBooking_result result = new matchBooking_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "matchBooking failed: unknown result"); }