@Subscribe public void loadPromptCards(LoadPromptEvent event) { _view.hideProgressBar(); List<PromptCard> promptCards = event.getEventList(); if (promptCards != null) { _view.displayContent(promptCards); } }
@Subscribe public void processQueryResult(QueryResult result) { Bundle bundle = new Bundle(); bundle.putInt(SolutionFragment.SOLUTION_ID_TAG, result.getId()); bundle.putString(SolutionFragment.SOLUTION_TAGS, result.getTagString()); _view.changeFragment(DualFragmentActivity.VIEW_SOLUTION_ID, bundle); }
@Override public void getData() { _view.showProgressBar(); _repository.getPrompts(); }
@Subscribe public void checkForNewNotifications(LoadNotificationEvent event) { boolean hasNewRecommendations = event.hasNewNotification(); _view.hasNewRecommendations(hasNewRecommendations); }