Subversion Repositories SmartDukaan

Rev

Rev 35504 | 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 sendNotificationToSystemUsers(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;

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

        boolean 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;

    void sendADLDWhatsappMessage(String mobile) throws Exception;

        boolean sendWhatsappInvoice(int customerId, int fofoId, String invoiceNumber, String whatsAppNo) throws Exception;

}