Subversion Repositories SmartDukaan

Rev

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

Rev 27987 Rev 28000
Line 1790... Line 1790...
1790
		if (!pushNotifications.isEmpty()) {
1790
		if (!pushNotifications.isEmpty()) {
1791
			for (PushNotifications pushNotification : pushNotifications) {
1791
			for (PushNotifications pushNotification : pushNotifications) {
1792
				Device device = deviceRepository.selectById(pushNotification.getDeviceId());
1792
				Device device = deviceRepository.selectById(pushNotification.getDeviceId());
1793
				NotificationCampaign notificationCampaign = notificationCampaignRepository
1793
				NotificationCampaign notificationCampaign = notificationCampaignRepository
1794
						.selectById(pushNotification.getNotificationCampaignid());
1794
						.selectById(pushNotification.getNotificationCampaignid());
1795
				Gson gson = new GsonBuilder().setPrettyPrinting().serializeNulls()
-
 
1796
						.registerTypeAdapter(LocalDateTime.class, new LocalDateTimeJsonConverter()).create();
-
 
1797
 
-
 
1798
				SimpleCampaignParams scp = gson.fromJson(notificationCampaign.getImplementationParams(),
1795
				SimpleCampaignParams scp = gson.fromJson(notificationCampaign.getImplementationParams(),
1799
						SimpleCampaignParams.class);
1796
						SimpleCampaignParams.class);
1800
				Campaign campaign = new SimpleCampaign(scp);
1797
				Campaign campaign = new SimpleCampaign(scp);
1801
				String result_url = campaign.getUrl() + "&user_id=" + device.getUser_id();
1798
				String result_url = campaign.getUrl() + "&user_id=" + device.getUser_id();
1802
				JSONObject json = new JSONObject();
1799
				JSONObject json = new JSONObject();