| Line 126... |
Line 126... |
| 126 |
//String mobile = user.getMobileNumber();
|
126 |
//String mobile = user.getMobileNumber();
|
| 127 |
//notificationService.sendWhatsappMessage(message, "Bid Update!", mobile);
|
127 |
//notificationService.sendWhatsappMessage(message, "Bid Update!", mobile);
|
| 128 |
}
|
128 |
}
|
| 129 |
|
129 |
|
| 130 |
@Override
|
130 |
@Override
|
| 131 |
public void biddingLiveNotification(String message, String mediaURL) throws Exception {
|
131 |
public void biddingLiveNotification(String message, List<String> lots, String mediaURL) throws Exception {
|
| 132 |
this.sendPushNotification(message, "Bidding Live Now!", Collections.emptyList());
|
132 |
this.sendPushNotification(message, "Bidding Live Now!", Collections.emptyList());
|
| 133 |
//List<String> mobiles = Arrays.asList("7619985051","8529003611","7082253510","7903840919","9667014826");
|
133 |
//List<String> mobiles = Arrays.asList("7619985051","8529003611","7082253510","7903840919","9667014826");
|
| 134 |
if (mediaURL == null){
|
134 |
// The push keeps the formatted text; WhatsApp gets one line per lot, which is all its template
|
| 135 |
notificationService.sendWhatsappMessage(message,null, "8529003611");
|
135 |
// slots can hold. A null mediaURL now fails loudly rather than silently downgrading to text —
|
| 136 |
} else {
|
136 |
// the approved template has an image header, so there is nothing to downgrade to.
|
| 137 |
notificationService.sendWhatsappMediaMessage(message,"8529003611", mediaURL,"whatsapp.jpeg", WhatsappMessageType.IMAGE);
|
137 |
notificationService.sendBiddingLive("8529003611", lots, mediaURL);
|
| 138 |
}
|
- |
|
| 139 |
}
|
138 |
}
|
| 140 |
|
139 |
|
| 141 |
@Override
|
140 |
@Override
|
| 142 |
public void sendPushNotification(String message, String title, List<Integer> fofoIds) throws Exception {
|
141 |
public void sendPushNotification(String message, String title, List<Integer> fofoIds) throws Exception {
|
| 143 |
LOGGER.info("fofoIds stating: {}",fofoIds);
|
142 |
LOGGER.info("fofoIds stating: {}",fofoIds);
|