public void makeOverallRatingBasedOrRandomRecommendation_Process(int seqid, TProtocol iprot, TProtocol oprot) { makeOverallRatingBasedOrRandomRecommendation_args args = new makeOverallRatingBasedOrRandomRecommendation_args(); args.Read(iprot); iprot.ReadMessageEnd(); makeOverallRatingBasedOrRandomRecommendation_result result = new makeOverallRatingBasedOrRandomRecommendation_result(); result.Success = iface_.makeOverallRatingBasedOrRandomRecommendation(args.Key, args.RatingColumnName, args.NumRecs, args.DisplayColumns); oprot.WriteMessageBegin(new TMessage("makeOverallRatingBasedOrRandomRecommendation", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public List<Item> recv_makeOverallRatingBasedOrRandomRecommendation() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } makeOverallRatingBasedOrRandomRecommendation_result result = new makeOverallRatingBasedOrRandomRecommendation_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "makeOverallRatingBasedOrRandomRecommendation failed: unknown result"); }