Subversion Repositories SmartDukaan

Rev

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

Rev 32405 Rev 32854
Line 1... Line 1...
1
package com.spice.profitmandi.service;
1
package com.spice.profitmandi.service;
2
 
2
 
3
import com.spice.profitmandi.common.enumuration.MessageType;
3
import com.spice.profitmandi.common.enumuration.MessageType;
4
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
4
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
5
import com.spice.profitmandi.common.model.SendNotificationModel;
5
import com.spice.profitmandi.common.model.SendNotificationModel;
-
 
6
import com.spice.profitmandi.service.whatsapp.WhatsappMessageType;
6
import org.apache.http.conn.HttpHostConnectException;
7
import org.apache.http.conn.HttpHostConnectException;
7
import org.springframework.stereotype.Service;
8
import org.springframework.stereotype.Service;
8
 
9
 
9
@Service
10
@Service
10
public interface NotificationService {
11
public interface NotificationService {
Line 19... Line 20...
19
			String Url) throws ProfitMandiBusinessException;
20
			String Url) throws ProfitMandiBusinessException;
20
 
21
 
21
	void sendWhatsappMessage(String message, String title, String mobile)
22
	void sendWhatsappMessage(String message, String title, String mobile)
22
			throws HttpHostConnectException, ProfitMandiBusinessException, Exception;
23
			throws HttpHostConnectException, ProfitMandiBusinessException, Exception;
23
 
24
 
24
	void sendWhatsappMediaMessage(String message, String mobile, String mediaUrl, String fileName)
25
	void sendWhatsappMediaMessage(String message, String mobile, String mediaUrl, String fileName, WhatsappMessageType whatsappMessageType)
25
			throws HttpHostConnectException, ProfitMandiBusinessException, Exception;
26
			throws HttpHostConnectException, ProfitMandiBusinessException, Exception;
26
 
27
 
27
	void optIn(String phoneNumber) throws Exception;
28
	void optIn(String phoneNumber) throws Exception;
28
	 boolean isWhatMessageSend(String mobile);
29
	 boolean isWhatMessageSend(String mobile);
29
 
30