public void setGameMode_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   setGameMode_args args = new setGameMode_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   setGameMode_result result = new setGameMode_result();
   try {
     result.Success = iface_.setGameMode(args.AuthString, args.Name, args.Mode);
   } catch (org.phybros.thrift.EAuthException aex) {
     result.Aex = aex;
   } catch (org.phybros.thrift.EDataException dex) {
     result.Dex = dex;
   }
   oprot.WriteMessageBegin(new TMessage("setGameMode", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
 public bool recv_setGameMode()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   setGameMode_result result = new setGameMode_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.aex) {
     throw result.Aex;
   }
   if (result.__isset.dex) {
     throw result.Dex;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "setGameMode failed: unknown result");
 }