Subversion Repositories SmartDukaan

Rev

Rev 35504 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
 
34550 vikas.jang 16
	void sendNotificationToSystemUsers(SendNotificationModel sendNotificationModel) throws ProfitMandiBusinessException;
17
 
34468 vikas.jang 18
	void sendNotification(int fofoId, String campaignName, MessageType messageType, String title, String message) throws ProfitMandiBusinessException;
30859 tejbeer 19
 
34468 vikas.jang 20
	void sendNotification(int fofoId, String campaignName, MessageType messageType, String title, String message, String Url) throws ProfitMandiBusinessException;
30989 tejbeer 21
 
34468 vikas.jang 22
	boolean sendWhatsappMessage(String message, String title, String mobile) throws HttpHostConnectException, ProfitMandiBusinessException, Exception;
32253 amit.gupta 23
 
34468 vikas.jang 24
	boolean sendWhatsappMediaMessage(String message, String mobile, String mediaUrl, String fileName, WhatsappMessageType whatsappMessageType) throws HttpHostConnectException, ProfitMandiBusinessException, Exception;
32253 amit.gupta 25
 
26
	void optIn(String phoneNumber) throws Exception;
32405 jai.hind 27
 
34468 vikas.jang 28
	boolean shouldSendWhatsappMessage(String mobile);
29
 
33715 ranu 30
    void sendPaymentWhatsappMessage(String mobile, String message) throws Exception;
31
 
35504 vikas 32
    void sendADLDWhatsappMessage(String mobile) throws Exception;
33
 
36064 aman 34
	boolean sendWhatsappInvoice(int customerId, int fofoId, String invoiceNumber, String whatsAppNo) throws Exception;
35
 
25822 amit.gupta 36
}