Service Layer low complexity mobile
1
Dependencies
1
Dependents
1
Entities
0
Integrations

Description

Retrieves, filters, and shuffles talking card content from the local store. Handles optional background refresh from a versioned JSON endpoint or lightweight CMS when connectivity is available, falling back to bundled content otherwise.

Feature: Talking Cards Toolbox

cards-content-service

Responsibilities

  • Retrieve card content from local store with category and topic filtering
  • Provide shuffle and random selection logic for card decks
  • Check for updated card content from backend endpoint and sync to local store
  • Manage card content versioning to avoid unnecessary downloads

Interfaces

getCards(filter?: CardFilter): List<TalkingCard>
getCategories(): List<String>
getCardsByCategory(category: String): List<TalkingCard>
shuffleCards(cards: List<TalkingCard>): List<TalkingCard>
getRandomCard(): TalkingCard
syncContent(): Future<SyncResult>
getContentVersion(): String

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component