| 25822 |
amit.gupta |
1 |
package com.spice.profitmandi.service;
|
|
|
2 |
|
| 30066 |
amit.gupta |
3 |
import com.spice.profitmandi.common.enumuration.MessageType;
|
| 29198 |
manish |
4 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 25822 |
amit.gupta |
5 |
import com.spice.profitmandi.common.model.SendNotificationModel;
|
| 32854 |
amit.gupta |
6 |
import com.spice.profitmandi.service.whatsapp.WhatsappMessageType;
|
| 30989 |
tejbeer |
7 |
import org.apache.http.conn.HttpHostConnectException;
|
| 29927 |
amit.gupta |
8 |
import org.springframework.stereotype.Service;
|
| 25822 |
amit.gupta |
9 |
|
|
|
10 |
@Service
|
|
|
11 |
public interface NotificationService {
|
| 29198 |
manish |
12 |
void sendNotification(SendNotificationModel sendNotificationModel) throws ProfitMandiBusinessException;
|
| 29927 |
amit.gupta |
13 |
|
|
|
14 |
void sendNotificationToAll(SendNotificationModel sendNotificationModel) throws ProfitMandiBusinessException;
|
| 30025 |
amit.gupta |
15 |
|
| 30859 |
tejbeer |
16 |
void sendNotification(int fofoId, String campaignName, MessageType messageType, String title, String message)
|
|
|
17 |
throws ProfitMandiBusinessException;
|
|
|
18 |
|
|
|
19 |
void sendNotification(int fofoId, String campaignName, MessageType messageType, String title, String message,
|
|
|
20 |
String Url) throws ProfitMandiBusinessException;
|
| 30989 |
tejbeer |
21 |
|
|
|
22 |
void sendWhatsappMessage(String message, String title, String mobile)
|
| 32253 |
amit.gupta |
23 |
throws HttpHostConnectException, ProfitMandiBusinessException, Exception;
|
|
|
24 |
|
| 32854 |
amit.gupta |
25 |
void sendWhatsappMediaMessage(String message, String mobile, String mediaUrl, String fileName, WhatsappMessageType whatsappMessageType)
|
| 32253 |
amit.gupta |
26 |
throws HttpHostConnectException, ProfitMandiBusinessException, Exception;
|
|
|
27 |
|
|
|
28 |
void optIn(String phoneNumber) throws Exception;
|
| 33415 |
amit.gupta |
29 |
boolean shouldSendWhatsappMessage(String mobile);
|
| 32405 |
jai.hind |
30 |
|
| 33715 |
ranu |
31 |
void sendPaymentWhatsappMessage(String mobile, String message) throws Exception;
|
|
|
32 |
|
| 25822 |
amit.gupta |
33 |
}
|