basic firebase connection + notification structure

This commit is contained in:
2026-01-10 13:56:31 +01:00
parent 4c9b69a0d0
commit 8e3cb83d27
27 changed files with 207 additions and 52 deletions
@@ -0,0 +1,25 @@
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();
}
}