Exemplo n.º 1
0
  private void handleNotification(GameNotification notification) {
    String serializedNotificationObject = notification.getSerializedNotificationObject();

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

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