{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/SoundClound_02/pulls/comments/99985567","pull_request_review_id":20676756,"id":99985567,"diff_hunk":"@@ -0,0 +1,55 @@\n+package com.framgia.soundcloud_2.data.local;\n+\n+import android.content.ContentResolver;\n+import android.content.Context;\n+import android.database.Cursor;\n+import android.net.Uri;\n+import android.provider.MediaStore;\n+\n+import com.framgia.soundcloud_2.data.DataSource;\n+import com.framgia.soundcloud_2.data.model.Category;\n+import com.framgia.soundcloud_2.data.model.Track;\n+import com.framgia.soundcloud_2.utils.Constant;\n+\n+import java.util.ArrayList;\n+\n+/**\n+ * Created by Vinh on 07/02/2017.\n+ */\n+public class SongLocalDataSource implements DataSource<Track> {\n+    private static SongLocalDataSource sSongLocalDataSource;\n+    private Context mContext;\n+\n+    private SongLocalDataSource(Context context) {\n+        this.mContext = context;\n+    }\n+\n+    public static SongLocalDataSource getInstance(Context context) {\n+        if (sSongLocalDataSource == null)\n+            return new SongLocalDataSource(context);\n+        return sSongLocalDataSource;\n+    }\n+\n+    @Override\n+    public void getDatas(Category category, GetCallback getCallback) {","path":"soundcloud_2/app/src/main/java/com/framgia/soundcloud_2/data/local/SongLocalDataSource.java","position":34,"original_position":34,"commit_id":"937daa7f8b2ba853c242817f6f00662b94a2d442","original_commit_id":"937daa7f8b2ba853c242817f6f00662b94a2d442","user":{"login":"DoanVanToan","id":21195010,"avatar_url":"https://avatars.githubusercontent.com/u/21195010?v=3","gravatar_id":"","url":"https://api.github.com/users/DoanVanToan","html_url":"https://github.com/DoanVanToan","followers_url":"https://api.github.com/users/DoanVanToan/followers","following_url":"https://api.github.com/users/DoanVanToan/following{/other_user}","gists_url":"https://api.github.com/users/DoanVanToan/gists{/gist_id}","starred_url":"https://api.github.com/users/DoanVanToan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoanVanToan/subscriptions","organizations_url":"https://api.github.com/users/DoanVanToan/orgs","repos_url":"https://api.github.com/users/DoanVanToan/repos","events_url":"https://api.github.com/users/DoanVanToan/events{/privacy}","received_events_url":"https://api.github.com/users/DoanVanToan/received_events","type":"User","site_admin":false},"body":"GetCallback<?>","created_at":"2017-02-08T03:28:59Z","updated_at":"2017-02-08T03:32:18Z","html_url":"https://github.com/framgia/SoundClound_02/pull/6#discussion_r99985567","pull_request_url":"https://api.github.com/repos/framgia/SoundClound_02/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/framgia/SoundClound_02/pulls/comments/99985567"},"html":{"href":"https://github.com/framgia/SoundClound_02/pull/6#discussion_r99985567"},"pull_request":{"href":"https://api.github.com/repos/framgia/SoundClound_02/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/SoundClound_02/pulls/6","id":104486355,"html_url":"https://github.com/framgia/SoundClound_02/pull/6","diff_url":"https://github.com/framgia/SoundClound_02/pull/6.diff","patch_url":"https://github.com/framgia/SoundClound_02/pull/6.patch","issue_url":"https://api.github.com/repos/framgia/SoundClound_02/issues/6","number":6,"state":"open","locked":false,"title":"load local song","user":{"login":"NguyenTienVinh","id":24980167,"avatar_url":"https://avatars.githubusercontent.com/u/24980167?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenTienVinh","html_url":"https://github.com/NguyenTienVinh","followers_url":"https://api.github.com/users/NguyenTienVinh/followers","following_url":"https://api.github.com/users/NguyenTienVinh/following{/other_user}","gists_url":"https://api.github.com/users/NguyenTienVinh/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenTienVinh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenTienVinh/subscriptions","organizations_url":"https://api.github.com/users/NguyenTienVinh/orgs","repos_url":"https://api.github.com/users/NguyenTienVinh/repos","events_url":"https://api.github.com/users/NguyenTienVinh/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenTienVinh/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-03T07:21:04Z","updated_at":"2017-02-08T03:32:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2dc73cb6e61f99eb0a04562a8a09d751d6581d4b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/SoundClound_02/pulls/6/commits","review_comments_url":"https://api.github.com/repos/framgia/SoundClound_02/pulls/6/comments","review_comment_url":"https://api.github.com/repos/framgia/SoundClound_02/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/SoundClound_02/issues/6/comments","statuses_url":"https://api.github.com/repos/framgia/SoundClound_02/statuses/937daa7f8b2ba853c242817f6f00662b94a2d442","head":{"label":"NguyenTienVinh:loadlocalsong","ref":"loadlocalsong","sha":"937daa7f8b2ba853c242817f6f00662b94a2d442","user":{"login":"NguyenTienVinh","id":24980167,"avatar_url":"https://avatars.githubusercontent.com/u/24980167?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenTienVinh","html_url":"https://github.com/NguyenTienVinh","followers_url":"https://api.github.com/users/NguyenTienVinh/followers","following_url":"https://api.github.com/users/NguyenTienVinh/following{/other_user}","gists_url":"https://api.github.com/users/NguyenTienVinh/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenTienVinh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenTienVinh/subscriptions","organizations_url":"https://api.github.com/users/NguyenTienVinh/orgs","repos_url":"https://api.github.com/users/NguyenTienVinh/repos","events_url":"https://api.github.com/users/NguyenTienVinh/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenTienVinh/received_events","type":"User","site_admin":false},"repo":{"id":79870161,"name":"SoundClound_02","full_name":"NguyenTienVinh/SoundClound_02","owner":{"login":"NguyenTienVinh","id":24980167,"avatar_url":"https://avatars.githubusercontent.com/u/24980167?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenTienVinh","html_url":"https://github.com/NguyenTienVinh","followers_url":"https://api.github.com/users/NguyenTienVinh/followers","following_url":"https://api.github.com/users/NguyenTienVinh/following{/other_user}","gists_url":"https://api.github.com/users/NguyenTienVinh/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenTienVinh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenTienVinh/subscriptions","organizations_url":"https://api.github.com/users/NguyenTienVinh/orgs","repos_url":"https://api.github.com/users/NguyenTienVinh/repos","events_url":"https://api.github.com/users/NguyenTienVinh/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenTienVinh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NguyenTienVinh/SoundClound_02","description":null,"fork":true,"url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02","forks_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/forks","keys_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/teams","hooks_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/hooks","issue_events_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/issues/events{/number}","events_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/events","assignees_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/assignees{/user}","branches_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/branches{/branch}","tags_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/tags","blobs_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/statuses/{sha}","languages_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/languages","stargazers_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/stargazers","contributors_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/contributors","subscribers_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/subscribers","subscription_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/subscription","commits_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/contents/{+path}","compare_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/merges","archive_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/downloads","issues_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/issues{/number}","pulls_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/pulls{/number}","milestones_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/milestones{/number}","notifications_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/labels{/name}","releases_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/releases{/id}","deployments_url":"https://api.github.com/repos/NguyenTienVinh/SoundClound_02/deployments","created_at":"2017-01-24T02:16:12Z","updated_at":"2017-02-06T09:51:12Z","pushed_at":"2017-02-08T03:20:19Z","git_url":"git://github.com/NguyenTienVinh/SoundClound_02.git","ssh_url":"git@github.com:NguyenTienVinh/SoundClound_02.git","clone_url":"https://github.com/NguyenTienVinh/SoundClound_02.git","svn_url":"https://github.com/NguyenTienVinh/SoundClound_02","homepage":null,"size":612,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"framgia:develop","ref":"develop","sha":"5ac92690a2bb14ec37c0d2fe8567f97b6e6858f9","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":79866577,"name":"SoundClound_02","full_name":"framgia/SoundClound_02","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/SoundClound_02","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/SoundClound_02","forks_url":"https://api.github.com/repos/framgia/SoundClound_02/forks","keys_url":"https://api.github.com/repos/framgia/SoundClound_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/SoundClound_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/SoundClound_02/teams","hooks_url":"https://api.github.com/repos/framgia/SoundClound_02/hooks","issue_events_url":"https://api.github.com/repos/framgia/SoundClound_02/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/SoundClound_02/events","assignees_url":"https://api.github.com/repos/framgia/SoundClound_02/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/SoundClound_02/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/SoundClound_02/tags","blobs_url":"https://api.github.com/repos/framgia/SoundClound_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/SoundClound_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/SoundClound_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/SoundClound_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/SoundClound_02/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/SoundClound_02/languages","stargazers_url":"https://api.github.com/repos/framgia/SoundClound_02/stargazers","contributors_url":"https://api.github.com/repos/framgia/SoundClound_02/contributors","subscribers_url":"https://api.github.com/repos/framgia/SoundClound_02/subscribers","subscription_url":"https://api.github.com/repos/framgia/SoundClound_02/subscription","commits_url":"https://api.github.com/repos/framgia/SoundClound_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/SoundClound_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/SoundClound_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/SoundClound_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/SoundClound_02/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/SoundClound_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/SoundClound_02/merges","archive_url":"https://api.github.com/repos/framgia/SoundClound_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/SoundClound_02/downloads","issues_url":"https://api.github.com/repos/framgia/SoundClound_02/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/SoundClound_02/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/SoundClound_02/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/SoundClound_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/SoundClound_02/labels{/name}","releases_url":"https://api.github.com/repos/framgia/SoundClound_02/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/SoundClound_02/deployments","created_at":"2017-01-24T01:22:11Z","updated_at":"2017-01-24T03:17:08Z","pushed_at":"2017-02-08T03:20:20Z","git_url":"git://github.com/framgia/SoundClound_02.git","ssh_url":"git@github.com:framgia/SoundClound_02.git","clone_url":"https://github.com/framgia/SoundClound_02.git","svn_url":"https://github.com/framgia/SoundClound_02","homepage":null,"size":603,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/SoundClound_02/pulls/6"},"html":{"href":"https://github.com/framgia/SoundClound_02/pull/6"},"issue":{"href":"https://api.github.com/repos/framgia/SoundClound_02/issues/6"},"comments":{"href":"https://api.github.com/repos/framgia/SoundClound_02/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/SoundClound_02/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/SoundClound_02/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/SoundClound_02/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/SoundClound_02/statuses/937daa7f8b2ba853c242817f6f00662b94a2d442"}}}}
{"actor":{"display_login":"DoanVanToan"}}