-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added the external router for deep links
- Loading branch information
Showing
25 changed files
with
723 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.openedx.app | ||
|
||
class DeepLink(params: Map<String, String>) { | ||
|
||
val screenName = params[Keys.SCREEN_NAME.value] | ||
val courseId = params[Keys.COURSE_ID.value] | ||
val pathId = params[Keys.PATH_ID.value] | ||
val componentId = params[Keys.COMPONENT_ID.value] | ||
val topicId = params[Keys.TOPIC_ID.value] | ||
val threadId = params[Keys.THREAD_ID.value] | ||
val commentId = params[Keys.COMMENT_ID.value] | ||
|
||
enum class Keys(val value: String) { | ||
SCREEN_NAME("screen_name"), | ||
COURSE_ID("course_id"), | ||
PATH_ID("path_id"), | ||
COMPONENT_ID("component_id"), | ||
TOPIC_ID("topic_id"), | ||
THREAD_ID("thread_id"), | ||
COMMENT_ID("comment_id") | ||
} | ||
} |
Oops, something went wrong.