Data Layer medium complexity mobilebackend
1
Dependencies
2
Dependents
2
Entities
0
Integrations

Description

Data access layer for notification records and per-user notification settings, communicating with the backend REST API to fetch paginated notification history and persist read/unread state. Also stores and retrieves device token registration data and per-user notification preference settings.

Feature: Push Notifications

notification-repository

Responsibilities

  • Fetch paginated notification history from REST API
  • Persist read/unread status updates for notifications
  • Store and retrieve device token records linked to user accounts
  • Retrieve and update per-user notification preference settings

Interfaces

getNotifications(userId, page, limit)
markNotificationRead(notificationId)
markAllRead(userId)
getUnreadCount(userId)
saveDeviceToken(userId, token, platform)
deleteDeviceToken(userId, token)
getNotificationSettings(userId)
updateNotificationSettings(userId, settings)

Relationships

Dependencies (1)

Components this component depends on

Dependents (2)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component