{"action":"created","comment":{"url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls/comments/206083788","pull_request_review_id":141466884,"id":206083788,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjA4Mzc4OA==","diff_hunk":"@@ -0,0 +1,87 @@\n+package com.example.vladimir.financetracker.view.fragments\n+\n+import android.annotation.SuppressLint\n+import android.arch.lifecycle.Observer\n+import android.arch.lifecycle.ViewModelProviders\n+import android.os.Bundle\n+import android.support.v4.app.Fragment\n+import android.view.LayoutInflater\n+import android.view.View\n+import android.view.ViewGroup\n+import com.example.vladimir.financetracker.Routes\n+import com.example.vladimir.financetracker.R\n+import com.example.vladimir.financetracker.goTo\n+import com.example.vladimir.financetracker.view.adapters.AdapterTransactions\n+import com.example.vladimir.financetracker.viewmodel.FinanceTrackerViewModel\n+import kotlinx.android.synthetic.main.fragment_main.*\n+\n+class FragmentMain : Fragment() {\n+\n+    lateinit var mViewModel: FinanceTrackerViewModel\n+    lateinit var mAdapter: AdapterTransactions\n+\n+    override fun onCreate(savedInstanceState: Bundle?) {\n+        super.onCreate(savedInstanceState)\n+        mViewModel = ViewModelProviders.of(activity!!).get(FinanceTrackerViewModel::class.java)\n+    }\n+\n+    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {\n+        return inflater.inflate(R.layout.fragment_main, container, false)\n+    }\n+\n+\n+    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {\n+        super.onViewCreated(view, savedInstanceState)\n+\n+        initComponents()\n+        initComponentsListeners()\n+    }\n+\n+\n+    private fun observeViewModel(viewModel: FinanceTrackerViewModel) {\n+\n+        viewModel.observableTransactions.observe(viewLifecycleOwner, Observer {\n+            mAdapter.setTransactionsList(it)\n+        })\n+\n+        viewModel.observableWallet.observe(viewLifecycleOwner, Observer {\n+            fragment_main_balance.text = it?.balance.toString() + context?.resources?.getString(R.string.usd)","path":"app/src/main/java/com/example/vladimir/financetracker/view/fragments/FragmentMain.kt","position":48,"original_position":48,"commit_id":"ca1d1be2d59daeaf40523be6baf6b493e0f69665","original_commit_id":"ca1d1be2d59daeaf40523be6baf6b493e0f69665","user":{"login":"st235","id":14966197,"node_id":"MDQ6VXNlcjE0OTY2MTk3","avatar_url":"https://avatars2.githubusercontent.com/u/14966197?v=4","gravatar_id":"","url":"https://api.github.com/users/st235","html_url":"https://github.com/st235","followers_url":"https://api.github.com/users/st235/followers","following_url":"https://api.github.com/users/st235/following{/other_user}","gists_url":"https://api.github.com/users/st235/gists{/gist_id}","starred_url":"https://api.github.com/users/st235/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/st235/subscriptions","organizations_url":"https://api.github.com/users/st235/orgs","repos_url":"https://api.github.com/users/st235/repos","events_url":"https://api.github.com/users/st235/events{/privacy}","received_events_url":"https://api.github.com/users/st235/received_events","type":"User","site_admin":false},"body":"есть `String.format`","created_at":"2018-07-30T10:27:25Z","updated_at":"2018-07-30T10:32:50Z","html_url":"https://github.com/YugayVladimir/FinanceTracker/pull/4#discussion_r206083788","pull_request_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls/comments/206083788"},"html":{"href":"https://github.com/YugayVladimir/FinanceTracker/pull/4#discussion_r206083788"},"pull_request":{"href":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls/4","id":204684248,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0Njg0MjQ4","html_url":"https://github.com/YugayVladimir/FinanceTracker/pull/4","diff_url":"https://github.com/YugayVladimir/FinanceTracker/pull/4.diff","patch_url":"https://github.com/YugayVladimir/FinanceTracker/pull/4.patch","issue_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/issues/4","number":4,"state":"closed","locked":false,"title":"Task 2","user":{"login":"YugayVladimir","id":12258972,"node_id":"MDQ6VXNlcjEyMjU4OTcy","avatar_url":"https://avatars2.githubusercontent.com/u/12258972?v=4","gravatar_id":"","url":"https://api.github.com/users/YugayVladimir","html_url":"https://github.com/YugayVladimir","followers_url":"https://api.github.com/users/YugayVladimir/followers","following_url":"https://api.github.com/users/YugayVladimir/following{/other_user}","gists_url":"https://api.github.com/users/YugayVladimir/gists{/gist_id}","starred_url":"https://api.github.com/users/YugayVladimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YugayVladimir/subscriptions","organizations_url":"https://api.github.com/users/YugayVladimir/orgs","repos_url":"https://api.github.com/users/YugayVladimir/repos","events_url":"https://api.github.com/users/YugayVladimir/events{/privacy}","received_events_url":"https://api.github.com/users/YugayVladimir/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-30T03:19:09Z","updated_at":"2018-07-30T10:32:50Z","closed_at":"2018-07-30T03:19:22Z","merged_at":"2018-07-30T03:19:22Z","merge_commit_sha":"0751165565169ab658f96d428bce9e1c3e1666c5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls/4/commits","review_comments_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls/4/comments","review_comment_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/issues/4/comments","statuses_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/statuses/ca1d1be2d59daeaf40523be6baf6b493e0f69665","head":{"label":"YugayVladimir:develop","ref":"develop","sha":"ca1d1be2d59daeaf40523be6baf6b493e0f69665","user":{"login":"YugayVladimir","id":12258972,"node_id":"MDQ6VXNlcjEyMjU4OTcy","avatar_url":"https://avatars2.githubusercontent.com/u/12258972?v=4","gravatar_id":"","url":"https://api.github.com/users/YugayVladimir","html_url":"https://github.com/YugayVladimir","followers_url":"https://api.github.com/users/YugayVladimir/followers","following_url":"https://api.github.com/users/YugayVladimir/following{/other_user}","gists_url":"https://api.github.com/users/YugayVladimir/gists{/gist_id}","starred_url":"https://api.github.com/users/YugayVladimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YugayVladimir/subscriptions","organizations_url":"https://api.github.com/users/YugayVladimir/orgs","repos_url":"https://api.github.com/users/YugayVladimir/repos","events_url":"https://api.github.com/users/YugayVladimir/events{/privacy}","received_events_url":"https://api.github.com/users/YugayVladimir/received_events","type":"User","site_admin":false},"repo":{"id":141679001,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2NzkwMDE=","name":"FinanceTracker","full_name":"YugayVladimir/FinanceTracker","owner":{"login":"YugayVladimir","id":12258972,"node_id":"MDQ6VXNlcjEyMjU4OTcy","avatar_url":"https://avatars2.githubusercontent.com/u/12258972?v=4","gravatar_id":"","url":"https://api.github.com/users/YugayVladimir","html_url":"https://github.com/YugayVladimir","followers_url":"https://api.github.com/users/YugayVladimir/followers","following_url":"https://api.github.com/users/YugayVladimir/following{/other_user}","gists_url":"https://api.github.com/users/YugayVladimir/gists{/gist_id}","starred_url":"https://api.github.com/users/YugayVladimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YugayVladimir/subscriptions","organizations_url":"https://api.github.com/users/YugayVladimir/orgs","repos_url":"https://api.github.com/users/YugayVladimir/repos","events_url":"https://api.github.com/users/YugayVladimir/events{/privacy}","received_events_url":"https://api.github.com/users/YugayVladimir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YugayVladimir/FinanceTracker","description":null,"fork":false,"url":"https://api.github.com/repos/YugayVladimir/FinanceTracker","forks_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/forks","keys_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/teams","hooks_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/hooks","issue_events_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/issues/events{/number}","events_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/events","assignees_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/assignees{/user}","branches_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/branches{/branch}","tags_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/tags","blobs_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/statuses/{sha}","languages_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/languages","stargazers_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/stargazers","contributors_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/contributors","subscribers_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/subscribers","subscription_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/subscription","commits_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/contents/{+path}","compare_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/merges","archive_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/downloads","issues_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/issues{/number}","pulls_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls{/number}","milestones_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/milestones{/number}","notifications_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/labels{/name}","releases_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/releases{/id}","deployments_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/deployments","created_at":"2018-07-20T07:29:23Z","updated_at":"2018-07-30T03:19:25Z","pushed_at":"2018-07-30T03:19:22Z","git_url":"git://github.com/YugayVladimir/FinanceTracker.git","ssh_url":"git@github.com:YugayVladimir/FinanceTracker.git","clone_url":"https://github.com/YugayVladimir/FinanceTracker.git","svn_url":"https://github.com/YugayVladimir/FinanceTracker","homepage":null,"size":374,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","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":"YugayVladimir:master","ref":"master","sha":"605bb2ec4b9abde93b178515836fff72a3a49db8","user":{"login":"YugayVladimir","id":12258972,"node_id":"MDQ6VXNlcjEyMjU4OTcy","avatar_url":"https://avatars2.githubusercontent.com/u/12258972?v=4","gravatar_id":"","url":"https://api.github.com/users/YugayVladimir","html_url":"https://github.com/YugayVladimir","followers_url":"https://api.github.com/users/YugayVladimir/followers","following_url":"https://api.github.com/users/YugayVladimir/following{/other_user}","gists_url":"https://api.github.com/users/YugayVladimir/gists{/gist_id}","starred_url":"https://api.github.com/users/YugayVladimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YugayVladimir/subscriptions","organizations_url":"https://api.github.com/users/YugayVladimir/orgs","repos_url":"https://api.github.com/users/YugayVladimir/repos","events_url":"https://api.github.com/users/YugayVladimir/events{/privacy}","received_events_url":"https://api.github.com/users/YugayVladimir/received_events","type":"User","site_admin":false},"repo":{"id":141679001,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2NzkwMDE=","name":"FinanceTracker","full_name":"YugayVladimir/FinanceTracker","owner":{"login":"YugayVladimir","id":12258972,"node_id":"MDQ6VXNlcjEyMjU4OTcy","avatar_url":"https://avatars2.githubusercontent.com/u/12258972?v=4","gravatar_id":"","url":"https://api.github.com/users/YugayVladimir","html_url":"https://github.com/YugayVladimir","followers_url":"https://api.github.com/users/YugayVladimir/followers","following_url":"https://api.github.com/users/YugayVladimir/following{/other_user}","gists_url":"https://api.github.com/users/YugayVladimir/gists{/gist_id}","starred_url":"https://api.github.com/users/YugayVladimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YugayVladimir/subscriptions","organizations_url":"https://api.github.com/users/YugayVladimir/orgs","repos_url":"https://api.github.com/users/YugayVladimir/repos","events_url":"https://api.github.com/users/YugayVladimir/events{/privacy}","received_events_url":"https://api.github.com/users/YugayVladimir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YugayVladimir/FinanceTracker","description":null,"fork":false,"url":"https://api.github.com/repos/YugayVladimir/FinanceTracker","forks_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/forks","keys_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/teams","hooks_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/hooks","issue_events_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/issues/events{/number}","events_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/events","assignees_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/assignees{/user}","branches_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/branches{/branch}","tags_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/tags","blobs_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/statuses/{sha}","languages_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/languages","stargazers_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/stargazers","contributors_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/contributors","subscribers_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/subscribers","subscription_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/subscription","commits_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/contents/{+path}","compare_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/merges","archive_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/downloads","issues_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/issues{/number}","pulls_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls{/number}","milestones_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/milestones{/number}","notifications_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/labels{/name}","releases_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/releases{/id}","deployments_url":"https://api.github.com/repos/YugayVladimir/FinanceTracker/deployments","created_at":"2018-07-20T07:29:23Z","updated_at":"2018-07-30T03:19:25Z","pushed_at":"2018-07-30T03:19:22Z","git_url":"git://github.com/YugayVladimir/FinanceTracker.git","ssh_url":"git@github.com:YugayVladimir/FinanceTracker.git","clone_url":"https://github.com/YugayVladimir/FinanceTracker.git","svn_url":"https://github.com/YugayVladimir/FinanceTracker","homepage":null,"size":374,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","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/YugayVladimir/FinanceTracker/pulls/4"},"html":{"href":"https://github.com/YugayVladimir/FinanceTracker/pull/4"},"issue":{"href":"https://api.github.com/repos/YugayVladimir/FinanceTracker/issues/4"},"comments":{"href":"https://api.github.com/repos/YugayVladimir/FinanceTracker/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YugayVladimir/FinanceTracker/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/YugayVladimir/FinanceTracker/statuses/ca1d1be2d59daeaf40523be6baf6b493e0f69665"}},"author_association":"OWNER"}}
{"actor":{"display_login":"st235"}}