{"action":"created","comment":{"url":"https://api.github.com/repos/Kondenko/yamblzweather/pulls/comments/129424113","pull_request_review_id":52189606,"id":129424113,"diff_hunk":"@@ -0,0 +1,91 @@\n+package com.kondenko.yamblzweather.ui.weather;\n+\n+import com.evernote.android.job.JobManager;\n+import com.kondenko.yamblzweather.Const;\n+import com.kondenko.yamblzweather.job.AppJobCreator;\n+import com.kondenko.yamblzweather.job.UpdateWeatherJob;\n+import com.kondenko.yamblzweather.ui.BasePresenter;\n+import com.kondenko.yamblzweather.utils.SettingsManager;\n+import com.kondenko.yamblzweather.utils.Utils;\n+\n+import java.util.concurrent.TimeUnit;\n+\n+import javax.inject.Inject;\n+\n+import retrofit2.Response;\n+\n+public class WeatherPresenter extends BasePresenter<WeatherView, WeatherInteractor> {\n+\n+    private SettingsManager settingsManager;\n+    private AppJobCreator appJobCreator;\n+    private String cityId;\n+    private String units;\n+\n+    @Inject\n+    public WeatherPresenter(WeatherView view, WeatherInteractor interactor, SettingsManager settingsManager, AppJobCreator appJobCreator) {","path":"app/src/main/java/com/kondenko/yamblzweather/ui/weather/WeatherPresenter.java","position":25,"original_position":25,"commit_id":"9b30adde8a184a6f8681557f853e8a284f3262b5","original_commit_id":"9b30adde8a184a6f8681557f853e8a284f3262b5","user":{"login":"guliash","id":5244258,"avatar_url":"https://avatars1.githubusercontent.com/u/5244258?v=4","gravatar_id":"","url":"https://api.github.com/users/guliash","html_url":"https://github.com/guliash","followers_url":"https://api.github.com/users/guliash/followers","following_url":"https://api.github.com/users/guliash/following{/other_user}","gists_url":"https://api.github.com/users/guliash/gists{/gist_id}","starred_url":"https://api.github.com/users/guliash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guliash/subscriptions","organizations_url":"https://api.github.com/users/guliash/orgs","repos_url":"https://api.github.com/users/guliash/repos","events_url":"https://api.github.com/users/guliash/events{/privacy}","received_events_url":"https://api.github.com/users/guliash/received_events","type":"User","site_admin":false},"body":"А зачем вьюха в конструктор?","created_at":"2017-07-25T21:00:06Z","updated_at":"2017-07-25T21:04:39Z","html_url":"https://github.com/Kondenko/yamblzweather/pull/2#discussion_r129424113","pull_request_url":"https://api.github.com/repos/Kondenko/yamblzweather/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Kondenko/yamblzweather/pulls/comments/129424113"},"html":{"href":"https://github.com/Kondenko/yamblzweather/pull/2#discussion_r129424113"},"pull_request":{"href":"https://api.github.com/repos/Kondenko/yamblzweather/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Kondenko/yamblzweather/pulls/2","id":130765829,"html_url":"https://github.com/Kondenko/yamblzweather/pull/2","diff_url":"https://github.com/Kondenko/yamblzweather/pull/2.diff","patch_url":"https://github.com/Kondenko/yamblzweather/pull/2.patch","issue_url":"https://api.github.com/repos/Kondenko/yamblzweather/issues/2","number":2,"state":"closed","locked":false,"title":"Задание #2","user":{"login":"Kondenko","id":6809803,"avatar_url":"https://avatars0.githubusercontent.com/u/6809803?v=4","gravatar_id":"","url":"https://api.github.com/users/Kondenko","html_url":"https://github.com/Kondenko","followers_url":"https://api.github.com/users/Kondenko/followers","following_url":"https://api.github.com/users/Kondenko/following{/other_user}","gists_url":"https://api.github.com/users/Kondenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Kondenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kondenko/subscriptions","organizations_url":"https://api.github.com/users/Kondenko/orgs","repos_url":"https://api.github.com/users/Kondenko/repos","events_url":"https://api.github.com/users/Kondenko/events{/privacy}","received_events_url":"https://api.github.com/users/Kondenko/received_events","type":"User","site_admin":false},"body":"WeatherAPI: https://openweathermap.org/api\r\nBackground updates: https://github.com/evernote/android-job\r\n\r\nThe code is very sketchy and not well-tested, further improvements are required.  ","created_at":"2017-07-16T20:53:26Z","updated_at":"2017-07-25T21:04:39Z","closed_at":"2017-07-21T19:13:28Z","merged_at":"2017-07-21T19:13:28Z","merge_commit_sha":"0153a413b84f324dfd273fb49eb9b2798d15221d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Kondenko/yamblzweather/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Kondenko/yamblzweather/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Kondenko/yamblzweather/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kondenko/yamblzweather/issues/2/comments","statuses_url":"https://api.github.com/repos/Kondenko/yamblzweather/statuses/9b30adde8a184a6f8681557f853e8a284f3262b5","head":{"label":"Kondenko:task2","ref":"task2","sha":"9b30adde8a184a6f8681557f853e8a284f3262b5","user":{"login":"Kondenko","id":6809803,"avatar_url":"https://avatars0.githubusercontent.com/u/6809803?v=4","gravatar_id":"","url":"https://api.github.com/users/Kondenko","html_url":"https://github.com/Kondenko","followers_url":"https://api.github.com/users/Kondenko/followers","following_url":"https://api.github.com/users/Kondenko/following{/other_user}","gists_url":"https://api.github.com/users/Kondenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Kondenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kondenko/subscriptions","organizations_url":"https://api.github.com/users/Kondenko/orgs","repos_url":"https://api.github.com/users/Kondenko/repos","events_url":"https://api.github.com/users/Kondenko/events{/privacy}","received_events_url":"https://api.github.com/users/Kondenko/received_events","type":"User","site_admin":false},"repo":{"id":96692247,"name":"yamblzweather","full_name":"Kondenko/yamblzweather","owner":{"login":"Kondenko","id":6809803,"avatar_url":"https://avatars0.githubusercontent.com/u/6809803?v=4","gravatar_id":"","url":"https://api.github.com/users/Kondenko","html_url":"https://github.com/Kondenko","followers_url":"https://api.github.com/users/Kondenko/followers","following_url":"https://api.github.com/users/Kondenko/following{/other_user}","gists_url":"https://api.github.com/users/Kondenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Kondenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kondenko/subscriptions","organizations_url":"https://api.github.com/users/Kondenko/orgs","repos_url":"https://api.github.com/users/Kondenko/repos","events_url":"https://api.github.com/users/Kondenko/events{/privacy}","received_events_url":"https://api.github.com/users/Kondenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kondenko/yamblzweather","description":"Homework for yamblz","fork":false,"url":"https://api.github.com/repos/Kondenko/yamblzweather","forks_url":"https://api.github.com/repos/Kondenko/yamblzweather/forks","keys_url":"https://api.github.com/repos/Kondenko/yamblzweather/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kondenko/yamblzweather/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kondenko/yamblzweather/teams","hooks_url":"https://api.github.com/repos/Kondenko/yamblzweather/hooks","issue_events_url":"https://api.github.com/repos/Kondenko/yamblzweather/issues/events{/number}","events_url":"https://api.github.com/repos/Kondenko/yamblzweather/events","assignees_url":"https://api.github.com/repos/Kondenko/yamblzweather/assignees{/user}","branches_url":"https://api.github.com/repos/Kondenko/yamblzweather/branches{/branch}","tags_url":"https://api.github.com/repos/Kondenko/yamblzweather/tags","blobs_url":"https://api.github.com/repos/Kondenko/yamblzweather/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kondenko/yamblzweather/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kondenko/yamblzweather/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kondenko/yamblzweather/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kondenko/yamblzweather/statuses/{sha}","languages_url":"https://api.github.com/repos/Kondenko/yamblzweather/languages","stargazers_url":"https://api.github.com/repos/Kondenko/yamblzweather/stargazers","contributors_url":"https://api.github.com/repos/Kondenko/yamblzweather/contributors","subscribers_url":"https://api.github.com/repos/Kondenko/yamblzweather/subscribers","subscription_url":"https://api.github.com/repos/Kondenko/yamblzweather/subscription","commits_url":"https://api.github.com/repos/Kondenko/yamblzweather/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kondenko/yamblzweather/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kondenko/yamblzweather/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kondenko/yamblzweather/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kondenko/yamblzweather/contents/{+path}","compare_url":"https://api.github.com/repos/Kondenko/yamblzweather/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kondenko/yamblzweather/merges","archive_url":"https://api.github.com/repos/Kondenko/yamblzweather/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kondenko/yamblzweather/downloads","issues_url":"https://api.github.com/repos/Kondenko/yamblzweather/issues{/number}","pulls_url":"https://api.github.com/repos/Kondenko/yamblzweather/pulls{/number}","milestones_url":"https://api.github.com/repos/Kondenko/yamblzweather/milestones{/number}","notifications_url":"https://api.github.com/repos/Kondenko/yamblzweather/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kondenko/yamblzweather/labels{/name}","releases_url":"https://api.github.com/repos/Kondenko/yamblzweather/releases{/id}","deployments_url":"https://api.github.com/repos/Kondenko/yamblzweather/deployments","created_at":"2017-07-09T15:11:51Z","updated_at":"2017-07-09T15:13:45Z","pushed_at":"2017-07-21T19:13:28Z","git_url":"git://github.com/Kondenko/yamblzweather.git","ssh_url":"git@github.com:Kondenko/yamblzweather.git","clone_url":"https://github.com/Kondenko/yamblzweather.git","svn_url":"https://github.com/Kondenko/yamblzweather","homepage":null,"size":561,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Kondenko:master","ref":"master","sha":"a852e65e5911516005c81f97a79b4b9d2c89f90e","user":{"login":"Kondenko","id":6809803,"avatar_url":"https://avatars0.githubusercontent.com/u/6809803?v=4","gravatar_id":"","url":"https://api.github.com/users/Kondenko","html_url":"https://github.com/Kondenko","followers_url":"https://api.github.com/users/Kondenko/followers","following_url":"https://api.github.com/users/Kondenko/following{/other_user}","gists_url":"https://api.github.com/users/Kondenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Kondenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kondenko/subscriptions","organizations_url":"https://api.github.com/users/Kondenko/orgs","repos_url":"https://api.github.com/users/Kondenko/repos","events_url":"https://api.github.com/users/Kondenko/events{/privacy}","received_events_url":"https://api.github.com/users/Kondenko/received_events","type":"User","site_admin":false},"repo":{"id":96692247,"name":"yamblzweather","full_name":"Kondenko/yamblzweather","owner":{"login":"Kondenko","id":6809803,"avatar_url":"https://avatars0.githubusercontent.com/u/6809803?v=4","gravatar_id":"","url":"https://api.github.com/users/Kondenko","html_url":"https://github.com/Kondenko","followers_url":"https://api.github.com/users/Kondenko/followers","following_url":"https://api.github.com/users/Kondenko/following{/other_user}","gists_url":"https://api.github.com/users/Kondenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Kondenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kondenko/subscriptions","organizations_url":"https://api.github.com/users/Kondenko/orgs","repos_url":"https://api.github.com/users/Kondenko/repos","events_url":"https://api.github.com/users/Kondenko/events{/privacy}","received_events_url":"https://api.github.com/users/Kondenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kondenko/yamblzweather","description":"Homework for yamblz","fork":false,"url":"https://api.github.com/repos/Kondenko/yamblzweather","forks_url":"https://api.github.com/repos/Kondenko/yamblzweather/forks","keys_url":"https://api.github.com/repos/Kondenko/yamblzweather/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kondenko/yamblzweather/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kondenko/yamblzweather/teams","hooks_url":"https://api.github.com/repos/Kondenko/yamblzweather/hooks","issue_events_url":"https://api.github.com/repos/Kondenko/yamblzweather/issues/events{/number}","events_url":"https://api.github.com/repos/Kondenko/yamblzweather/events","assignees_url":"https://api.github.com/repos/Kondenko/yamblzweather/assignees{/user}","branches_url":"https://api.github.com/repos/Kondenko/yamblzweather/branches{/branch}","tags_url":"https://api.github.com/repos/Kondenko/yamblzweather/tags","blobs_url":"https://api.github.com/repos/Kondenko/yamblzweather/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kondenko/yamblzweather/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kondenko/yamblzweather/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kondenko/yamblzweather/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kondenko/yamblzweather/statuses/{sha}","languages_url":"https://api.github.com/repos/Kondenko/yamblzweather/languages","stargazers_url":"https://api.github.com/repos/Kondenko/yamblzweather/stargazers","contributors_url":"https://api.github.com/repos/Kondenko/yamblzweather/contributors","subscribers_url":"https://api.github.com/repos/Kondenko/yamblzweather/subscribers","subscription_url":"https://api.github.com/repos/Kondenko/yamblzweather/subscription","commits_url":"https://api.github.com/repos/Kondenko/yamblzweather/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kondenko/yamblzweather/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kondenko/yamblzweather/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kondenko/yamblzweather/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kondenko/yamblzweather/contents/{+path}","compare_url":"https://api.github.com/repos/Kondenko/yamblzweather/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kondenko/yamblzweather/merges","archive_url":"https://api.github.com/repos/Kondenko/yamblzweather/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kondenko/yamblzweather/downloads","issues_url":"https://api.github.com/repos/Kondenko/yamblzweather/issues{/number}","pulls_url":"https://api.github.com/repos/Kondenko/yamblzweather/pulls{/number}","milestones_url":"https://api.github.com/repos/Kondenko/yamblzweather/milestones{/number}","notifications_url":"https://api.github.com/repos/Kondenko/yamblzweather/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kondenko/yamblzweather/labels{/name}","releases_url":"https://api.github.com/repos/Kondenko/yamblzweather/releases{/id}","deployments_url":"https://api.github.com/repos/Kondenko/yamblzweather/deployments","created_at":"2017-07-09T15:11:51Z","updated_at":"2017-07-09T15:13:45Z","pushed_at":"2017-07-21T19:13:28Z","git_url":"git://github.com/Kondenko/yamblzweather.git","ssh_url":"git@github.com:Kondenko/yamblzweather.git","clone_url":"https://github.com/Kondenko/yamblzweather.git","svn_url":"https://github.com/Kondenko/yamblzweather","homepage":null,"size":561,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kondenko/yamblzweather/pulls/2"},"html":{"href":"https://github.com/Kondenko/yamblzweather/pull/2"},"issue":{"href":"https://api.github.com/repos/Kondenko/yamblzweather/issues/2"},"comments":{"href":"https://api.github.com/repos/Kondenko/yamblzweather/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Kondenko/yamblzweather/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Kondenko/yamblzweather/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kondenko/yamblzweather/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Kondenko/yamblzweather/statuses/9b30adde8a184a6f8681557f853e8a284f3262b5"}}}}
{"actor":{"display_login":"guliash"}}