{"action":"created","comment":{"url":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/comments/30000312","id":30000312,"diff_hunk":"@@ -70,6 +79,9 @@\n     private static final int NOTES_ID_CARDS_ORD = 1004;\n     private static final int MODELS = 2000;\n     private static final int MODELS_ID = 2001;\n+    private static final int SCHEDULE = 3000;\n+    private static final int DECKS = 4000;\n+    private static final int DECK_SELECTED = 4001;","path":"AnkiDroid/src/main/java/com/ichi2/anki/provider/CardContentProvider.java","position":33,"original_position":33,"commit_id":"312c728f9a7a19d9351b27c0d93bbbc39c528da2","original_commit_id":"312c728f9a7a19d9351b27c0d93bbbc39c528da2","user":{"login":"wlky","id":10642029,"avatar_url":"https://avatars.githubusercontent.com/u/10642029?v=3","gravatar_id":"","url":"https://api.github.com/users/wlky","html_url":"https://github.com/wlky","followers_url":"https://api.github.com/users/wlky/followers","following_url":"https://api.github.com/users/wlky/following{/other_user}","gists_url":"https://api.github.com/users/wlky/gists{/gist_id}","starred_url":"https://api.github.com/users/wlky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlky/subscriptions","organizations_url":"https://api.github.com/users/wlky/orgs","repos_url":"https://api.github.com/users/wlky/repos","events_url":"https://api.github.com/users/wlky/events{/privacy}","received_events_url":"https://api.github.com/users/wlky/received_events","type":"User","site_admin":false},"body":"I think so, they are necessary for the UriMatcher to work. In Case you meant if it is still required to have all three of them: the DECKS constant is for requesting the deck list, the SCHEDULE for requesting the scheduled cards. DECK_SELECTED could also be replaced by adding a parameter to the DECK_LIST (isSelected or something) ","created_at":"2015-05-10T09:27:18Z","updated_at":"2015-05-10T09:27:18Z","html_url":"https://github.com/ankidroid/Anki-Android/pull/823#discussion_r30000312","pull_request_url":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/823","_links":{"self":{"href":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/comments/30000312"},"html":{"href":"https://github.com/ankidroid/Anki-Android/pull/823#discussion_r30000312"},"pull_request":{"href":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/823"}}},"pull_request":{"url":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/823","id":34553046,"html_url":"https://github.com/ankidroid/Anki-Android/pull/823","diff_url":"https://github.com/ankidroid/Anki-Android/pull/823.diff","patch_url":"https://github.com/ankidroid/Anki-Android/pull/823.patch","issue_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/823","number":823,"state":"open","locked":false,"title":"Scheduler and Deck info through ContentProvider","user":{"login":"wlky","id":10642029,"avatar_url":"https://avatars.githubusercontent.com/u/10642029?v=3","gravatar_id":"","url":"https://api.github.com/users/wlky","html_url":"https://github.com/wlky","followers_url":"https://api.github.com/users/wlky/followers","following_url":"https://api.github.com/users/wlky/following{/other_user}","gists_url":"https://api.github.com/users/wlky/gists{/gist_id}","starred_url":"https://api.github.com/users/wlky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlky/subscriptions","organizations_url":"https://api.github.com/users/wlky/orgs","repos_url":"https://api.github.com/users/wlky/repos","events_url":"https://api.github.com/users/wlky/events{/privacy}","received_events_url":"https://api.github.com/users/wlky/received_events","type":"User","site_admin":false},"body":"In order to allow reviews from other apps and devices (especially Android Wear Smartwatches) I extended the CardContentProvider and FlashCardsContract with methods and classes that allow external apps to:\r\n\r\n-request a list containing the name and id of the users decks\r\n-request the next scheduled card\r\n-request which deck is selected right now\r\n-update the ease of a card (answer the card)\r\n-update the selected deck (choose a deck)","created_at":"2015-05-01T17:45:20Z","updated_at":"2015-05-10T09:27:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e95f911090505a69342b6303570f24e3cbaee6ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/823/commits","review_comments_url":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/823/comments","review_comment_url":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/823/comments","statuses_url":"https://api.github.com/repos/ankidroid/Anki-Android/statuses/312c728f9a7a19d9351b27c0d93bbbc39c528da2","head":{"label":"wlky:develop_standalone","ref":"develop_standalone","sha":"312c728f9a7a19d9351b27c0d93bbbc39c528da2","user":{"login":"wlky","id":10642029,"avatar_url":"https://avatars.githubusercontent.com/u/10642029?v=3","gravatar_id":"","url":"https://api.github.com/users/wlky","html_url":"https://github.com/wlky","followers_url":"https://api.github.com/users/wlky/followers","following_url":"https://api.github.com/users/wlky/following{/other_user}","gists_url":"https://api.github.com/users/wlky/gists{/gist_id}","starred_url":"https://api.github.com/users/wlky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlky/subscriptions","organizations_url":"https://api.github.com/users/wlky/orgs","repos_url":"https://api.github.com/users/wlky/repos","events_url":"https://api.github.com/users/wlky/events{/privacy}","received_events_url":"https://api.github.com/users/wlky/received_events","type":"User","site_admin":false},"repo":{"id":29623317,"name":"Anki-Android","full_name":"wlky/Anki-Android","owner":{"login":"wlky","id":10642029,"avatar_url":"https://avatars.githubusercontent.com/u/10642029?v=3","gravatar_id":"","url":"https://api.github.com/users/wlky","html_url":"https://github.com/wlky","followers_url":"https://api.github.com/users/wlky/followers","following_url":"https://api.github.com/users/wlky/following{/other_user}","gists_url":"https://api.github.com/users/wlky/gists{/gist_id}","starred_url":"https://api.github.com/users/wlky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlky/subscriptions","organizations_url":"https://api.github.com/users/wlky/orgs","repos_url":"https://api.github.com/users/wlky/repos","events_url":"https://api.github.com/users/wlky/events{/privacy}","received_events_url":"https://api.github.com/users/wlky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wlky/Anki-Android","description":"Anki on Android","fork":true,"url":"https://api.github.com/repos/wlky/Anki-Android","forks_url":"https://api.github.com/repos/wlky/Anki-Android/forks","keys_url":"https://api.github.com/repos/wlky/Anki-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wlky/Anki-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wlky/Anki-Android/teams","hooks_url":"https://api.github.com/repos/wlky/Anki-Android/hooks","issue_events_url":"https://api.github.com/repos/wlky/Anki-Android/issues/events{/number}","events_url":"https://api.github.com/repos/wlky/Anki-Android/events","assignees_url":"https://api.github.com/repos/wlky/Anki-Android/assignees{/user}","branches_url":"https://api.github.com/repos/wlky/Anki-Android/branches{/branch}","tags_url":"https://api.github.com/repos/wlky/Anki-Android/tags","blobs_url":"https://api.github.com/repos/wlky/Anki-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wlky/Anki-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wlky/Anki-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/wlky/Anki-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wlky/Anki-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/wlky/Anki-Android/languages","stargazers_url":"https://api.github.com/repos/wlky/Anki-Android/stargazers","contributors_url":"https://api.github.com/repos/wlky/Anki-Android/contributors","subscribers_url":"https://api.github.com/repos/wlky/Anki-Android/subscribers","subscription_url":"https://api.github.com/repos/wlky/Anki-Android/subscription","commits_url":"https://api.github.com/repos/wlky/Anki-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/wlky/Anki-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/wlky/Anki-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/wlky/Anki-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/wlky/Anki-Android/contents/{+path}","compare_url":"https://api.github.com/repos/wlky/Anki-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wlky/Anki-Android/merges","archive_url":"https://api.github.com/repos/wlky/Anki-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wlky/Anki-Android/downloads","issues_url":"https://api.github.com/repos/wlky/Anki-Android/issues{/number}","pulls_url":"https://api.github.com/repos/wlky/Anki-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/wlky/Anki-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/wlky/Anki-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wlky/Anki-Android/labels{/name}","releases_url":"https://api.github.com/repos/wlky/Anki-Android/releases{/id}","created_at":"2015-01-21T22:34:37Z","updated_at":"2015-04-21T10:11:23Z","pushed_at":"2015-05-06T13:13:45Z","git_url":"git://github.com/wlky/Anki-Android.git","ssh_url":"git@github.com:wlky/Anki-Android.git","clone_url":"https://github.com/wlky/Anki-Android.git","svn_url":"https://github.com/wlky/Anki-Android","homepage":"https://code.google.com/p/ankidroid/","size":71890,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"ankidroid:develop","ref":"develop","sha":"415eed906d91ec07143d9a5235c94ddcf284539a","user":{"login":"ankidroid","id":3320903,"avatar_url":"https://avatars.githubusercontent.com/u/3320903?v=3","gravatar_id":"","url":"https://api.github.com/users/ankidroid","html_url":"https://github.com/ankidroid","followers_url":"https://api.github.com/users/ankidroid/followers","following_url":"https://api.github.com/users/ankidroid/following{/other_user}","gists_url":"https://api.github.com/users/ankidroid/gists{/gist_id}","starred_url":"https://api.github.com/users/ankidroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankidroid/subscriptions","organizations_url":"https://api.github.com/users/ankidroid/orgs","repos_url":"https://api.github.com/users/ankidroid/repos","events_url":"https://api.github.com/users/ankidroid/events{/privacy}","received_events_url":"https://api.github.com/users/ankidroid/received_events","type":"Organization","site_admin":false},"repo":{"id":7716883,"name":"Anki-Android","full_name":"ankidroid/Anki-Android","owner":{"login":"ankidroid","id":3320903,"avatar_url":"https://avatars.githubusercontent.com/u/3320903?v=3","gravatar_id":"","url":"https://api.github.com/users/ankidroid","html_url":"https://github.com/ankidroid","followers_url":"https://api.github.com/users/ankidroid/followers","following_url":"https://api.github.com/users/ankidroid/following{/other_user}","gists_url":"https://api.github.com/users/ankidroid/gists{/gist_id}","starred_url":"https://api.github.com/users/ankidroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankidroid/subscriptions","organizations_url":"https://api.github.com/users/ankidroid/orgs","repos_url":"https://api.github.com/users/ankidroid/repos","events_url":"https://api.github.com/users/ankidroid/events{/privacy}","received_events_url":"https://api.github.com/users/ankidroid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ankidroid/Anki-Android","description":"Anki on Android","fork":true,"url":"https://api.github.com/repos/ankidroid/Anki-Android","forks_url":"https://api.github.com/repos/ankidroid/Anki-Android/forks","keys_url":"https://api.github.com/repos/ankidroid/Anki-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ankidroid/Anki-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ankidroid/Anki-Android/teams","hooks_url":"https://api.github.com/repos/ankidroid/Anki-Android/hooks","issue_events_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/events{/number}","events_url":"https://api.github.com/repos/ankidroid/Anki-Android/events","assignees_url":"https://api.github.com/repos/ankidroid/Anki-Android/assignees{/user}","branches_url":"https://api.github.com/repos/ankidroid/Anki-Android/branches{/branch}","tags_url":"https://api.github.com/repos/ankidroid/Anki-Android/tags","blobs_url":"https://api.github.com/repos/ankidroid/Anki-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ankidroid/Anki-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ankidroid/Anki-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/ankidroid/Anki-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ankidroid/Anki-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/ankidroid/Anki-Android/languages","stargazers_url":"https://api.github.com/repos/ankidroid/Anki-Android/stargazers","contributors_url":"https://api.github.com/repos/ankidroid/Anki-Android/contributors","subscribers_url":"https://api.github.com/repos/ankidroid/Anki-Android/subscribers","subscription_url":"https://api.github.com/repos/ankidroid/Anki-Android/subscription","commits_url":"https://api.github.com/repos/ankidroid/Anki-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/ankidroid/Anki-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/ankidroid/Anki-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/ankidroid/Anki-Android/contents/{+path}","compare_url":"https://api.github.com/repos/ankidroid/Anki-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ankidroid/Anki-Android/merges","archive_url":"https://api.github.com/repos/ankidroid/Anki-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ankidroid/Anki-Android/downloads","issues_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues{/number}","pulls_url":"https://api.github.com/repos/ankidroid/Anki-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/ankidroid/Anki-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/ankidroid/Anki-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ankidroid/Anki-Android/labels{/name}","releases_url":"https://api.github.com/repos/ankidroid/Anki-Android/releases{/id}","created_at":"2013-01-20T13:55:53Z","updated_at":"2015-05-09T16:34:29Z","pushed_at":"2015-05-09T12:12:02Z","git_url":"git://github.com/ankidroid/Anki-Android.git","ssh_url":"git@github.com:ankidroid/Anki-Android.git","clone_url":"https://github.com/ankidroid/Anki-Android.git","svn_url":"https://github.com/ankidroid/Anki-Android","homepage":"https://code.google.com/p/ankidroid/","size":135936,"stargazers_count":267,"watchers_count":267,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":310,"mirror_url":null,"open_issues_count":7,"forks":310,"open_issues":7,"watchers":267,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/823"},"html":{"href":"https://github.com/ankidroid/Anki-Android/pull/823"},"issue":{"href":"https://api.github.com/repos/ankidroid/Anki-Android/issues/823"},"comments":{"href":"https://api.github.com/repos/ankidroid/Anki-Android/issues/823/comments"},"review_comments":{"href":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/823/comments"},"review_comment":{"href":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/823/commits"},"statuses":{"href":"https://api.github.com/repos/ankidroid/Anki-Android/statuses/312c728f9a7a19d9351b27c0d93bbbc39c528da2"}}}}