use of com.hccake.ballcat.notify.model.domain.NotifyInfo in project ballcat by ballcat-projects.
the class NotifyWebsocketEventListener method onAnnouncementPublishEvent.
/**
* 站内通知推送事件
* @param event the StationNotifyPushEvent
*/
@Async
@EventListener(StationNotifyPushEvent.class)
public void onAnnouncementPublishEvent(StationNotifyPushEvent event) {
NotifyInfo notifyInfo = event.getNotifyInfo();
List<SysUser> userList = event.getUserList();
notifyInfoDelegateHandler.handle(userList, notifyInfo);
}
use of com.hccake.ballcat.notify.model.domain.NotifyInfo in project ballcat by ballcat-projects.
the class NotifyPublishEventListener method onNotifyPublishEvent.
/**
* 通知发布事件
* @param event the NotifyPublishEvent
*/
@Async
@EventListener(NotifyPublishEvent.class)
public void onNotifyPublishEvent(NotifyPublishEvent event) {
NotifyInfo notifyInfo = event.getNotifyInfo();
// 推送通知
notifyPushExecutor.push(notifyInfo);
}
use of com.hccake.ballcat.notify.model.domain.NotifyInfo in project ballcat by ballcat-projects.
the class AnnouncementServiceImpl method onAnnouncementPublish.
/**
* 公告发布事件
* @param announcement 公告信息
*/
private void onAnnouncementPublish(Announcement announcement) {
NotifyInfo notifyInfo = NotifyInfoConverter.INSTANCE.fromAnnouncement(announcement);
publisher.publishEvent(new NotifyPublishEvent(notifyInfo));
}
Aggregations