FAQ Content Service
Component Detail
Service Layer
low complexity
mobile
1
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Fetches structured FAQ content (id, category, question, answer) from the backend public endpoint and caches it offline using Drift with a TTL and version fingerprint. Exposes filtered queries for client-side keyword search without additional round-trips.
faq-content-service
Responsibilities
- Fetch FAQ JSON array from the backend public endpoint
- Cache content in Drift-backed local store with TTL and version fingerprint
- Serve cached content when offline
- Provide keyword-filtered entry lookups for the search feature
Interfaces
fetchFaqs() Future<List<FaqEntry>>
searchFaqs(String query) List<FaqEntry>
getFaqById(String id) FaqEntry?
refreshIfStale() Future<void>