public void getValues_Process(int seqid, TProtocol iprot, TProtocol oprot) { getValues_args args = new getValues_args(); args.Read(iprot); iprot.ReadMessageEnd(); getValues_result result = new getValues_result(); try { result.Success = iface_.getValues(); } catch (Error err) { result.Err = err; } oprot.WriteMessageBegin(new TMessage("getValues", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public List <int> recv_getValues() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getValues_result result = new getValues_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.err) { throw result.Err; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getValues failed: unknown result"); }