{"action":"created","comment":{"url":"https://api.github.com/repos/Fynov/AppEstimator/pulls/comments/188587622","pull_request_review_id":120594075,"id":188587622,"diff_hunk":"@@ -0,0 +1,49 @@\n+package com.fynov.equaleyes.appestimator.ui.activities;\n+\n+import android.arch.lifecycle.Observer;\n+import android.arch.lifecycle.ViewModelProviders;\n+import android.databinding.DataBindingUtil;\n+import android.support.annotation.Nullable;\n+import android.support.v7.app.AppCompatActivity;\n+import android.os.Bundle;\n+import android.support.v7.widget.LinearLayoutManager;\n+import android.support.v7.widget.RecyclerView;\n+import android.util.Log;\n+\n+import com.fynov.equaleyes.appestimator.R;\n+import com.fynov.equaleyes.appestimator.data.models.Category;\n+import com.fynov.equaleyes.appestimator.databinding.ActivityEstimatorBinding;\n+import com.fynov.equaleyes.appestimator.ui.adapters.CategoryAdapter;\n+import com.fynov.equaleyes.appestimator.viewmodels.EstimatorViewModel;\n+\n+import java.util.ArrayList;\n+\n+public class ActivityEstimator extends AppCompatActivity {\n+    private ActivityEstimatorBinding binding;\n+    private EstimatorViewModel mEstimatorViewModel;\n+    private RecyclerView.LayoutManager mLayoutManagaer;\n+    CategoryAdapter mAdapter;\n+\n+    @Override\n+    protected void onCreate(Bundle savedInstanceState) {\n+        super.onCreate(savedInstanceState);\n+\n+        mLayoutManagaer = new LinearLayoutManager(this);\n+        mEstimatorViewModel = ViewModelProviders.of(this).get(EstimatorViewModel.class);\n+        binding = DataBindingUtil.setContentView(this, R.layout.activity_estimator);\n+        mAdapter = new CategoryAdapter(new ArrayList<Category>());\n+        subscribe();\n+    }\n+\n+    private void subscribe(){\n+        final Observer<ArrayList<Category>> categoryObserver = new Observer<ArrayList<Category>>() {\n+            @Override\n+            public void onChanged(@Nullable ArrayList<Category> categories) {\n+                mAdapter.setItems(categories);\n+                binding.rvCategories.setLayoutManager(mLayoutManagaer);\n+                binding.rvCategories.setAdapter(mAdapter);","path":"app/src/main/java/com/fynov/equaleyes/appestimator/ui/activities/ActivityEstimator.java","position":44,"original_position":44,"commit_id":"34d76894dfe4a2242bbf9df5298cfa1756d9cb8e","original_commit_id":"34d76894dfe4a2242bbf9df5298cfa1756d9cb8e","user":{"login":"Fynov","id":7223506,"avatar_url":"https://avatars3.githubusercontent.com/u/7223506?v=4","gravatar_id":"","url":"https://api.github.com/users/Fynov","html_url":"https://github.com/Fynov","followers_url":"https://api.github.com/users/Fynov/followers","following_url":"https://api.github.com/users/Fynov/following{/other_user}","gists_url":"https://api.github.com/users/Fynov/gists{/gist_id}","starred_url":"https://api.github.com/users/Fynov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fynov/subscriptions","organizations_url":"https://api.github.com/users/Fynov/orgs","repos_url":"https://api.github.com/users/Fynov/repos","events_url":"https://api.github.com/users/Fynov/events{/privacy}","received_events_url":"https://api.github.com/users/Fynov/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2018-05-16T11:15:41Z","updated_at":"2018-05-16T11:15:41Z","html_url":"https://github.com/Fynov/AppEstimator/pull/3#discussion_r188587622","pull_request_url":"https://api.github.com/repos/Fynov/AppEstimator/pulls/3","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Fynov/AppEstimator/pulls/comments/188587622"},"html":{"href":"https://github.com/Fynov/AppEstimator/pull/3#discussion_r188587622"},"pull_request":{"href":"https://api.github.com/repos/Fynov/AppEstimator/pulls/3"}},"in_reply_to_id":188581121},"pull_request":{"url":"https://api.github.com/repos/Fynov/AppEstimator/pulls/3","id":188391088,"html_url":"https://github.com/Fynov/AppEstimator/pull/3","diff_url":"https://github.com/Fynov/AppEstimator/pull/3.diff","patch_url":"https://github.com/Fynov/AppEstimator/pull/3.patch","issue_url":"https://api.github.com/repos/Fynov/AppEstimator/issues/3","number":3,"state":"closed","locked":false,"title":"Rework of estimator","user":{"login":"Fynov","id":7223506,"avatar_url":"https://avatars3.githubusercontent.com/u/7223506?v=4","gravatar_id":"","url":"https://api.github.com/users/Fynov","html_url":"https://github.com/Fynov","followers_url":"https://api.github.com/users/Fynov/followers","following_url":"https://api.github.com/users/Fynov/following{/other_user}","gists_url":"https://api.github.com/users/Fynov/gists{/gist_id}","starred_url":"https://api.github.com/users/Fynov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fynov/subscriptions","organizations_url":"https://api.github.com/users/Fynov/orgs","repos_url":"https://api.github.com/users/Fynov/repos","events_url":"https://api.github.com/users/Fynov/events{/privacy}","received_events_url":"https://api.github.com/users/Fynov/received_events","type":"User","site_admin":false},"body":"Changed design, coding practices, used view models, databinding.","created_at":"2018-05-16T10:45:53Z","updated_at":"2018-05-16T11:15:41Z","closed_at":"2018-05-16T10:46:20Z","merged_at":"2018-05-16T10:46:20Z","merge_commit_sha":"e1dd3b3f7400cf58312d011b58787f70c4ce9b0b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Fynov/AppEstimator/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Fynov/AppEstimator/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Fynov/AppEstimator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Fynov/AppEstimator/issues/3/comments","statuses_url":"https://api.github.com/repos/Fynov/AppEstimator/statuses/34d76894dfe4a2242bbf9df5298cfa1756d9cb8e","head":{"label":"Fynov:bor_rework_estimation","ref":"bor_rework_estimation","sha":"34d76894dfe4a2242bbf9df5298cfa1756d9cb8e","user":{"login":"Fynov","id":7223506,"avatar_url":"https://avatars3.githubusercontent.com/u/7223506?v=4","gravatar_id":"","url":"https://api.github.com/users/Fynov","html_url":"https://github.com/Fynov","followers_url":"https://api.github.com/users/Fynov/followers","following_url":"https://api.github.com/users/Fynov/following{/other_user}","gists_url":"https://api.github.com/users/Fynov/gists{/gist_id}","starred_url":"https://api.github.com/users/Fynov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fynov/subscriptions","organizations_url":"https://api.github.com/users/Fynov/orgs","repos_url":"https://api.github.com/users/Fynov/repos","events_url":"https://api.github.com/users/Fynov/events{/privacy}","received_events_url":"https://api.github.com/users/Fynov/received_events","type":"User","site_admin":false},"repo":{"id":130840674,"name":"AppEstimator","full_name":"Fynov/AppEstimator","owner":{"login":"Fynov","id":7223506,"avatar_url":"https://avatars3.githubusercontent.com/u/7223506?v=4","gravatar_id":"","url":"https://api.github.com/users/Fynov","html_url":"https://github.com/Fynov","followers_url":"https://api.github.com/users/Fynov/followers","following_url":"https://api.github.com/users/Fynov/following{/other_user}","gists_url":"https://api.github.com/users/Fynov/gists{/gist_id}","starred_url":"https://api.github.com/users/Fynov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fynov/subscriptions","organizations_url":"https://api.github.com/users/Fynov/orgs","repos_url":"https://api.github.com/users/Fynov/repos","events_url":"https://api.github.com/users/Fynov/events{/privacy}","received_events_url":"https://api.github.com/users/Fynov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Fynov/AppEstimator","description":"EE-praksa-2018-Mobile","fork":false,"url":"https://api.github.com/repos/Fynov/AppEstimator","forks_url":"https://api.github.com/repos/Fynov/AppEstimator/forks","keys_url":"https://api.github.com/repos/Fynov/AppEstimator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fynov/AppEstimator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fynov/AppEstimator/teams","hooks_url":"https://api.github.com/repos/Fynov/AppEstimator/hooks","issue_events_url":"https://api.github.com/repos/Fynov/AppEstimator/issues/events{/number}","events_url":"https://api.github.com/repos/Fynov/AppEstimator/events","assignees_url":"https://api.github.com/repos/Fynov/AppEstimator/assignees{/user}","branches_url":"https://api.github.com/repos/Fynov/AppEstimator/branches{/branch}","tags_url":"https://api.github.com/repos/Fynov/AppEstimator/tags","blobs_url":"https://api.github.com/repos/Fynov/AppEstimator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fynov/AppEstimator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fynov/AppEstimator/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fynov/AppEstimator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fynov/AppEstimator/statuses/{sha}","languages_url":"https://api.github.com/repos/Fynov/AppEstimator/languages","stargazers_url":"https://api.github.com/repos/Fynov/AppEstimator/stargazers","contributors_url":"https://api.github.com/repos/Fynov/AppEstimator/contributors","subscribers_url":"https://api.github.com/repos/Fynov/AppEstimator/subscribers","subscription_url":"https://api.github.com/repos/Fynov/AppEstimator/subscription","commits_url":"https://api.github.com/repos/Fynov/AppEstimator/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fynov/AppEstimator/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fynov/AppEstimator/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fynov/AppEstimator/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fynov/AppEstimator/contents/{+path}","compare_url":"https://api.github.com/repos/Fynov/AppEstimator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fynov/AppEstimator/merges","archive_url":"https://api.github.com/repos/Fynov/AppEstimator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fynov/AppEstimator/downloads","issues_url":"https://api.github.com/repos/Fynov/AppEstimator/issues{/number}","pulls_url":"https://api.github.com/repos/Fynov/AppEstimator/pulls{/number}","milestones_url":"https://api.github.com/repos/Fynov/AppEstimator/milestones{/number}","notifications_url":"https://api.github.com/repos/Fynov/AppEstimator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fynov/AppEstimator/labels{/name}","releases_url":"https://api.github.com/repos/Fynov/AppEstimator/releases{/id}","deployments_url":"https://api.github.com/repos/Fynov/AppEstimator/deployments","created_at":"2018-04-24T11:01:33Z","updated_at":"2018-05-16T11:09:18Z","pushed_at":"2018-05-16T11:09:16Z","git_url":"git://github.com/Fynov/AppEstimator.git","ssh_url":"git@github.com:Fynov/AppEstimator.git","clone_url":"https://github.com/Fynov/AppEstimator.git","svn_url":"https://github.com/Fynov/AppEstimator","homepage":"","size":167,"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":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Fynov:master","ref":"master","sha":"dfda4d8006f71217eb247c543d6d53261f549867","user":{"login":"Fynov","id":7223506,"avatar_url":"https://avatars3.githubusercontent.com/u/7223506?v=4","gravatar_id":"","url":"https://api.github.com/users/Fynov","html_url":"https://github.com/Fynov","followers_url":"https://api.github.com/users/Fynov/followers","following_url":"https://api.github.com/users/Fynov/following{/other_user}","gists_url":"https://api.github.com/users/Fynov/gists{/gist_id}","starred_url":"https://api.github.com/users/Fynov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fynov/subscriptions","organizations_url":"https://api.github.com/users/Fynov/orgs","repos_url":"https://api.github.com/users/Fynov/repos","events_url":"https://api.github.com/users/Fynov/events{/privacy}","received_events_url":"https://api.github.com/users/Fynov/received_events","type":"User","site_admin":false},"repo":{"id":130840674,"name":"AppEstimator","full_name":"Fynov/AppEstimator","owner":{"login":"Fynov","id":7223506,"avatar_url":"https://avatars3.githubusercontent.com/u/7223506?v=4","gravatar_id":"","url":"https://api.github.com/users/Fynov","html_url":"https://github.com/Fynov","followers_url":"https://api.github.com/users/Fynov/followers","following_url":"https://api.github.com/users/Fynov/following{/other_user}","gists_url":"https://api.github.com/users/Fynov/gists{/gist_id}","starred_url":"https://api.github.com/users/Fynov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fynov/subscriptions","organizations_url":"https://api.github.com/users/Fynov/orgs","repos_url":"https://api.github.com/users/Fynov/repos","events_url":"https://api.github.com/users/Fynov/events{/privacy}","received_events_url":"https://api.github.com/users/Fynov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Fynov/AppEstimator","description":"EE-praksa-2018-Mobile","fork":false,"url":"https://api.github.com/repos/Fynov/AppEstimator","forks_url":"https://api.github.com/repos/Fynov/AppEstimator/forks","keys_url":"https://api.github.com/repos/Fynov/AppEstimator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fynov/AppEstimator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fynov/AppEstimator/teams","hooks_url":"https://api.github.com/repos/Fynov/AppEstimator/hooks","issue_events_url":"https://api.github.com/repos/Fynov/AppEstimator/issues/events{/number}","events_url":"https://api.github.com/repos/Fynov/AppEstimator/events","assignees_url":"https://api.github.com/repos/Fynov/AppEstimator/assignees{/user}","branches_url":"https://api.github.com/repos/Fynov/AppEstimator/branches{/branch}","tags_url":"https://api.github.com/repos/Fynov/AppEstimator/tags","blobs_url":"https://api.github.com/repos/Fynov/AppEstimator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fynov/AppEstimator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fynov/AppEstimator/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fynov/AppEstimator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fynov/AppEstimator/statuses/{sha}","languages_url":"https://api.github.com/repos/Fynov/AppEstimator/languages","stargazers_url":"https://api.github.com/repos/Fynov/AppEstimator/stargazers","contributors_url":"https://api.github.com/repos/Fynov/AppEstimator/contributors","subscribers_url":"https://api.github.com/repos/Fynov/AppEstimator/subscribers","subscription_url":"https://api.github.com/repos/Fynov/AppEstimator/subscription","commits_url":"https://api.github.com/repos/Fynov/AppEstimator/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fynov/AppEstimator/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fynov/AppEstimator/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fynov/AppEstimator/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fynov/AppEstimator/contents/{+path}","compare_url":"https://api.github.com/repos/Fynov/AppEstimator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fynov/AppEstimator/merges","archive_url":"https://api.github.com/repos/Fynov/AppEstimator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fynov/AppEstimator/downloads","issues_url":"https://api.github.com/repos/Fynov/AppEstimator/issues{/number}","pulls_url":"https://api.github.com/repos/Fynov/AppEstimator/pulls{/number}","milestones_url":"https://api.github.com/repos/Fynov/AppEstimator/milestones{/number}","notifications_url":"https://api.github.com/repos/Fynov/AppEstimator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fynov/AppEstimator/labels{/name}","releases_url":"https://api.github.com/repos/Fynov/AppEstimator/releases{/id}","deployments_url":"https://api.github.com/repos/Fynov/AppEstimator/deployments","created_at":"2018-04-24T11:01:33Z","updated_at":"2018-05-16T11:09:18Z","pushed_at":"2018-05-16T11:09:16Z","git_url":"git://github.com/Fynov/AppEstimator.git","ssh_url":"git@github.com:Fynov/AppEstimator.git","clone_url":"https://github.com/Fynov/AppEstimator.git","svn_url":"https://github.com/Fynov/AppEstimator","homepage":"","size":167,"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":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Fynov/AppEstimator/pulls/3"},"html":{"href":"https://github.com/Fynov/AppEstimator/pull/3"},"issue":{"href":"https://api.github.com/repos/Fynov/AppEstimator/issues/3"},"comments":{"href":"https://api.github.com/repos/Fynov/AppEstimator/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Fynov/AppEstimator/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Fynov/AppEstimator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Fynov/AppEstimator/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Fynov/AppEstimator/statuses/34d76894dfe4a2242bbf9df5298cfa1756d9cb8e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Fynov"}}