Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #119: Introduce interface for StoryProgressController #177

Merged
merged 2 commits into from
Sep 24, 2019

Conversation

BenHenning
Copy link
Member

This introduces the interface and a stubbed implementation for StoryProgressController, including tests. Note that this actually introduces more logic than a typical stub because I wanted to make sure that recordCompletedChapter() actually did something interesting, even if its implementation is not fully complete (e.g. it doesn't record to disk or notify the LiveData returned by getStoryProgress).

This controller does not directly correspond to any specific pages. Instead, it will aid the real implementations of #15 and #9 since both require story progress in order to properly populate their structures.

This does introduce a ChapterPlayState enum that will replace the playability enum introduced in #174. That one was written first and without context, this one is better defined in the context of tracking story progress.

This controller also assumes that lessons are not playable unless all previous lessons are completed per the mocks on the story page.

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rt4914 rt4914 removed their assignment Sep 23, 2019
Copy link
Contributor

@nikitamarysolomanpvt nikitamarysolomanpvt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BenHenning
Copy link
Member Author

Thanks!

@BenHenning BenHenning merged commit 4e0d577 into develop Sep 24, 2019
@BenHenning BenHenning deleted the introduce-story-progress-controller-interface branch September 24, 2019 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants