Subversion Repositories SmartDukaan

Rev

Rev 26408 | Rev 26418 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26408 Rev 26416
Line 1595... Line 1595...
1595
 
1595
 
1596
	public void sendNotification() throws Exception {
1596
	public void sendNotification() throws Exception {
1597
		List<PushNotifications> pushNotifications = pushNotificationRepository.selectAllByTimestamp();
1597
		List<PushNotifications> pushNotifications = pushNotificationRepository.selectAllByTimestamp();
1598
		if (!pushNotifications.isEmpty()) {
1598
		if (!pushNotifications.isEmpty()) {
1599
			for (PushNotifications pushNotification : pushNotifications) {
1599
			for (PushNotifications pushNotification : pushNotifications) {
-
 
1600
				LOGGER.info("pushNotification {}", pushNotification);
1600
				Device device = deviceRepository.selectById(pushNotification.getDeviceId());
1601
				Device device = deviceRepository.selectById(pushNotification.getDeviceId());
1601
				NotificationCampaign notificationCampaign = notificationCampaignRepository
1602
				NotificationCampaign notificationCampaign = notificationCampaignRepository
1602
						.selectById(pushNotification.getNotificationCampaignid());
1603
						.selectById(pushNotification.getNotificationCampaignid());
1603
				Gson gson = new GsonBuilder().setPrettyPrinting().serializeNulls()
1604
				Gson gson = new GsonBuilder().setPrettyPrinting().serializeNulls()
1604
						.registerTypeAdapter(LocalDateTime.class, new LocalDateTimeJsonConverter()).create();
1605
						.registerTypeAdapter(LocalDateTime.class, new LocalDateTimeJsonConverter()).create();