Toolbox Content Repository
Component Detail
Data Layer
medium complexity
mobile
1
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Data access layer managing CRUD operations for talking cards and toolbox resources. Abstracts both the remote REST API endpoint and the local SQLite cache, returning the most recent available data based on connectivity state.
toolbox-content-repository
Responsibilities
- Fetch card collections from the remote REST API with organization scoping
- Read and write card data to the local SQLite offline cache
- Return cached data when the network is unavailable
- Expose card data as typed Dart model objects
Interfaces
fetchCardsFromApi(organizationId)
getCachedCards(organizationId)
saveCardsToCache(List cards)
getCardFromCache(cardId)
clearCache(organizationId)
getLastSyncTimestamp(organizationId)
Relationships
Dependencies (1)
Components this component depends on
Related Data Entities (1)
Data entities managed by this component