Subversion Repositories SmartDukaan

Rev

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

Rev 30256 Rev 30859
Line 162... Line 162...
162
			pushNotificationRepository.persist(pn);
162
			pushNotificationRepository.persist(pn);
163
		}
163
		}
164
 
164
 
165
	}
165
	}
166
 
166
 
-
 
167
	@Override
-
 
168
	public void sendNotification(int fofoId, String campaignName, MessageType messageType, String title, String message,
-
 
169
			String url) throws ProfitMandiBusinessException {
-
 
170
		SendNotificationModel sendNotificationModel = this.getDefaultNotificationModel();
-
 
171
		sendNotificationModel.setCampaignName(campaignName);
-
 
172
		sendNotificationModel.setMessageType(messageType);
-
 
173
		sendNotificationModel.setTitle(title);
-
 
174
		sendNotificationModel.setMessage(message);
-
 
175
		int userId = userAccountRepository.selectUserIdByRetailerId(fofoId);
-
 
176
		sendNotificationModel.setUserIds(Arrays.asList(userId));
-
 
177
		sendNotificationModel.setMessageType(messageType);
-
 
178
		sendNotificationModel.setUrl(url);
-
 
179
		this.sendNotification(sendNotificationModel);
-
 
180
	}
-
 
181
 
167
}
182
}