Service Layer medium complexity mobilebackend
0
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

Service that writes a read receipt record to assignment_read_receipts when the peer mentor opens an assignment detail screen for the first time. Also handles coordinator-facing queries for which assignments have been read, delivered, or remain unacknowledged, supporting the status dashboard's real-time view.

Feature: Encrypted Assignment Dispatch

read-receipt-service

Responsibilities

  • Write read receipt on first assignment open
  • Query read status for coordinator dashboard
  • Prevent duplicate receipt writes
  • Expose real-time read status stream

Interfaces

recordReadReceipt(assignmentId, userId)
hasBeenRead(assignmentId)
getReadReceiptTimestamp(assignmentId)
listReadReceiptsForAssignment(assignmentId)
subscribeToReadReceipts(assignmentId)
getUnreadCount(coordinatorId)

Related Data Entities (2)

Data entities managed by this component