{"action":"created","comment":{"url":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls/comments/231434987","pull_request_review_id":172401328,"id":231434987,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTQzNDk4Nw==","diff_hunk":"@@ -20,19 +30,48 @@ public static PrivateRoomRemoteDatasource getInstance(FirebaseDatabase database)\n         }\n         return sInstance;\n     }\n+\n     private PrivateRoomRemoteDatasource(FirebaseDatabase database) {\n         mDatabase = database;\n     }\n \n     @Override\n     public void getPrivateRooms(ValueEventListener valueEventListener) {\n         mDatabase.getReference(\n-                PrivateRoom.PrivateRoomKey.PRIVATE_ROOM)\n+                Room.PrivateRoomKey.PRIVATE_ROOM)\n                 .addValueEventListener(valueEventListener);\n     }\n \n     @Override\n-    public void createPrivateRoom(ValueEventListener valueEventListener) {\n+    public void createPrivateRoom(OnCompleteListener onCompleteListener, OnFailureListener onFailureListener) {\n+        Room room = new Room();\n+        HashMap<String, Message> hashMap = new HashMap<>();\n+        Message message = new Message(\n+                Message.MessageKey.CONTENT_DEFAULT,\n+                getCurrentTime(),\n+                Message.MessageKey.SENDER_ID_DEFAULT,\n+                Message.MessageKey.SENDER_NAME_DEFAULT,\n+                Message.MessageKey.SENDER_IMAGE_DEFAULT);\n+        hashMap.put(\"3a6Fo5rrUcBqhUJcLsP0\", message);","path":"app/src/main/java/framgia/com/ichat/data/source/remote/PrivateRoomRemoteDatasource.java","position":52,"original_position":52,"commit_id":"81be8bb239d56ac3cc88fa2f6ef841e9586df009","original_commit_id":"81be8bb239d56ac3cc88fa2f6ef841e9586df009","user":{"login":"Tuanlvt","id":16049882,"node_id":"MDQ6VXNlcjE2MDQ5ODgy","avatar_url":"https://avatars1.githubusercontent.com/u/16049882?v=4","gravatar_id":"","url":"https://api.github.com/users/Tuanlvt","html_url":"https://github.com/Tuanlvt","followers_url":"https://api.github.com/users/Tuanlvt/followers","following_url":"https://api.github.com/users/Tuanlvt/following{/other_user}","gists_url":"https://api.github.com/users/Tuanlvt/gists{/gist_id}","starred_url":"https://api.github.com/users/Tuanlvt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tuanlvt/subscriptions","organizations_url":"https://api.github.com/users/Tuanlvt/orgs","repos_url":"https://api.github.com/users/Tuanlvt/repos","events_url":"https://api.github.com/users/Tuanlvt/events{/privacy}","received_events_url":"https://api.github.com/users/Tuanlvt/received_events","type":"User","site_admin":false},"body":"hard code","created_at":"2018-11-07T09:34:51Z","updated_at":"2018-11-07T09:46:51Z","html_url":"https://github.com/awesome-academy/android_ichat_01/pull/27#discussion_r231434987","pull_request_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls/27","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls/comments/231434987"},"html":{"href":"https://github.com/awesome-academy/android_ichat_01/pull/27#discussion_r231434987"},"pull_request":{"href":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls/27","id":228964172,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4OTY0MTcy","html_url":"https://github.com/awesome-academy/android_ichat_01/pull/27","diff_url":"https://github.com/awesome-academy/android_ichat_01/pull/27.diff","patch_url":"https://github.com/awesome-academy/android_ichat_01/pull/27.patch","issue_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/issues/27","number":27,"state":"open","locked":false,"title":"Ref task 3039 Handler event click on items","user":{"login":"tuanda5353","id":40159711,"node_id":"MDQ6VXNlcjQwMTU5NzEx","avatar_url":"https://avatars2.githubusercontent.com/u/40159711?v=4","gravatar_id":"","url":"https://api.github.com/users/tuanda5353","html_url":"https://github.com/tuanda5353","followers_url":"https://api.github.com/users/tuanda5353/followers","following_url":"https://api.github.com/users/tuanda5353/following{/other_user}","gists_url":"https://api.github.com/users/tuanda5353/gists{/gist_id}","starred_url":"https://api.github.com/users/tuanda5353/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuanda5353/subscriptions","organizations_url":"https://api.github.com/users/tuanda5353/orgs","repos_url":"https://api.github.com/users/tuanda5353/repos","events_url":"https://api.github.com/users/tuanda5353/events{/privacy}","received_events_url":"https://api.github.com/users/tuanda5353/received_events","type":"User","site_admin":false},"body":"### Summary:\r\n- [Feature] Private room screen\r\n### Link Issue:\r\n-  https://edu-redmine.framgia.vn/issues/3039\r\n","created_at":"2018-11-07T09:26:12Z","updated_at":"2018-11-07T09:46:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02f99e03122deb5940bfdd2c3fb97207dfe75a66","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls/27/commits","review_comments_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls/27/comments","review_comment_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/issues/27/comments","statuses_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/statuses/81be8bb239d56ac3cc88fa2f6ef841e9586df009","head":{"label":"tuanda5353:3039_handler_event_click_on_items","ref":"3039_handler_event_click_on_items","sha":"81be8bb239d56ac3cc88fa2f6ef841e9586df009","user":{"login":"tuanda5353","id":40159711,"node_id":"MDQ6VXNlcjQwMTU5NzEx","avatar_url":"https://avatars2.githubusercontent.com/u/40159711?v=4","gravatar_id":"","url":"https://api.github.com/users/tuanda5353","html_url":"https://github.com/tuanda5353","followers_url":"https://api.github.com/users/tuanda5353/followers","following_url":"https://api.github.com/users/tuanda5353/following{/other_user}","gists_url":"https://api.github.com/users/tuanda5353/gists{/gist_id}","starred_url":"https://api.github.com/users/tuanda5353/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuanda5353/subscriptions","organizations_url":"https://api.github.com/users/tuanda5353/orgs","repos_url":"https://api.github.com/users/tuanda5353/repos","events_url":"https://api.github.com/users/tuanda5353/events{/privacy}","received_events_url":"https://api.github.com/users/tuanda5353/received_events","type":"User","site_admin":false},"repo":{"id":154790585,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ3OTA1ODU=","name":"android_ichat_01","full_name":"tuanda5353/android_ichat_01","private":false,"owner":{"login":"tuanda5353","id":40159711,"node_id":"MDQ6VXNlcjQwMTU5NzEx","avatar_url":"https://avatars2.githubusercontent.com/u/40159711?v=4","gravatar_id":"","url":"https://api.github.com/users/tuanda5353","html_url":"https://github.com/tuanda5353","followers_url":"https://api.github.com/users/tuanda5353/followers","following_url":"https://api.github.com/users/tuanda5353/following{/other_user}","gists_url":"https://api.github.com/users/tuanda5353/gists{/gist_id}","starred_url":"https://api.github.com/users/tuanda5353/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuanda5353/subscriptions","organizations_url":"https://api.github.com/users/tuanda5353/orgs","repos_url":"https://api.github.com/users/tuanda5353/repos","events_url":"https://api.github.com/users/tuanda5353/events{/privacy}","received_events_url":"https://api.github.com/users/tuanda5353/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tuanda5353/android_ichat_01","description":null,"fork":true,"url":"https://api.github.com/repos/tuanda5353/android_ichat_01","forks_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/forks","keys_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/teams","hooks_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/hooks","issue_events_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/issues/events{/number}","events_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/events","assignees_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/assignees{/user}","branches_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/branches{/branch}","tags_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/tags","blobs_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/statuses/{sha}","languages_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/languages","stargazers_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/stargazers","contributors_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/contributors","subscribers_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/subscribers","subscription_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/subscription","commits_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/contents/{+path}","compare_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/merges","archive_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/downloads","issues_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/issues{/number}","pulls_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/pulls{/number}","milestones_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/milestones{/number}","notifications_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/labels{/name}","releases_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/releases{/id}","deployments_url":"https://api.github.com/repos/tuanda5353/android_ichat_01/deployments","created_at":"2018-10-26T06:55:07Z","updated_at":"2018-10-26T06:55:09Z","pushed_at":"2018-11-07T09:24:37Z","git_url":"git://github.com/tuanda5353/android_ichat_01.git","ssh_url":"git@github.com:tuanda5353/android_ichat_01.git","clone_url":"https://github.com/tuanda5353/android_ichat_01.git","svn_url":"https://github.com/tuanda5353/android_ichat_01","homepage":null,"size":1024,"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,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"awesome-academy:master","ref":"master","sha":"602b1daee784b16797cb5bb40e9d8545c8933af7","user":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":154646656,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ2NDY2NTY=","name":"android_ichat_01","full_name":"awesome-academy/android_ichat_01","private":false,"owner":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/awesome-academy/android_ichat_01","description":null,"fork":false,"url":"https://api.github.com/repos/awesome-academy/android_ichat_01","forks_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/forks","keys_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/teams","hooks_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/hooks","issue_events_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/issues/events{/number}","events_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/events","assignees_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/assignees{/user}","branches_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/branches{/branch}","tags_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/tags","blobs_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/statuses/{sha}","languages_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/languages","stargazers_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/stargazers","contributors_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/contributors","subscribers_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/subscribers","subscription_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/subscription","commits_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/contents/{+path}","compare_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/merges","archive_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/downloads","issues_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/issues{/number}","pulls_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls{/number}","milestones_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/milestones{/number}","notifications_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/labels{/name}","releases_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/releases{/id}","deployments_url":"https://api.github.com/repos/awesome-academy/android_ichat_01/deployments","created_at":"2018-10-25T09:43:58Z","updated_at":"2018-11-07T07:06:27Z","pushed_at":"2018-11-07T09:26:13Z","git_url":"git://github.com/awesome-academy/android_ichat_01.git","ssh_url":"git@github.com:awesome-academy/android_ichat_01.git","clone_url":"https://github.com/awesome-academy/android_ichat_01.git","svn_url":"https://github.com/awesome-academy/android_ichat_01","homepage":null,"size":1006,"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":2,"license":null,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls/27"},"html":{"href":"https://github.com/awesome-academy/android_ichat_01/pull/27"},"issue":{"href":"https://api.github.com/repos/awesome-academy/android_ichat_01/issues/27"},"comments":{"href":"https://api.github.com/repos/awesome-academy/android_ichat_01/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awesome-academy/android_ichat_01/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/awesome-academy/android_ichat_01/statuses/81be8bb239d56ac3cc88fa2f6ef841e9586df009"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Tuanlvt"}}