| 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();
|