Exemple #1
0
 public void getTables_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getTables_args args = new getTables_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getTables_result result = new getTables_result();
   result.Success = iface_.getTables(args.Username, args.Repo);
   oprot.WriteMessageBegin(new TMessage("getTables", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Exemple #2
0
 public List<string> recv_getTables()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getTables_result result = new getTables_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getTables failed: unknown result");
 }