| 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.NotificationTargetCriteria;
|
| 5 |
import com.spice.profitmandi.common.model.SendNotificationModel;
|
6 |
import com.spice.profitmandi.common.model.SendNotificationModel;
|
| - |
|
7 |
import org.springframework.stereotype.Service;
|
| 6 |
|
8 |
|
| - |
|
9 |
import java.time.LocalDateTime;
|
| 7 |
import java.util.List;
|
10 |
import java.util.List;
|
| 8 |
import org.springframework.stereotype.Service;
|
11 |
import java.util.Set;
|
| 9 |
|
12 |
|
| 10 |
@Service
|
13 |
@Service
|
| 11 |
public interface NotificationService {
|
14 |
public interface NotificationService {
|
| 12 |
void sendNotification(SendNotificationModel sendNotificationModel) throws ProfitMandiBusinessException;
|
15 |
void sendNotification(SendNotificationModel sendNotificationModel) throws ProfitMandiBusinessException;
|
| 13 |
|
16 |
|
| - |
|
17 |
void dispatchScheduled(int scheduleId) throws ProfitMandiBusinessException;
|
| - |
|
18 |
|
| - |
|
19 |
int dispatchDueScheduled(int batchSize) throws ProfitMandiBusinessException;
|
| - |
|
20 |
|
| - |
|
21 |
boolean cancelSchedule(int scheduleId);
|
| - |
|
22 |
|
| - |
|
23 |
int addScheduleForCampaign(int campaignId, LocalDateTime scheduledAt) throws ProfitMandiBusinessException;
|
| - |
|
24 |
|
| - |
|
25 |
int resolveAudienceSize(NotificationTargetCriteria criteria) throws ProfitMandiBusinessException;
|
| - |
|
26 |
|
| - |
|
27 |
Set<Integer> resolveTargetUserIds(NotificationTargetCriteria criteria) throws ProfitMandiBusinessException;
|
| - |
|
28 |
|
| 14 |
void sendNotificationToAll(SendNotificationModel sendNotificationModel) throws ProfitMandiBusinessException;
|
29 |
void sendNotificationToAll(SendNotificationModel sendNotificationModel) throws ProfitMandiBusinessException;
|
| 15 |
|
30 |
|
| 16 |
void sendNotificationToSystemUsers(SendNotificationModel sendNotificationModel) throws ProfitMandiBusinessException;
|
31 |
void sendNotificationToSystemUsers(SendNotificationModel sendNotificationModel) throws ProfitMandiBusinessException;
|
| 17 |
|
32 |
|
| 18 |
void sendNotification(int fofoId, String campaignName, MessageType messageType, String title, String message) throws ProfitMandiBusinessException;
|
33 |
void sendNotification(int fofoId, String campaignName, MessageType messageType, String title, String message) throws ProfitMandiBusinessException;
|