{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/moviedb_18/pulls/comments/208793344","pull_request_review_id":144675085,"id":208793344,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODc5MzM0NA==","diff_hunk":"@@ -2,19 +2,67 @@\n \n import android.os.Bundle;\n import android.support.v4.app.Fragment;\n+import android.support.v7.widget.GridLayoutManager;\n+import android.support.v7.widget.RecyclerView;\n import android.view.LayoutInflater;\n import android.view.View;\n import android.view.ViewGroup;\n+import android.widget.Toast;\n \n+import java.util.ArrayList;\n+\n+import edu.ptit.vhlee.moviedb.MovieAdapter;\n+import edu.ptit.vhlee.moviedb.MovieContract;\n+import edu.ptit.vhlee.moviedb.MoviePresenter;\n import edu.ptit.vhlee.moviedb.R;\n+import edu.ptit.vhlee.moviedb.data.config.Constant;\n+import edu.ptit.vhlee.moviedb.data.model.Movie;\n \n-public class PopularFragment extends Fragment {\n+public class PopularFragment extends Fragment implements MovieContract.View {\n+    private RecyclerView recyclerView;\n+    private MoviePresenter mMoviePresenter;\n+    private MovieAdapter mMovieAdapter;\n     public PopularFragment() {\n+        mMoviePresenter = new MoviePresenter(this);\n     }\n \n     @Override\n     public View onCreateView(LayoutInflater inflater, ViewGroup container,\n                              Bundle savedInstanceState) {\n-        return inflater.inflate(R.layout.fragment_popular, container, false);\n+        View view = inflater.inflate(R.layout.fragment_upcoming, container, false);\n+        init(view);\n+        getDataPage();\n+        return view;\n+    }\n+    public void init(View view) {\n+        recyclerView = view.findViewById(R.id.recyclerview);\n+    }\n+\n+    public void getDataPage() {\n+        int pageNum = 0;\n+        while (pageNum < Constant.Common.TOTAL_PAGE) {","path":"app/src/main/java/edu/ptit/vhlee/moviedb/popular/PopularFragment.java","position":44,"original_position":44,"commit_id":"8154ef4958e4bc7ab2e37ac4a46d901c93e31abc","original_commit_id":"8154ef4958e4bc7ab2e37ac4a46d901c93e31abc","user":{"login":"DoanVanToan","id":21195010,"node_id":"MDQ6VXNlcjIxMTk1MDEw","avatar_url":"https://avatars3.githubusercontent.com/u/21195010?v=4","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":"tại sao dùng while mà k dùng if","created_at":"2018-08-09T02:49:22Z","updated_at":"2018-08-09T02:49:30Z","html_url":"https://github.com/framgia/moviedb_18/pull/7#discussion_r208793344","pull_request_url":"https://api.github.com/repos/framgia/moviedb_18/pulls/7","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/framgia/moviedb_18/pulls/comments/208793344"},"html":{"href":"https://github.com/framgia/moviedb_18/pull/7#discussion_r208793344"},"pull_request":{"href":"https://api.github.com/repos/framgia/moviedb_18/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/moviedb_18/pulls/7","id":206888281,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2ODg4Mjgx","html_url":"https://github.com/framgia/moviedb_18/pull/7","diff_url":"https://github.com/framgia/moviedb_18/pull/7.diff","patch_url":"https://github.com/framgia/moviedb_18/pull/7.patch","issue_url":"https://api.github.com/repos/framgia/moviedb_18/issues/7","number":7,"state":"open","locked":false,"title":"Toprate","user":{"login":"goku1004","id":40787201,"node_id":"MDQ6VXNlcjQwNzg3MjAx","avatar_url":"https://avatars2.githubusercontent.com/u/40787201?v=4","gravatar_id":"","url":"https://api.github.com/users/goku1004","html_url":"https://github.com/goku1004","followers_url":"https://api.github.com/users/goku1004/followers","following_url":"https://api.github.com/users/goku1004/following{/other_user}","gists_url":"https://api.github.com/users/goku1004/gists{/gist_id}","starred_url":"https://api.github.com/users/goku1004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goku1004/subscriptions","organizations_url":"https://api.github.com/users/goku1004/orgs","repos_url":"https://api.github.com/users/goku1004/repos","events_url":"https://api.github.com/users/goku1004/events{/privacy}","received_events_url":"https://api.github.com/users/goku1004/received_events","type":"User","site_admin":false},"body":"https://edu-redmine.framgia.vn/issues/288","created_at":"2018-08-08T04:17:16Z","updated_at":"2018-08-09T02:49:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7556c82b24fe2cde06db172ac31eb85ea38f5c12","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/moviedb_18/pulls/7/commits","review_comments_url":"https://api.github.com/repos/framgia/moviedb_18/pulls/7/comments","review_comment_url":"https://api.github.com/repos/framgia/moviedb_18/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/moviedb_18/issues/7/comments","statuses_url":"https://api.github.com/repos/framgia/moviedb_18/statuses/8154ef4958e4bc7ab2e37ac4a46d901c93e31abc","head":{"label":"goku1004:toprate","ref":"toprate","sha":"8154ef4958e4bc7ab2e37ac4a46d901c93e31abc","user":{"login":"goku1004","id":40787201,"node_id":"MDQ6VXNlcjQwNzg3MjAx","avatar_url":"https://avatars2.githubusercontent.com/u/40787201?v=4","gravatar_id":"","url":"https://api.github.com/users/goku1004","html_url":"https://github.com/goku1004","followers_url":"https://api.github.com/users/goku1004/followers","following_url":"https://api.github.com/users/goku1004/following{/other_user}","gists_url":"https://api.github.com/users/goku1004/gists{/gist_id}","starred_url":"https://api.github.com/users/goku1004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goku1004/subscriptions","organizations_url":"https://api.github.com/users/goku1004/orgs","repos_url":"https://api.github.com/users/goku1004/repos","events_url":"https://api.github.com/users/goku1004/events{/privacy}","received_events_url":"https://api.github.com/users/goku1004/received_events","type":"User","site_admin":false},"repo":{"id":143271988,"node_id":"MDEwOlJlcG9zaXRvcnkxNDMyNzE5ODg=","name":"moviedb_18","full_name":"goku1004/moviedb_18","owner":{"login":"goku1004","id":40787201,"node_id":"MDQ6VXNlcjQwNzg3MjAx","avatar_url":"https://avatars2.githubusercontent.com/u/40787201?v=4","gravatar_id":"","url":"https://api.github.com/users/goku1004","html_url":"https://github.com/goku1004","followers_url":"https://api.github.com/users/goku1004/followers","following_url":"https://api.github.com/users/goku1004/following{/other_user}","gists_url":"https://api.github.com/users/goku1004/gists{/gist_id}","starred_url":"https://api.github.com/users/goku1004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goku1004/subscriptions","organizations_url":"https://api.github.com/users/goku1004/orgs","repos_url":"https://api.github.com/users/goku1004/repos","events_url":"https://api.github.com/users/goku1004/events{/privacy}","received_events_url":"https://api.github.com/users/goku1004/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/goku1004/moviedb_18","description":null,"fork":true,"url":"https://api.github.com/repos/goku1004/moviedb_18","forks_url":"https://api.github.com/repos/goku1004/moviedb_18/forks","keys_url":"https://api.github.com/repos/goku1004/moviedb_18/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goku1004/moviedb_18/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goku1004/moviedb_18/teams","hooks_url":"https://api.github.com/repos/goku1004/moviedb_18/hooks","issue_events_url":"https://api.github.com/repos/goku1004/moviedb_18/issues/events{/number}","events_url":"https://api.github.com/repos/goku1004/moviedb_18/events","assignees_url":"https://api.github.com/repos/goku1004/moviedb_18/assignees{/user}","branches_url":"https://api.github.com/repos/goku1004/moviedb_18/branches{/branch}","tags_url":"https://api.github.com/repos/goku1004/moviedb_18/tags","blobs_url":"https://api.github.com/repos/goku1004/moviedb_18/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goku1004/moviedb_18/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goku1004/moviedb_18/git/refs{/sha}","trees_url":"https://api.github.com/repos/goku1004/moviedb_18/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goku1004/moviedb_18/statuses/{sha}","languages_url":"https://api.github.com/repos/goku1004/moviedb_18/languages","stargazers_url":"https://api.github.com/repos/goku1004/moviedb_18/stargazers","contributors_url":"https://api.github.com/repos/goku1004/moviedb_18/contributors","subscribers_url":"https://api.github.com/repos/goku1004/moviedb_18/subscribers","subscription_url":"https://api.github.com/repos/goku1004/moviedb_18/subscription","commits_url":"https://api.github.com/repos/goku1004/moviedb_18/commits{/sha}","git_commits_url":"https://api.github.com/repos/goku1004/moviedb_18/git/commits{/sha}","comments_url":"https://api.github.com/repos/goku1004/moviedb_18/comments{/number}","issue_comment_url":"https://api.github.com/repos/goku1004/moviedb_18/issues/comments{/number}","contents_url":"https://api.github.com/repos/goku1004/moviedb_18/contents/{+path}","compare_url":"https://api.github.com/repos/goku1004/moviedb_18/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goku1004/moviedb_18/merges","archive_url":"https://api.github.com/repos/goku1004/moviedb_18/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goku1004/moviedb_18/downloads","issues_url":"https://api.github.com/repos/goku1004/moviedb_18/issues{/number}","pulls_url":"https://api.github.com/repos/goku1004/moviedb_18/pulls{/number}","milestones_url":"https://api.github.com/repos/goku1004/moviedb_18/milestones{/number}","notifications_url":"https://api.github.com/repos/goku1004/moviedb_18/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goku1004/moviedb_18/labels{/name}","releases_url":"https://api.github.com/repos/goku1004/moviedb_18/releases{/id}","deployments_url":"https://api.github.com/repos/goku1004/moviedb_18/deployments","created_at":"2018-08-02T09:21:22Z","updated_at":"2018-08-02T09:21:24Z","pushed_at":"2018-08-08T17:15:28Z","git_url":"git://github.com/goku1004/moviedb_18.git","ssh_url":"git@github.com:goku1004/moviedb_18.git","clone_url":"https://github.com/goku1004/moviedb_18.git","svn_url":"https://github.com/goku1004/moviedb_18","homepage":null,"size":161,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"0224ed471d8fa467acf88cf10ff33314482af758","user":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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":143087947,"node_id":"MDEwOlJlcG9zaXRvcnkxNDMwODc5NDc=","name":"moviedb_18","full_name":"framgia/moviedb_18","owner":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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/moviedb_18","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/moviedb_18","forks_url":"https://api.github.com/repos/framgia/moviedb_18/forks","keys_url":"https://api.github.com/repos/framgia/moviedb_18/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/moviedb_18/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/moviedb_18/teams","hooks_url":"https://api.github.com/repos/framgia/moviedb_18/hooks","issue_events_url":"https://api.github.com/repos/framgia/moviedb_18/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/moviedb_18/events","assignees_url":"https://api.github.com/repos/framgia/moviedb_18/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/moviedb_18/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/moviedb_18/tags","blobs_url":"https://api.github.com/repos/framgia/moviedb_18/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/moviedb_18/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/moviedb_18/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/moviedb_18/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/moviedb_18/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/moviedb_18/languages","stargazers_url":"https://api.github.com/repos/framgia/moviedb_18/stargazers","contributors_url":"https://api.github.com/repos/framgia/moviedb_18/contributors","subscribers_url":"https://api.github.com/repos/framgia/moviedb_18/subscribers","subscription_url":"https://api.github.com/repos/framgia/moviedb_18/subscription","commits_url":"https://api.github.com/repos/framgia/moviedb_18/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/moviedb_18/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/moviedb_18/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/moviedb_18/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/moviedb_18/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/moviedb_18/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/moviedb_18/merges","archive_url":"https://api.github.com/repos/framgia/moviedb_18/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/moviedb_18/downloads","issues_url":"https://api.github.com/repos/framgia/moviedb_18/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/moviedb_18/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/moviedb_18/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/moviedb_18/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/moviedb_18/labels{/name}","releases_url":"https://api.github.com/repos/framgia/moviedb_18/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/moviedb_18/deployments","created_at":"2018-08-01T01:27:26Z","updated_at":"2018-08-08T08:38:41Z","pushed_at":"2018-08-09T02:42:25Z","git_url":"git://github.com/framgia/moviedb_18.git","ssh_url":"git@github.com:framgia/moviedb_18.git","clone_url":"https://github.com/framgia/moviedb_18.git","svn_url":"https://github.com/framgia/moviedb_18","homepage":null,"size":157,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":2,"open_issues":4,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/moviedb_18/pulls/7"},"html":{"href":"https://github.com/framgia/moviedb_18/pull/7"},"issue":{"href":"https://api.github.com/repos/framgia/moviedb_18/issues/7"},"comments":{"href":"https://api.github.com/repos/framgia/moviedb_18/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/moviedb_18/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/moviedb_18/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/moviedb_18/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/moviedb_18/statuses/8154ef4958e4bc7ab2e37ac4a46d901c93e31abc"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"DoanVanToan"}}