{"action":"created","comment":{"url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls/comments/240005695","pull_request_review_id":182945014,"id":240005695,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDAwNTY5NQ==","diff_hunk":"@@ -222,6 +192,42 @@ private void toastUser(String text){\n         Toast.makeText(this, text, Toast.LENGTH_SHORT).show();\n     }\n \n+    /**\n+     *\n+     */\n+    private class ChatRoomAdapter extends FirebaseRecyclerAdapter<ChatMessage, MessageHolder>\n+    {\n+        private ChatRoomAdapter(Class<ChatMessage> modelClass, int modelLayout, Class<MessageHolder> viewHolderClass, Query ref) {\n+            super(modelClass, modelLayout, viewHolderClass, ref);\n+        }\n+\n+        @Override\n+        protected void populateViewHolder(MessageHolder viewHolder, ChatMessage message, int position){\n+            ViewGroup.LayoutParams rightParams = viewHolder.rightSpace_.getLayoutParams();\n+            ViewGroup.LayoutParams leftParams = viewHolder.leftSpace_.getLayoutParams();\n+            if(message.getUserId_().equals(GoogleSignInSingleton.get().getClientUniqueID())){","path":"app/src/main/java/ch/epfl/swissteam/services/ChatRoom.java","position":78,"original_position":78,"commit_id":"39209c858c499c6d49aad24ffb0850ea19ff22a3","original_commit_id":"39209c858c499c6d49aad24ffb0850ea19ff22a3","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Similar blocks of code found in 2 locations. Consider refactoring.","created_at":"2018-12-08T13:57:49Z","updated_at":"2018-12-08T13:57:49Z","html_url":"https://github.com/samuelchassot/SDP-SwissTeam/pull/241#discussion_r240005695","pull_request_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls/241","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls/comments/240005695"},"html":{"href":"https://github.com/samuelchassot/SDP-SwissTeam/pull/241#discussion_r240005695"},"pull_request":{"href":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls/241"}}},"pull_request":{"url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls/241","id":237067416,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3MDY3NDE2","html_url":"https://github.com/samuelchassot/SDP-SwissTeam/pull/241","diff_url":"https://github.com/samuelchassot/SDP-SwissTeam/pull/241.diff","patch_url":"https://github.com/samuelchassot/SDP-SwissTeam/pull/241.patch","issue_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/issues/241","number":241,"state":"open","locked":false,"title":"Fb hide keyboard","user":{"login":"sgachoud","id":25950201,"node_id":"MDQ6VXNlcjI1OTUwMjAx","avatar_url":"https://avatars1.githubusercontent.com/u/25950201?v=4","gravatar_id":"","url":"https://api.github.com/users/sgachoud","html_url":"https://github.com/sgachoud","followers_url":"https://api.github.com/users/sgachoud/followers","following_url":"https://api.github.com/users/sgachoud/following{/other_user}","gists_url":"https://api.github.com/users/sgachoud/gists{/gist_id}","starred_url":"https://api.github.com/users/sgachoud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgachoud/subscriptions","organizations_url":"https://api.github.com/users/sgachoud/orgs","repos_url":"https://api.github.com/users/sgachoud/repos","events_url":"https://api.github.com/users/sgachoud/events{/privacy}","received_events_url":"https://api.github.com/users/sgachoud/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-08T13:12:17Z","updated_at":"2018-12-08T13:57:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4fdd145938c4bf35cf65bb8799e460fc4db62809","assignee":null,"assignees":[],"requested_reviewers":[{"login":"GiuntaJ","id":23027997,"node_id":"MDQ6VXNlcjIzMDI3OTk3","avatar_url":"https://avatars2.githubusercontent.com/u/23027997?v=4","gravatar_id":"","url":"https://api.github.com/users/GiuntaJ","html_url":"https://github.com/GiuntaJ","followers_url":"https://api.github.com/users/GiuntaJ/followers","following_url":"https://api.github.com/users/GiuntaJ/following{/other_user}","gists_url":"https://api.github.com/users/GiuntaJ/gists{/gist_id}","starred_url":"https://api.github.com/users/GiuntaJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GiuntaJ/subscriptions","organizations_url":"https://api.github.com/users/GiuntaJ/orgs","repos_url":"https://api.github.com/users/GiuntaJ/repos","events_url":"https://api.github.com/users/GiuntaJ/events{/privacy}","received_events_url":"https://api.github.com/users/GiuntaJ/received_events","type":"User","site_admin":false},{"login":"Ghalicb","id":36038162,"node_id":"MDQ6VXNlcjM2MDM4MTYy","avatar_url":"https://avatars2.githubusercontent.com/u/36038162?v=4","gravatar_id":"","url":"https://api.github.com/users/Ghalicb","html_url":"https://github.com/Ghalicb","followers_url":"https://api.github.com/users/Ghalicb/followers","following_url":"https://api.github.com/users/Ghalicb/following{/other_user}","gists_url":"https://api.github.com/users/Ghalicb/gists{/gist_id}","starred_url":"https://api.github.com/users/Ghalicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ghalicb/subscriptions","organizations_url":"https://api.github.com/users/Ghalicb/orgs","repos_url":"https://api.github.com/users/Ghalicb/repos","events_url":"https://api.github.com/users/Ghalicb/events{/privacy}","received_events_url":"https://api.github.com/users/Ghalicb/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls/241/commits","review_comments_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls/241/comments","review_comment_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/issues/241/comments","statuses_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/statuses/39209c858c499c6d49aad24ffb0850ea19ff22a3","head":{"label":"samuelchassot:fb-hideKeyboard","ref":"fb-hideKeyboard","sha":"39209c858c499c6d49aad24ffb0850ea19ff22a3","user":{"login":"samuelchassot","id":14821693,"node_id":"MDQ6VXNlcjE0ODIxNjkz","avatar_url":"https://avatars3.githubusercontent.com/u/14821693?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelchassot","html_url":"https://github.com/samuelchassot","followers_url":"https://api.github.com/users/samuelchassot/followers","following_url":"https://api.github.com/users/samuelchassot/following{/other_user}","gists_url":"https://api.github.com/users/samuelchassot/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelchassot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelchassot/subscriptions","organizations_url":"https://api.github.com/users/samuelchassot/orgs","repos_url":"https://api.github.com/users/samuelchassot/repos","events_url":"https://api.github.com/users/samuelchassot/events{/privacy}","received_events_url":"https://api.github.com/users/samuelchassot/received_events","type":"User","site_admin":false},"repo":{"id":150414118,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA0MTQxMTg=","name":"SDP-SwissTeam","full_name":"samuelchassot/SDP-SwissTeam","private":false,"owner":{"login":"samuelchassot","id":14821693,"node_id":"MDQ6VXNlcjE0ODIxNjkz","avatar_url":"https://avatars3.githubusercontent.com/u/14821693?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelchassot","html_url":"https://github.com/samuelchassot","followers_url":"https://api.github.com/users/samuelchassot/followers","following_url":"https://api.github.com/users/samuelchassot/following{/other_user}","gists_url":"https://api.github.com/users/samuelchassot/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelchassot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelchassot/subscriptions","organizations_url":"https://api.github.com/users/samuelchassot/orgs","repos_url":"https://api.github.com/users/samuelchassot/repos","events_url":"https://api.github.com/users/samuelchassot/events{/privacy}","received_events_url":"https://api.github.com/users/samuelchassot/received_events","type":"User","site_admin":false},"html_url":"https://github.com/samuelchassot/SDP-SwissTeam","description":null,"fork":false,"url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam","forks_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/forks","keys_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/teams","hooks_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/hooks","issue_events_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/issues/events{/number}","events_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/events","assignees_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/assignees{/user}","branches_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/branches{/branch}","tags_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/tags","blobs_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/git/refs{/sha}","trees_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/statuses/{sha}","languages_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/languages","stargazers_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/stargazers","contributors_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/contributors","subscribers_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/subscribers","subscription_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/subscription","commits_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/commits{/sha}","git_commits_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/git/commits{/sha}","comments_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/comments{/number}","issue_comment_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/issues/comments{/number}","contents_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/contents/{+path}","compare_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/merges","archive_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/downloads","issues_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/issues{/number}","pulls_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls{/number}","milestones_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/milestones{/number}","notifications_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/labels{/name}","releases_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/releases{/id}","deployments_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/deployments","created_at":"2018-09-26T11:12:51Z","updated_at":"2018-12-07T14:41:17Z","pushed_at":"2018-12-08T13:12:17Z","git_url":"git://github.com/samuelchassot/SDP-SwissTeam.git","ssh_url":"git@github.com:samuelchassot/SDP-SwissTeam.git","clone_url":"https://github.com/samuelchassot/SDP-SwissTeam.git","svn_url":"https://github.com/samuelchassot/SDP-SwissTeam","homepage":null,"size":1967,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":20,"license":null,"forks":0,"open_issues":20,"watchers":3,"default_branch":"master"}},"base":{"label":"samuelchassot:master","ref":"master","sha":"38b1c0728f32ada229224ea8d3311e1d2dc58362","user":{"login":"samuelchassot","id":14821693,"node_id":"MDQ6VXNlcjE0ODIxNjkz","avatar_url":"https://avatars3.githubusercontent.com/u/14821693?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelchassot","html_url":"https://github.com/samuelchassot","followers_url":"https://api.github.com/users/samuelchassot/followers","following_url":"https://api.github.com/users/samuelchassot/following{/other_user}","gists_url":"https://api.github.com/users/samuelchassot/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelchassot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelchassot/subscriptions","organizations_url":"https://api.github.com/users/samuelchassot/orgs","repos_url":"https://api.github.com/users/samuelchassot/repos","events_url":"https://api.github.com/users/samuelchassot/events{/privacy}","received_events_url":"https://api.github.com/users/samuelchassot/received_events","type":"User","site_admin":false},"repo":{"id":150414118,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA0MTQxMTg=","name":"SDP-SwissTeam","full_name":"samuelchassot/SDP-SwissTeam","private":false,"owner":{"login":"samuelchassot","id":14821693,"node_id":"MDQ6VXNlcjE0ODIxNjkz","avatar_url":"https://avatars3.githubusercontent.com/u/14821693?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelchassot","html_url":"https://github.com/samuelchassot","followers_url":"https://api.github.com/users/samuelchassot/followers","following_url":"https://api.github.com/users/samuelchassot/following{/other_user}","gists_url":"https://api.github.com/users/samuelchassot/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelchassot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelchassot/subscriptions","organizations_url":"https://api.github.com/users/samuelchassot/orgs","repos_url":"https://api.github.com/users/samuelchassot/repos","events_url":"https://api.github.com/users/samuelchassot/events{/privacy}","received_events_url":"https://api.github.com/users/samuelchassot/received_events","type":"User","site_admin":false},"html_url":"https://github.com/samuelchassot/SDP-SwissTeam","description":null,"fork":false,"url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam","forks_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/forks","keys_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/teams","hooks_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/hooks","issue_events_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/issues/events{/number}","events_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/events","assignees_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/assignees{/user}","branches_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/branches{/branch}","tags_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/tags","blobs_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/git/refs{/sha}","trees_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/statuses/{sha}","languages_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/languages","stargazers_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/stargazers","contributors_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/contributors","subscribers_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/subscribers","subscription_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/subscription","commits_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/commits{/sha}","git_commits_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/git/commits{/sha}","comments_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/comments{/number}","issue_comment_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/issues/comments{/number}","contents_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/contents/{+path}","compare_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/merges","archive_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/downloads","issues_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/issues{/number}","pulls_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls{/number}","milestones_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/milestones{/number}","notifications_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/labels{/name}","releases_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/releases{/id}","deployments_url":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/deployments","created_at":"2018-09-26T11:12:51Z","updated_at":"2018-12-07T14:41:17Z","pushed_at":"2018-12-08T13:12:17Z","git_url":"git://github.com/samuelchassot/SDP-SwissTeam.git","ssh_url":"git@github.com:samuelchassot/SDP-SwissTeam.git","clone_url":"https://github.com/samuelchassot/SDP-SwissTeam.git","svn_url":"https://github.com/samuelchassot/SDP-SwissTeam","homepage":null,"size":1967,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":20,"license":null,"forks":0,"open_issues":20,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls/241"},"html":{"href":"https://github.com/samuelchassot/SDP-SwissTeam/pull/241"},"issue":{"href":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/issues/241"},"comments":{"href":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/issues/241/comments"},"review_comments":{"href":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls/241/comments"},"review_comment":{"href":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/pulls/241/commits"},"statuses":{"href":"https://api.github.com/repos/samuelchassot/SDP-SwissTeam/statuses/39209c858c499c6d49aad24ffb0850ea19ff22a3"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codeclimate"}}