コード例 #1
0
 public void getWords_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getWords_args args = new getWords_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getWords_result result = new getWords_result();
   result.Success = iface_.getWords(args.Userid);
   oprot.WriteMessageBegin(new TMessage("getWords", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
コード例 #2
0
 public Wordbook recv_getWords()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getWords_result result = new getWords_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getWords failed: unknown result");
 }