Open apomalyn opened 5 months ago
You can find the Achievement definition here
Achievement
Implement a service that:
Implement a repository that:
AppEvents
quiz.started
quiz.answered
quiz.ended
AchievementsService
List<Achievement> getAll()
Future<void> synchronize()
AchievementsRepository
List<Achievement> achievements
listenToReactiveValues
Child of #31
Depends on:
Requirements
You can find the
Achievement
definition hereImplement a service that:
Implement a repository that:
What needs to be done
Achievement
modelAppEvents
enum with the following values:quiz.started
quiz.answered
quiz.ended
AchievementsService
, it should have the following methods:List<Achievement> getAll()
retrieve all the achievements from the databaseFuture<void> synchronize()
which calls the API and synchronizes the local list with the API (depends on API #25)AchievementsRepository
as a listenable service, and register it on the locator. It should have the following methods:List<Achievement> achievements
that load from the service all the achievements if not already loadedlistenToReactiveValues
Dependencies
Child of #31
Depends on: