Implement a repository QuizRepository as a listenable service under src/practice/repositories. Register it on the locator. It should have the following methods:
getter for List<Quiz> quizzes that load from the service all the quizzes if not already loaded
As a developer, I want a clear definition of a quiz, and a way to interact with the custom and premade quizzes.
Requirements
You can find the
Quiz
, andBaseQuiz
definitions hereUpdate the
User
definitionImplement a service that:
Implement a repository that:
What needs to be done
User
model: addsavedQuizzes
QuizContent
,QuizBase
andQuiz
modelQuestionFormat
enum with the following value:one_word
QuizService
undersrc/practice/services
. It should have the following methods:List<Quiz> getAll()
: retrieve all the quizzes in the local databaseFuture<void> synchronize()
: call the API and synchronize the local list with the API (depends on https://github.com/RoadTripMoustache/kana_to_kanji_api/issues/32)QuizRepository
as a listenable service undersrc/practice/repositories
. Register it on the locator. It should have the following methods:List<Quiz> quizzes
that load from the service all the quizzes if not already loadedlistenToReactiveValues
Dependencies
Child of #160
Depends on:
135