コード例 #1
0
 public void getWhitelist_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getWhitelist_args args = new getWhitelist_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getWhitelist_result result = new getWhitelist_result();
   try {
     result.Success = iface_.getWhitelist(args.AuthString);
   } catch (org.phybros.thrift.EAuthException aex) {
     result.Aex = aex;
   }
   oprot.WriteMessageBegin(new TMessage("getWhitelist", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
コード例 #2
0
 public List<OfflinePlayer> recv_getWhitelist()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getWhitelist_result result = new getWhitelist_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.aex) {
     throw result.Aex;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getWhitelist failed: unknown result");
 }