Example #1
0
  private void handleNotification(GameNotification notification) {
    String serializedNotificationObject = notification.getSerializedNotificationObject();

    U notificationObject =
        (U)
            this.getNotificationParser()
                .parseToObject(serializedNotificationObject, this.notificationClazz);

    this.getObserver().notify(notificationObject);
  }
Example #2
0
 private boolean canHandleNotification(GameNotification notification) {
   return this.notificationType.getType().equals(notification.getType());
 }