{"action":"created","comment":{"url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls/comments/139364223","pull_request_review_id":63284512,"id":139364223,"diff_hunk":"@@ -0,0 +1,62 @@\n+package com.framgia.moviedb.screen.main;\n+\n+import android.databinding.BaseObservable;\n+import android.databinding.Bindable;\n+import android.support.design.widget.NavigationView;\n+import android.support.v4.widget.DrawerLayout;\n+import android.support.v7.app.ActionBarDrawerToggle;\n+import android.support.v7.widget.Toolbar;\n+import com.framgia.moviedb.BR;\n+\n+import static com.framgia.moviedb.utils.Constant.DRAWER_CLOSE;\n+import static com.framgia.moviedb.utils.Constant.DRAWER_OPEN;\n+\n+/**\n+ * Created by workspace on 18/09/2017.\n+ */\n+\n+public class MainViewModel extends BaseObservable  implements MainContract.ViewModel{\n+    private DrawerLayout mDrawerLayout;\n+    private Toolbar mToolbar;\n+    private NavigationView mNavigationView;\n+    private ActionBarDrawerToggle mToggle;\n+    private MainContract.Presenter mPresenter;\n+\n+    private String mDrawerState;\n+\n+    public MainViewModel() {\n+        setDrawerState(DRAWER_CLOSE);\n+    }\n+\n+    @Override\n+    public void onStart() {\n+\n+    }\n+\n+    @Override\n+    public void onStop() {\n+\n+    }\n+\n+    public void onBackPressed(){\n+        if (mDrawerState == DRAWER_OPEN){\n+            setDrawerState(DRAWER_CLOSE);\n+        }else if(mDrawerState == DRAWER_CLOSE){","path":"app/src/main/java/com/framgia/moviedb/screen/main/MainViewModel.java","position":44,"original_position":44,"commit_id":"e14ebd0d21c4a612996c6aec2a93e0fe3a39757b","original_commit_id":"e14ebd0d21c4a612996c6aec2a93e0fe3a39757b","user":{"login":"DoanVanToan","id":21195010,"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":"ERROR: '{' is not preceded with whitespace.","created_at":"2017-09-18T08:43:16Z","updated_at":"2017-09-18T08:43:16Z","html_url":"https://github.com/DoanVanToan/Marvel_Android_02/pull/4#discussion_r139364223","pull_request_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls/4","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls/comments/139364223"},"html":{"href":"https://github.com/DoanVanToan/Marvel_Android_02/pull/4#discussion_r139364223"},"pull_request":{"href":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls/4","id":141521385,"html_url":"https://github.com/DoanVanToan/Marvel_Android_02/pull/4","diff_url":"https://github.com/DoanVanToan/Marvel_Android_02/pull/4.diff","patch_url":"https://github.com/DoanVanToan/Marvel_Android_02/pull/4.patch","issue_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/issues/4","number":4,"state":"open","locked":false,"title":"Init menu","user":{"login":"vuhust19081995","id":29648335,"avatar_url":"https://avatars3.githubusercontent.com/u/29648335?v=4","gravatar_id":"","url":"https://api.github.com/users/vuhust19081995","html_url":"https://github.com/vuhust19081995","followers_url":"https://api.github.com/users/vuhust19081995/followers","following_url":"https://api.github.com/users/vuhust19081995/following{/other_user}","gists_url":"https://api.github.com/users/vuhust19081995/gists{/gist_id}","starred_url":"https://api.github.com/users/vuhust19081995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuhust19081995/subscriptions","organizations_url":"https://api.github.com/users/vuhust19081995/orgs","repos_url":"https://api.github.com/users/vuhust19081995/repos","events_url":"https://api.github.com/users/vuhust19081995/events{/privacy}","received_events_url":"https://api.github.com/users/vuhust19081995/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-18T04:18:54Z","updated_at":"2017-09-18T08:43:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e08cbf6d36ec691b0c987f4615caa677c976bc2f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls/4/commits","review_comments_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls/4/comments","review_comment_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/issues/4/comments","statuses_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/statuses/e14ebd0d21c4a612996c6aec2a93e0fe3a39757b","head":{"label":"vuhust19081995:init_menu","ref":"init_menu","sha":"e14ebd0d21c4a612996c6aec2a93e0fe3a39757b","user":{"login":"vuhust19081995","id":29648335,"avatar_url":"https://avatars3.githubusercontent.com/u/29648335?v=4","gravatar_id":"","url":"https://api.github.com/users/vuhust19081995","html_url":"https://github.com/vuhust19081995","followers_url":"https://api.github.com/users/vuhust19081995/followers","following_url":"https://api.github.com/users/vuhust19081995/following{/other_user}","gists_url":"https://api.github.com/users/vuhust19081995/gists{/gist_id}","starred_url":"https://api.github.com/users/vuhust19081995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuhust19081995/subscriptions","organizations_url":"https://api.github.com/users/vuhust19081995/orgs","repos_url":"https://api.github.com/users/vuhust19081995/repos","events_url":"https://api.github.com/users/vuhust19081995/events{/privacy}","received_events_url":"https://api.github.com/users/vuhust19081995/received_events","type":"User","site_admin":false},"repo":{"id":103536212,"name":"Marvel_Android_02","full_name":"vuhust19081995/Marvel_Android_02","owner":{"login":"vuhust19081995","id":29648335,"avatar_url":"https://avatars3.githubusercontent.com/u/29648335?v=4","gravatar_id":"","url":"https://api.github.com/users/vuhust19081995","html_url":"https://github.com/vuhust19081995","followers_url":"https://api.github.com/users/vuhust19081995/followers","following_url":"https://api.github.com/users/vuhust19081995/following{/other_user}","gists_url":"https://api.github.com/users/vuhust19081995/gists{/gist_id}","starred_url":"https://api.github.com/users/vuhust19081995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuhust19081995/subscriptions","organizations_url":"https://api.github.com/users/vuhust19081995/orgs","repos_url":"https://api.github.com/users/vuhust19081995/repos","events_url":"https://api.github.com/users/vuhust19081995/events{/privacy}","received_events_url":"https://api.github.com/users/vuhust19081995/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vuhust19081995/Marvel_Android_02","description":null,"fork":true,"url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02","forks_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/forks","keys_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/teams","hooks_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/hooks","issue_events_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/issues/events{/number}","events_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/events","assignees_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/assignees{/user}","branches_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/branches{/branch}","tags_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/tags","blobs_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/statuses/{sha}","languages_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/languages","stargazers_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/stargazers","contributors_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/contributors","subscribers_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/subscribers","subscription_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/subscription","commits_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/contents/{+path}","compare_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/merges","archive_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/downloads","issues_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/issues{/number}","pulls_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/pulls{/number}","milestones_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/milestones{/number}","notifications_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/labels{/name}","releases_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/releases{/id}","deployments_url":"https://api.github.com/repos/vuhust19081995/Marvel_Android_02/deployments","created_at":"2017-09-14T13:33:06Z","updated_at":"2017-09-14T10:08:02Z","pushed_at":"2017-09-18T08:36:59Z","git_url":"git://github.com/vuhust19081995/Marvel_Android_02.git","ssh_url":"git@github.com:vuhust19081995/Marvel_Android_02.git","clone_url":"https://github.com/vuhust19081995/Marvel_Android_02.git","svn_url":"https://github.com/vuhust19081995/Marvel_Android_02","homepage":null,"size":197,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"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":"master"}},"base":{"label":"DoanVanToan:develop","ref":"develop","sha":"c02c9f9890dd87b080a3f466c143cdb130c8ae76","user":{"login":"DoanVanToan","id":21195010,"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},"repo":{"id":103517630,"name":"Marvel_Android_02","full_name":"DoanVanToan/Marvel_Android_02","owner":{"login":"DoanVanToan","id":21195010,"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},"private":false,"html_url":"https://github.com/DoanVanToan/Marvel_Android_02","description":null,"fork":false,"url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02","forks_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/forks","keys_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/teams","hooks_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/hooks","issue_events_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/issues/events{/number}","events_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/events","assignees_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/assignees{/user}","branches_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/branches{/branch}","tags_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/tags","blobs_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/statuses/{sha}","languages_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/languages","stargazers_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/stargazers","contributors_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/contributors","subscribers_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/subscribers","subscription_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/subscription","commits_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/contents/{+path}","compare_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/merges","archive_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/downloads","issues_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/issues{/number}","pulls_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls{/number}","milestones_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/milestones{/number}","notifications_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/labels{/name}","releases_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/releases{/id}","deployments_url":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/deployments","created_at":"2017-09-14T10:08:02Z","updated_at":"2017-09-18T03:44:46Z","pushed_at":"2017-09-18T08:37:01Z","git_url":"git://github.com/DoanVanToan/Marvel_Android_02.git","ssh_url":"git@github.com:DoanVanToan/Marvel_Android_02.git","clone_url":"https://github.com/DoanVanToan/Marvel_Android_02.git","svn_url":"https://github.com/DoanVanToan/Marvel_Android_02","homepage":null,"size":105,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls/4"},"html":{"href":"https://github.com/DoanVanToan/Marvel_Android_02/pull/4"},"issue":{"href":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/issues/4"},"comments":{"href":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/DoanVanToan/Marvel_Android_02/statuses/e14ebd0d21c4a612996c6aec2a93e0fe3a39757b"}},"author_association":"NONE"}}
{"actor":{"display_login":"DoanVanToan"}}