-
Notifications
You must be signed in to change notification settings - Fork 0
SLG User Progress
Ekaterina Bogacheva edited this page Jun 18, 2024
·
14 revisions
User progress updates upon task completion.
SLGUserProgress
class handles the progress of a user. It provides methods such as markTaskAsCompleted
, updateScore
, updateSubtopicScore
and updateTopicScore
to manipulate the progress.
When you successfully submitted the task, checkResult
method within SLGTaskView
triggers an event, which is handled by a model (cause each task view has a corresponding task object). SLGSubtopic
and SLGTopic
observe #taskCompleted
, verify completion (using methods isCompleted
, onSubtopicCompleted
and onTopicCompleted
), and trigger update of the view if needed.