Esempio n. 1
0
 public List<Item> recv_makeItemBasedRecommendations()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   makeItemBasedRecommendations_result result = new makeItemBasedRecommendations_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "makeItemBasedRecommendations failed: unknown result");
 }
Esempio n. 2
0
 public void makeItemBasedRecommendations_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   makeItemBasedRecommendations_args args = new makeItemBasedRecommendations_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   makeItemBasedRecommendations_result result = new makeItemBasedRecommendations_result();
   result.Success = iface_.makeItemBasedRecommendations(args.Key, args.UserId, args.NumRecs, args.DisplayColumns);
   oprot.WriteMessageBegin(new TMessage("makeItemBasedRecommendations", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }