Exemplo n.º 1
0
 public void checkCorrectDatahubLogin_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   checkCorrectDatahubLogin_args args = new checkCorrectDatahubLogin_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   checkCorrectDatahubLogin_result result = new checkCorrectDatahubLogin_result();
   result.Success = iface_.checkCorrectDatahubLogin(args.Username, args.Repository, args.Table, args.Primary_key, args.Title, args.Description, args.Image);
   oprot.WriteMessageBegin(new TMessage("checkCorrectDatahubLogin", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Exemplo n.º 2
0
 public bool recv_checkCorrectDatahubLogin()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   checkCorrectDatahubLogin_result result = new checkCorrectDatahubLogin_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "checkCorrectDatahubLogin failed: unknown result");
 }