public void getRecommenders_Process(int seqid, TProtocol iprot, TProtocol oprot) { getRecommenders_args args = new getRecommenders_args(); args.Read(iprot); iprot.ReadMessageEnd(); getRecommenders_result result = new getRecommenders_result(); result.Success = iface_.getRecommenders(args.Username); oprot.WriteMessageBegin(new TMessage("getRecommenders", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public List<Recommender> recv_getRecommenders() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getRecommenders_result result = new getRecommenders_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getRecommenders failed: unknown result"); }