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