26 lines
858 B
Java
26 lines
858 B
Java
package SuMoC.backend.notification.services;
|
|
|
|
import SuMoC.backend.notification.factories.TrendNotificationFactory;
|
|
import SuMoC.backend.notification.models.Notification;
|
|
import SuMoC.backend.notification.repositories.NotificationRepository;
|
|
import SuMoC.backend.trend.TrendDetection;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import java.util.List;
|
|
|
|
@Service
|
|
@RequiredArgsConstructor
|
|
public class TrendNotificationService {
|
|
|
|
private final NotificationRepository notificationRepository;
|
|
|
|
private final TrendNotificationFactory trendNotificationFactory;
|
|
|
|
public List<Notification> generateTrendNotifications(List<TrendDetection> trendList) {
|
|
List<Notification> notificationList = trendList.stream().map(trendNotificationFactory::createNotification).toList();
|
|
|
|
return List.of();
|
|
}
|
|
}
|