Example #1
0
 public void onLoginAttemptComplete(ErrorCode result) {
   if (ErrorCode.succeeded(result)) {
     if (enableChat) {
       initChat();
     }
   }
 }
Example #2
0
 public void onGameNameListReceived(ErrorCode result, GameInfo[] list) {
   if (ErrorCode.succeeded(result)) {
     System.out.println("Game names:");
     for (int i = 0; i < list.length; ++i) {
       System.out.println("    " + list[i].name);
     }
   }
 }