private List<PlayerTarget> getEligiblePlayerTargets(
     final CampaignDeliverMessage campaignDeliverMessage) {
   List<PlayerTarget> eligiblePlayerTargets =
       mobileDeviceCampaignDao.getEligiblePlayerTargets(
           campaignDeliverMessage.getCampaignRunId(),
           Platform.AMAZON,
           campaignDeliverMessage.getFrom(),
           campaignDeliverMessage.getTo());
   LOG.debug("segment size {} for {}", eligiblePlayerTargets.size(), campaignDeliverMessage);
   return eligiblePlayerTargets;
 }
  private void sendMessageToTarget(
      final CampaignDeliverMessage campaignDeliverMessage,
      final PlayerTarget playerTarget,
      final Map<String, String> personalisedContent) {

    AmazonDeviceMessage message =
        new AmazonDeviceMessage(
            playerTarget.getPlayerId(),
            playerTarget.getTargetToken(),
            personalisedContent.get(MessageContentType.TITLE.getKey()),
            personalisedContent.get(MessageContentType.TITLE.getKey()),
            personalisedContent.get(MessageContentType.MESSAGE.getKey()),
            "notify",
            campaignDeliverMessage.getCampaignRunId());

    pushNotificationPublisher.sendPushNotification(message);
  }
 private Map<String, String> getCampaignContent(
     final CampaignDeliverMessage campaignDeliverMessage) {
   return campaignContentService.getContent(campaignDeliverMessage.getCampaignRunId());
 }
 private Map<NotificationChannelConfigType, String> getChannelCampaignConfig(
     final CampaignDeliverMessage campaignDeliverMessage) {
   return campaignContentService.getChannelConfig(campaignDeliverMessage.getCampaignRunId());
 }