{"action":"created","comment":{"url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls/comments/102120833","pull_request_review_id":22866338,"id":102120833,"diff_hunk":"@@ -0,0 +1,93 @@\n+package sample.knot.cesar.org.br.drinkingfountain.adapter;\n+\n+import android.content.Context;\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.TextView;\n+\n+import java.util.List;\n+\n+import sample.knot.cesar.org.br.drinkingfountain.R;\n+import sample.knot.cesar.org.br.drinkingfountain.database.FacadeDatabase;\n+import sample.knot.cesar.org.br.drinkingfountain.model.DrinkFountainDevice;\n+import sample.knot.cesar.org.br.drinkingfountain.model.WaterLevelData;\n+import sample.knot.cesar.org.br.drinkingfountain.view.WaterBottleView;\n+\n+/**\n+ * Created by usuario on 20/01/17.\n+ */\n+\n+public class DrinkFountainGridAdapter extends RecyclerView.Adapter<DrinkFountainGridAdapter.WaterViewHolder> {\n+\n+    private Context mContext;\n+    private List<DrinkFountainDevice> mListOfWaterBottle;\n+    private FacadeDatabase mDataBase;\n+\n+    public DrinkFountainGridAdapter(Context context, List<DrinkFountainDevice> list) {\n+        mContext = context;\n+        mListOfWaterBottle = list;\n+        mDataBase = FacadeDatabase.getInstance();\n+\n+    }\n+\n+    @Override\n+    public WaterViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n+\n+        View itemView = LayoutInflater.from(parent.getContext()).inflate(R.layout.water_card_view, parent, false);\n+\n+        return new WaterViewHolder(itemView);\n+\n+    }\n+\n+    @Override\n+    public void onBindViewHolder(WaterViewHolder holder, int position) {\n+        DrinkFountainDevice drinkFountainDevice = mListOfWaterBottle.get(position);\n+\n+        WaterLevelData waterLevelData = mDataBase.getCurrentLevelByDeviceUUID(drinkFountainDevice.getUuid());\n+\n+        holder.mWaterBottleView.setWaterHeight(waterLevelData.getCurrentValue());\n+        holder.mTitle.setText(drinkFountainDevice.getDescription());\n+\n+        String floor=\"\";\n+        if(drinkFountainDevice.getFloor() == DrinkFountainDevice.GROUND_FLOOR){\n+            floor = mContext.getResources().getString(R.string.ground_floor);\n+        }else{\n+            floor = mContext.getResources().getString(R.string.first_floor);\n+        }\n+\n+        holder.mDesciption.setText(drinkFountainDevice.getDescription() + \": \" +floor);\n+        holder.mWaterBottleView.setOnClickListener(new View.OnClickListener() {\n+            @Override\n+            public void onClick(View view) {\n+\n+//                Bundle bundle = ActivityOptions.makeSceneTransitionAnimation(((WaterGridActivity)mContext), Pair.create(view, \"teste\")).toBundle();","path":"drinkingfountain/src/main/java/sample/knot/cesar/org/br/drinkingfountain/adapter/DrinkFountainGridAdapter.java","position":65,"original_position":65,"commit_id":"4356c0ead905832049fbcc411f16444fc4957c65","original_commit_id":"4356c0ead905832049fbcc411f16444fc4957c65","user":{"login":"wallacethierre","id":10731184,"avatar_url":"https://avatars.githubusercontent.com/u/10731184?v=3","gravatar_id":"","url":"https://api.github.com/users/wallacethierre","html_url":"https://github.com/wallacethierre","followers_url":"https://api.github.com/users/wallacethierre/followers","following_url":"https://api.github.com/users/wallacethierre/following{/other_user}","gists_url":"https://api.github.com/users/wallacethierre/gists{/gist_id}","starred_url":"https://api.github.com/users/wallacethierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallacethierre/subscriptions","organizations_url":"https://api.github.com/users/wallacethierre/orgs","repos_url":"https://api.github.com/users/wallacethierre/repos","events_url":"https://api.github.com/users/wallacethierre/events{/privacy}","received_events_url":"https://api.github.com/users/wallacethierre/received_events","type":"User","site_admin":false},"body":"This strach of code is need to comment?","created_at":"2017-02-21T02:16:41Z","updated_at":"2017-02-21T02:16:41Z","html_url":"https://github.com/knot-noow/knot-lib-android-source/pull/23#discussion_r102120833","pull_request_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls/comments/102120833"},"html":{"href":"https://github.com/knot-noow/knot-lib-android-source/pull/23#discussion_r102120833"},"pull_request":{"href":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls/23","id":107099520,"html_url":"https://github.com/knot-noow/knot-lib-android-source/pull/23","diff_url":"https://github.com/knot-noow/knot-lib-android-source/pull/23.diff","patch_url":"https://github.com/knot-noow/knot-lib-android-source/pull/23.patch","issue_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/issues/23","number":23,"state":"open","locked":false,"title":"Sample grid drinkfountain","user":{"login":"emidiooliveira","id":4509536,"avatar_url":"https://avatars.githubusercontent.com/u/4509536?v=3","gravatar_id":"","url":"https://api.github.com/users/emidiooliveira","html_url":"https://github.com/emidiooliveira","followers_url":"https://api.github.com/users/emidiooliveira/followers","following_url":"https://api.github.com/users/emidiooliveira/following{/other_user}","gists_url":"https://api.github.com/users/emidiooliveira/gists{/gist_id}","starred_url":"https://api.github.com/users/emidiooliveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emidiooliveira/subscriptions","organizations_url":"https://api.github.com/users/emidiooliveira/orgs","repos_url":"https://api.github.com/users/emidiooliveira/repos","events_url":"https://api.github.com/users/emidiooliveira/events{/privacy}","received_events_url":"https://api.github.com/users/emidiooliveira/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-21T01:16:38Z","updated_at":"2017-02-21T02:16:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"663c01a2f7747eee44210650b45b5ffdcb2e41f1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls/23/commits","review_comments_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls/23/comments","review_comment_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls/comments{/number}","comments_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/issues/23/comments","statuses_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/statuses/4356c0ead905832049fbcc411f16444fc4957c65","head":{"label":"knot-noow:sample_grid_drinkfountain","ref":"sample_grid_drinkfountain","sha":"4356c0ead905832049fbcc411f16444fc4957c65","user":{"login":"knot-noow","id":21147075,"avatar_url":"https://avatars.githubusercontent.com/u/21147075?v=3","gravatar_id":"","url":"https://api.github.com/users/knot-noow","html_url":"https://github.com/knot-noow","followers_url":"https://api.github.com/users/knot-noow/followers","following_url":"https://api.github.com/users/knot-noow/following{/other_user}","gists_url":"https://api.github.com/users/knot-noow/gists{/gist_id}","starred_url":"https://api.github.com/users/knot-noow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knot-noow/subscriptions","organizations_url":"https://api.github.com/users/knot-noow/orgs","repos_url":"https://api.github.com/users/knot-noow/repos","events_url":"https://api.github.com/users/knot-noow/events{/privacy}","received_events_url":"https://api.github.com/users/knot-noow/received_events","type":"Organization","site_admin":false},"repo":{"id":74175738,"name":"knot-lib-android-source","full_name":"knot-noow/knot-lib-android-source","owner":{"login":"knot-noow","id":21147075,"avatar_url":"https://avatars.githubusercontent.com/u/21147075?v=3","gravatar_id":"","url":"https://api.github.com/users/knot-noow","html_url":"https://github.com/knot-noow","followers_url":"https://api.github.com/users/knot-noow/followers","following_url":"https://api.github.com/users/knot-noow/following{/other_user}","gists_url":"https://api.github.com/users/knot-noow/gists{/gist_id}","starred_url":"https://api.github.com/users/knot-noow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knot-noow/subscriptions","organizations_url":"https://api.github.com/users/knot-noow/orgs","repos_url":"https://api.github.com/users/knot-noow/repos","events_url":"https://api.github.com/users/knot-noow/events{/privacy}","received_events_url":"https://api.github.com/users/knot-noow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/knot-noow/knot-lib-android-source","description":null,"fork":true,"url":"https://api.github.com/repos/knot-noow/knot-lib-android-source","forks_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/forks","keys_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/teams","hooks_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/hooks","issue_events_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/issues/events{/number}","events_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/events","assignees_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/assignees{/user}","branches_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/branches{/branch}","tags_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/tags","blobs_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/git/refs{/sha}","trees_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/statuses/{sha}","languages_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/languages","stargazers_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/stargazers","contributors_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/contributors","subscribers_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/subscribers","subscription_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/subscription","commits_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/commits{/sha}","git_commits_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/git/commits{/sha}","comments_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/comments{/number}","issue_comment_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/issues/comments{/number}","contents_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/contents/{+path}","compare_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/merges","archive_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/downloads","issues_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/issues{/number}","pulls_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls{/number}","milestones_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/milestones{/number}","notifications_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/labels{/name}","releases_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/releases{/id}","deployments_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/deployments","created_at":"2016-11-18T23:55:52Z","updated_at":"2017-01-12T01:46:50Z","pushed_at":"2017-02-21T01:16:39Z","git_url":"git://github.com/knot-noow/knot-lib-android-source.git","ssh_url":"git@github.com:knot-noow/knot-lib-android-source.git","clone_url":"https://github.com/knot-noow/knot-lib-android-source.git","svn_url":"https://github.com/knot-noow/knot-lib-android-source","homepage":null,"size":1257,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"knot-noow:sample_application","ref":"sample_application","sha":"fd7cd189221f3bbf4fecec2b42ac78a406feae74","user":{"login":"knot-noow","id":21147075,"avatar_url":"https://avatars.githubusercontent.com/u/21147075?v=3","gravatar_id":"","url":"https://api.github.com/users/knot-noow","html_url":"https://github.com/knot-noow","followers_url":"https://api.github.com/users/knot-noow/followers","following_url":"https://api.github.com/users/knot-noow/following{/other_user}","gists_url":"https://api.github.com/users/knot-noow/gists{/gist_id}","starred_url":"https://api.github.com/users/knot-noow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knot-noow/subscriptions","organizations_url":"https://api.github.com/users/knot-noow/orgs","repos_url":"https://api.github.com/users/knot-noow/repos","events_url":"https://api.github.com/users/knot-noow/events{/privacy}","received_events_url":"https://api.github.com/users/knot-noow/received_events","type":"Organization","site_admin":false},"repo":{"id":74175738,"name":"knot-lib-android-source","full_name":"knot-noow/knot-lib-android-source","owner":{"login":"knot-noow","id":21147075,"avatar_url":"https://avatars.githubusercontent.com/u/21147075?v=3","gravatar_id":"","url":"https://api.github.com/users/knot-noow","html_url":"https://github.com/knot-noow","followers_url":"https://api.github.com/users/knot-noow/followers","following_url":"https://api.github.com/users/knot-noow/following{/other_user}","gists_url":"https://api.github.com/users/knot-noow/gists{/gist_id}","starred_url":"https://api.github.com/users/knot-noow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knot-noow/subscriptions","organizations_url":"https://api.github.com/users/knot-noow/orgs","repos_url":"https://api.github.com/users/knot-noow/repos","events_url":"https://api.github.com/users/knot-noow/events{/privacy}","received_events_url":"https://api.github.com/users/knot-noow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/knot-noow/knot-lib-android-source","description":null,"fork":true,"url":"https://api.github.com/repos/knot-noow/knot-lib-android-source","forks_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/forks","keys_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/teams","hooks_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/hooks","issue_events_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/issues/events{/number}","events_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/events","assignees_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/assignees{/user}","branches_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/branches{/branch}","tags_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/tags","blobs_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/git/refs{/sha}","trees_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/statuses/{sha}","languages_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/languages","stargazers_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/stargazers","contributors_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/contributors","subscribers_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/subscribers","subscription_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/subscription","commits_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/commits{/sha}","git_commits_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/git/commits{/sha}","comments_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/comments{/number}","issue_comment_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/issues/comments{/number}","contents_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/contents/{+path}","compare_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/merges","archive_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/downloads","issues_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/issues{/number}","pulls_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls{/number}","milestones_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/milestones{/number}","notifications_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/labels{/name}","releases_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/releases{/id}","deployments_url":"https://api.github.com/repos/knot-noow/knot-lib-android-source/deployments","created_at":"2016-11-18T23:55:52Z","updated_at":"2017-01-12T01:46:50Z","pushed_at":"2017-02-21T01:16:39Z","git_url":"git://github.com/knot-noow/knot-lib-android-source.git","ssh_url":"git@github.com:knot-noow/knot-lib-android-source.git","clone_url":"https://github.com/knot-noow/knot-lib-android-source.git","svn_url":"https://github.com/knot-noow/knot-lib-android-source","homepage":null,"size":1257,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls/23"},"html":{"href":"https://github.com/knot-noow/knot-lib-android-source/pull/23"},"issue":{"href":"https://api.github.com/repos/knot-noow/knot-lib-android-source/issues/23"},"comments":{"href":"https://api.github.com/repos/knot-noow/knot-lib-android-source/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/knot-noow/knot-lib-android-source/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/knot-noow/knot-lib-android-source/statuses/4356c0ead905832049fbcc411f16444fc4957c65"}}}}
{"actor":{"display_login":"wallacethierre"}}