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

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

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