public void GetRecipeData_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetRecipeData_args args = new GetRecipeData_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetRecipeData_result result = new GetRecipeData_result(); result.Success = iface_.GetRecipeData(); oprot.WriteMessageBegin(new TMessage("GetRecipeData", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public string recv_GetRecipeData() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetRecipeData_result result = new GetRecipeData_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetRecipeData failed: unknown result"); }