Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package no.lavoapp.service;
- import no.lavoapp.domain.User;
- import no.lavoapp.domain.Video;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.scheduling.annotation.Async;
- import org.springframework.stereotype.Service;
- @Service
- public class EventService {
- private NotificationService notificationService;
- @Autowired
- public EventService(NotificationService notificationService) {
- this.notificationService = notificationService;
- }
- @Async
- public void videoResponseCreated(User originator, Video video) {
- notificationService.videoResponse(originator, video);
- }
- @Async
- public void videoCreated(User originator, Video video) {
- notificationService.videoCreated(originator, video);
- }
- @Async
- public void sendNotificationForVideo(Video video) {
- notificationService.sendNotificationForVideo(video);
- }
- }
Add Comment
Please, Sign In to add comment