Cards Content Sync Adapter
Component Detail
Infrastructure
low complexity
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Lightweight HTTP adapter that fetches the latest versioned talking card JSON from a backend endpoint or CMS and hands it to the Cards Content Service for comparison and storage. Runs in the background after the screen loads so it never blocks offline access. Handles network errors gracefully with no user-visible failure when offline.
cards-content-sync-adapter
Responsibilities
- Fetch versioned card content JSON from the remote endpoint
- Return raw card payload to the service layer for diffing and storage
- Handle network unavailability without throwing unhandled errors
- Respect app-level HTTP client configuration (timeouts, retries)
Interfaces
fetchLatestContent()
fetchContentVersion()
isRemoteAvailable()