Exemplo n.º 1
0
 public void getOfflinePlayers_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getOfflinePlayers_args args = new getOfflinePlayers_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getOfflinePlayers_result result = new getOfflinePlayers_result();
   try {
     result.Success = iface_.getOfflinePlayers(args.AuthString);
   } catch (org.phybros.thrift.EAuthException aex) {
     result.Aex = aex;
   }
   oprot.WriteMessageBegin(new TMessage("getOfflinePlayers", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Exemplo n.º 2
0
 public List<OfflinePlayer> recv_getOfflinePlayers()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getOfflinePlayers_result result = new getOfflinePlayers_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, "getOfflinePlayers failed: unknown result");
 }