Subversion Repositories SmartDukaan

Rev

Rev 33415 | Rev 34468 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service;

import com.spice.profitmandi.common.enumuration.MessageType;
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.common.model.SendNotificationModel;
import com.spice.profitmandi.service.whatsapp.WhatsappMessageType;
import org.apache.http.conn.HttpHostConnectException;
import org.springframework.stereotype.Service;

@Service
public interface NotificationService {
        void sendNotification(SendNotificationModel sendNotificationModel) throws ProfitMandiBusinessException;

        void sendNotificationToAll(SendNotificationModel sendNotificationModel) throws ProfitMandiBusinessException;

        void sendNotification(int fofoId, String campaignName, MessageType messageType, String title, String message)
                        throws ProfitMandiBusinessException;

        void sendNotification(int fofoId, String campaignName, MessageType messageType, String title, String message,
                        String Url) throws ProfitMandiBusinessException;

        void sendWhatsappMessage(String message, String title, String mobile)
                        throws HttpHostConnectException, ProfitMandiBusinessException, Exception;

        void sendWhatsappMediaMessage(String message, String mobile, String mediaUrl, String fileName, WhatsappMessageType whatsappMessageType)
                        throws HttpHostConnectException, ProfitMandiBusinessException, Exception;

        void optIn(String phoneNumber) throws Exception;
         boolean shouldSendWhatsappMessage(String mobile);

    void sendPaymentWhatsappMessage(String mobile, String message) throws Exception;

}