@Test public void logMessageClick_notifiesListeners() { metricsLoggerClient.logMessageClick(BANNER_MESSAGE_MODEL, BANNER_MESSAGE_MODEL.getAction()); verify(developerListenerManager, times(1)) .messageClicked(BANNER_MESSAGE_MODEL, BANNER_MESSAGE_MODEL.getAction()); }
void logMessageClick(InAppMessage message, Action action) { if (!isTestCampaign(message)) { firebaseInstallations .getId() .addOnSuccessListener( id -> engagementMetricsLogger.logEvent( createEventEntry(message, id, CLICK_EVENT_TYPE).toByteArray())); logEventAsync(message, AnalyticsConstants.ANALYTICS_ACTION_EVENT, true); } developerListenerManager.messageClicked(message, action); }
MetricsLoggerClient { void logMessageClick(InAppMessage message, Action action) { if (!isTestCampaign(message)) { firebaseInstallations .getId() .addOnSuccessListener( id -> engagementMetricsLogger.logEvent( createEventEntry(message, id, CLICK_EVENT_TYPE).toByteArray())); logEventAsync(message, AnalyticsConstants.ANALYTICS_ACTION_EVENT, true); } developerListenerManager.messageClicked(message, action); } }
MetricsLoggerClient { void logMessageClick(InAppMessage message, Action action) { if (!isTestCampaign(message)) { firebaseInstallations .getId() .addOnSuccessListener( id -> engagementMetricsLogger.logEvent( createEventEntry(message, id, CLICK_EVENT_TYPE).toByteArray())); logEventAsync(message, AnalyticsConstants.ANALYTICS_ACTION_EVENT, true); } developerListenerManager.messageClicked(message, action); } MetricsLoggerClient(
      EngagementMetricsLoggerInterface engagementMetricsLogger,
      AnalyticsConnector analyticsConnector,
      FirebaseApp firebaseApp,
      FirebaseInstallationsApi firebaseInstallations,
      Clock clock,
      DeveloperListenerManager developerListenerManager); }
MetricsLoggerClient { void logMessageClick(InAppMessage message, Action action) { if (!isTestCampaign(message)) { firebaseInstallations .getId() .addOnSuccessListener( id -> engagementMetricsLogger.logEvent( createEventEntry(message, id, CLICK_EVENT_TYPE).toByteArray())); logEventAsync(message, AnalyticsConstants.ANALYTICS_ACTION_EVENT, true); } developerListenerManager.messageClicked(message, action); } MetricsLoggerClient(
      EngagementMetricsLoggerInterface engagementMetricsLogger,
      AnalyticsConnector analyticsConnector,
      FirebaseApp firebaseApp,
      FirebaseInstallationsApi firebaseInstallations,
      Clock clock,
      DeveloperListenerManager developerListenerManager);  }
MetricsLoggerClient { void logMessageClick(InAppMessage message, Action action) { if (!isTestCampaign(message)) { firebaseInstallations .getId() .addOnSuccessListener( id -> engagementMetricsLogger.logEvent( createEventEntry(message, id, CLICK_EVENT_TYPE).toByteArray())); logEventAsync(message, AnalyticsConstants.ANALYTICS_ACTION_EVENT, true); } developerListenerManager.messageClicked(message, action); } MetricsLoggerClient(
      EngagementMetricsLoggerInterface engagementMetricsLogger,
      AnalyticsConnector analyticsConnector,
      FirebaseApp firebaseApp,
      FirebaseInstallationsApi firebaseInstallations,
      Clock clock,
      DeveloperListenerManager developerListenerManager);   }