Implement a KnowledgeLevelRepository, it should have:
have a method KnowledgeLevelStatus getKnowledgeLevelStatus(ResourceUid uid) that returns the learning status of a specific resource (learned, practising, seen, not_seen)
have a LearningMode learningMode that indicates the current learning mode of the user. This should have a setter and getter
A resource knowledge level is considered:
not_seen: no KnowledgeLevel exist
seen: KnowledgeLevel.gap >= 0
practicing: KnowledgeLevel.gap >= 3
learned: KnowledgeLevel.gap >= 60
What needs to be done
Create a KnowledgeLevelRepository under core/repositories, it should have a method getKnowledgeLevelStatus that returns the status of learning of a specific resource. If the ResourceUid isn't in the KnowledgeLevels collection, returns not_seen
Requirements
Implement a
KnowledgeLevelRepository
, it should have:KnowledgeLevelStatus getKnowledgeLevelStatus(ResourceUid uid)
that returns the learning status of a specific resource (learned, practising, seen, not_seen)LearningMode learningMode
that indicates the current learning mode of the user. This should have a setter and getterA resource knowledge level is considered:
not_seen
: no KnowledgeLevel existseen
: KnowledgeLevel.gap >= 0practicing
: KnowledgeLevel.gap >= 3learned
: KnowledgeLevel.gap >= 60What needs to be done
Create a
KnowledgeLevelRepository
undercore/repositories
, it should have a methodgetKnowledgeLevelStatus
that returns the status of learning of a specific resource. If the ResourceUid isn't in theKnowledgeLevels
collection, returnsnot_seen
Dependencies
Child of #218
Depends on:
- #226 ## Dev notes