{"action":"created","comment":{"url":"https://api.github.com/repos/VolhaMan/weather/pulls/comments/76051547","id":76051547,"diff_hunk":"@@ -0,0 +1,26 @@\n+package weather;\n+\n+import java.util.HashMap;\n+import java.util.concurrent.ThreadLocalRandom;\n+\n+/**\n+ * Created by volha on 8/24/16.\n+ */\n+public class WeatherGetterManager {\n+    WeatherGetter[] classes;\n+\n+    public void setClasses(WeatherGetter[] classes) {\n+        this.classes = classes;\n+    }\n+\n+    public WeatherGetter getWeatherGetter() throws WeatherException {\n+\n+        if(classes == null || classes.length == 0) {\n+            throw new WeatherException(\"Cant get WeatherGetter\");","path":"src/main/java/weather/WeatherGetterManager.java","position":19,"original_position":19,"commit_id":"8ed7631d9742650cbb83ab5185e7068122a9dcbe","original_commit_id":"8ed7631d9742650cbb83ab5185e7068122a9dcbe","user":{"login":"manusovich","id":2063812,"avatar_url":"https://avatars.githubusercontent.com/u/2063812?v=3","gravatar_id":"","url":"https://api.github.com/users/manusovich","html_url":"https://github.com/manusovich","followers_url":"https://api.github.com/users/manusovich/followers","following_url":"https://api.github.com/users/manusovich/following{/other_user}","gists_url":"https://api.github.com/users/manusovich/gists{/gist_id}","starred_url":"https://api.github.com/users/manusovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manusovich/subscriptions","organizations_url":"https://api.github.com/users/manusovich/orgs","repos_url":"https://api.github.com/users/manusovich/repos","events_url":"https://api.github.com/users/manusovich/events{/privacy}","received_events_url":"https://api.github.com/users/manusovich/received_events","type":"User","site_admin":false},"body":"If you don't have anything here, it is application illegal state and you should throw IllegalStateException  with proper message. Something like Application can't be initialized properly and there are no weather getters available.  ","created_at":"2016-08-24T13:02:24Z","updated_at":"2016-08-24T13:02:24Z","html_url":"https://github.com/VolhaMan/weather/pull/2#discussion_r76051547","pull_request_url":"https://api.github.com/repos/VolhaMan/weather/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/VolhaMan/weather/pulls/comments/76051547"},"html":{"href":"https://github.com/VolhaMan/weather/pull/2#discussion_r76051547"},"pull_request":{"href":"https://api.github.com/repos/VolhaMan/weather/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/VolhaMan/weather/pulls/2","id":82484430,"html_url":"https://github.com/VolhaMan/weather/pull/2","diff_url":"https://github.com/VolhaMan/weather/pull/2.diff","patch_url":"https://github.com/VolhaMan/weather/pull/2.patch","issue_url":"https://api.github.com/repos/VolhaMan/weather/issues/2","number":2,"state":"open","locked":false,"title":"New2","user":{"login":"VolhaMan","id":20540197,"avatar_url":"https://avatars.githubusercontent.com/u/20540197?v=3","gravatar_id":"","url":"https://api.github.com/users/VolhaMan","html_url":"https://github.com/VolhaMan","followers_url":"https://api.github.com/users/VolhaMan/followers","following_url":"https://api.github.com/users/VolhaMan/following{/other_user}","gists_url":"https://api.github.com/users/VolhaMan/gists{/gist_id}","starred_url":"https://api.github.com/users/VolhaMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VolhaMan/subscriptions","organizations_url":"https://api.github.com/users/VolhaMan/orgs","repos_url":"https://api.github.com/users/VolhaMan/repos","events_url":"https://api.github.com/users/VolhaMan/events{/privacy}","received_events_url":"https://api.github.com/users/VolhaMan/received_events","type":"User","site_admin":false},"body":"@manusovich,\r\nNew WeatherGetter class has been implement. It gets weather from OpenWeather API. Url parameters were been moved to spring xml configuration file. WeatherGetterManager class has been implemented. It has getWeatherGetter() method. It chooses randomly one class which implements WeatherGetter interface and returns it. \r\n\r\nYou can check deploy on https://weather12345.herokuapp.com/ .\r\n\r\nPlease merge New2 branch with master.\r\n\r\n","created_at":"2016-08-24T05:43:43Z","updated_at":"2016-08-24T13:02:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83db8de197a4127b4291877130ff25bd35085737","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/VolhaMan/weather/pulls/2/commits","review_comments_url":"https://api.github.com/repos/VolhaMan/weather/pulls/2/comments","review_comment_url":"https://api.github.com/repos/VolhaMan/weather/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VolhaMan/weather/issues/2/comments","statuses_url":"https://api.github.com/repos/VolhaMan/weather/statuses/8ed7631d9742650cbb83ab5185e7068122a9dcbe","head":{"label":"VolhaMan:new2","ref":"new2","sha":"8ed7631d9742650cbb83ab5185e7068122a9dcbe","user":{"login":"VolhaMan","id":20540197,"avatar_url":"https://avatars.githubusercontent.com/u/20540197?v=3","gravatar_id":"","url":"https://api.github.com/users/VolhaMan","html_url":"https://github.com/VolhaMan","followers_url":"https://api.github.com/users/VolhaMan/followers","following_url":"https://api.github.com/users/VolhaMan/following{/other_user}","gists_url":"https://api.github.com/users/VolhaMan/gists{/gist_id}","starred_url":"https://api.github.com/users/VolhaMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VolhaMan/subscriptions","organizations_url":"https://api.github.com/users/VolhaMan/orgs","repos_url":"https://api.github.com/users/VolhaMan/repos","events_url":"https://api.github.com/users/VolhaMan/events{/privacy}","received_events_url":"https://api.github.com/users/VolhaMan/received_events","type":"User","site_admin":false},"repo":{"id":63714922,"name":"weather","full_name":"VolhaMan/weather","owner":{"login":"VolhaMan","id":20540197,"avatar_url":"https://avatars.githubusercontent.com/u/20540197?v=3","gravatar_id":"","url":"https://api.github.com/users/VolhaMan","html_url":"https://github.com/VolhaMan","followers_url":"https://api.github.com/users/VolhaMan/followers","following_url":"https://api.github.com/users/VolhaMan/following{/other_user}","gists_url":"https://api.github.com/users/VolhaMan/gists{/gist_id}","starred_url":"https://api.github.com/users/VolhaMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VolhaMan/subscriptions","organizations_url":"https://api.github.com/users/VolhaMan/orgs","repos_url":"https://api.github.com/users/VolhaMan/repos","events_url":"https://api.github.com/users/VolhaMan/events{/privacy}","received_events_url":"https://api.github.com/users/VolhaMan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VolhaMan/weather","description":null,"fork":false,"url":"https://api.github.com/repos/VolhaMan/weather","forks_url":"https://api.github.com/repos/VolhaMan/weather/forks","keys_url":"https://api.github.com/repos/VolhaMan/weather/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VolhaMan/weather/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VolhaMan/weather/teams","hooks_url":"https://api.github.com/repos/VolhaMan/weather/hooks","issue_events_url":"https://api.github.com/repos/VolhaMan/weather/issues/events{/number}","events_url":"https://api.github.com/repos/VolhaMan/weather/events","assignees_url":"https://api.github.com/repos/VolhaMan/weather/assignees{/user}","branches_url":"https://api.github.com/repos/VolhaMan/weather/branches{/branch}","tags_url":"https://api.github.com/repos/VolhaMan/weather/tags","blobs_url":"https://api.github.com/repos/VolhaMan/weather/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VolhaMan/weather/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VolhaMan/weather/git/refs{/sha}","trees_url":"https://api.github.com/repos/VolhaMan/weather/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VolhaMan/weather/statuses/{sha}","languages_url":"https://api.github.com/repos/VolhaMan/weather/languages","stargazers_url":"https://api.github.com/repos/VolhaMan/weather/stargazers","contributors_url":"https://api.github.com/repos/VolhaMan/weather/contributors","subscribers_url":"https://api.github.com/repos/VolhaMan/weather/subscribers","subscription_url":"https://api.github.com/repos/VolhaMan/weather/subscription","commits_url":"https://api.github.com/repos/VolhaMan/weather/commits{/sha}","git_commits_url":"https://api.github.com/repos/VolhaMan/weather/git/commits{/sha}","comments_url":"https://api.github.com/repos/VolhaMan/weather/comments{/number}","issue_comment_url":"https://api.github.com/repos/VolhaMan/weather/issues/comments{/number}","contents_url":"https://api.github.com/repos/VolhaMan/weather/contents/{+path}","compare_url":"https://api.github.com/repos/VolhaMan/weather/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VolhaMan/weather/merges","archive_url":"https://api.github.com/repos/VolhaMan/weather/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VolhaMan/weather/downloads","issues_url":"https://api.github.com/repos/VolhaMan/weather/issues{/number}","pulls_url":"https://api.github.com/repos/VolhaMan/weather/pulls{/number}","milestones_url":"https://api.github.com/repos/VolhaMan/weather/milestones{/number}","notifications_url":"https://api.github.com/repos/VolhaMan/weather/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VolhaMan/weather/labels{/name}","releases_url":"https://api.github.com/repos/VolhaMan/weather/releases{/id}","deployments_url":"https://api.github.com/repos/VolhaMan/weather/deployments","created_at":"2016-07-19T17:37:49Z","updated_at":"2016-07-19T17:38:19Z","pushed_at":"2016-08-24T05:43:43Z","git_url":"git://github.com/VolhaMan/weather.git","ssh_url":"git@github.com:VolhaMan/weather.git","clone_url":"https://github.com/VolhaMan/weather.git","svn_url":"https://github.com/VolhaMan/weather","homepage":null,"size":55,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"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":0,"default_branch":"master"}},"base":{"label":"VolhaMan:master","ref":"master","sha":"be2247ab283edd74c738d67d7e74d53c797c176b","user":{"login":"VolhaMan","id":20540197,"avatar_url":"https://avatars.githubusercontent.com/u/20540197?v=3","gravatar_id":"","url":"https://api.github.com/users/VolhaMan","html_url":"https://github.com/VolhaMan","followers_url":"https://api.github.com/users/VolhaMan/followers","following_url":"https://api.github.com/users/VolhaMan/following{/other_user}","gists_url":"https://api.github.com/users/VolhaMan/gists{/gist_id}","starred_url":"https://api.github.com/users/VolhaMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VolhaMan/subscriptions","organizations_url":"https://api.github.com/users/VolhaMan/orgs","repos_url":"https://api.github.com/users/VolhaMan/repos","events_url":"https://api.github.com/users/VolhaMan/events{/privacy}","received_events_url":"https://api.github.com/users/VolhaMan/received_events","type":"User","site_admin":false},"repo":{"id":63714922,"name":"weather","full_name":"VolhaMan/weather","owner":{"login":"VolhaMan","id":20540197,"avatar_url":"https://avatars.githubusercontent.com/u/20540197?v=3","gravatar_id":"","url":"https://api.github.com/users/VolhaMan","html_url":"https://github.com/VolhaMan","followers_url":"https://api.github.com/users/VolhaMan/followers","following_url":"https://api.github.com/users/VolhaMan/following{/other_user}","gists_url":"https://api.github.com/users/VolhaMan/gists{/gist_id}","starred_url":"https://api.github.com/users/VolhaMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VolhaMan/subscriptions","organizations_url":"https://api.github.com/users/VolhaMan/orgs","repos_url":"https://api.github.com/users/VolhaMan/repos","events_url":"https://api.github.com/users/VolhaMan/events{/privacy}","received_events_url":"https://api.github.com/users/VolhaMan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VolhaMan/weather","description":null,"fork":false,"url":"https://api.github.com/repos/VolhaMan/weather","forks_url":"https://api.github.com/repos/VolhaMan/weather/forks","keys_url":"https://api.github.com/repos/VolhaMan/weather/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VolhaMan/weather/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VolhaMan/weather/teams","hooks_url":"https://api.github.com/repos/VolhaMan/weather/hooks","issue_events_url":"https://api.github.com/repos/VolhaMan/weather/issues/events{/number}","events_url":"https://api.github.com/repos/VolhaMan/weather/events","assignees_url":"https://api.github.com/repos/VolhaMan/weather/assignees{/user}","branches_url":"https://api.github.com/repos/VolhaMan/weather/branches{/branch}","tags_url":"https://api.github.com/repos/VolhaMan/weather/tags","blobs_url":"https://api.github.com/repos/VolhaMan/weather/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VolhaMan/weather/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VolhaMan/weather/git/refs{/sha}","trees_url":"https://api.github.com/repos/VolhaMan/weather/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VolhaMan/weather/statuses/{sha}","languages_url":"https://api.github.com/repos/VolhaMan/weather/languages","stargazers_url":"https://api.github.com/repos/VolhaMan/weather/stargazers","contributors_url":"https://api.github.com/repos/VolhaMan/weather/contributors","subscribers_url":"https://api.github.com/repos/VolhaMan/weather/subscribers","subscription_url":"https://api.github.com/repos/VolhaMan/weather/subscription","commits_url":"https://api.github.com/repos/VolhaMan/weather/commits{/sha}","git_commits_url":"https://api.github.com/repos/VolhaMan/weather/git/commits{/sha}","comments_url":"https://api.github.com/repos/VolhaMan/weather/comments{/number}","issue_comment_url":"https://api.github.com/repos/VolhaMan/weather/issues/comments{/number}","contents_url":"https://api.github.com/repos/VolhaMan/weather/contents/{+path}","compare_url":"https://api.github.com/repos/VolhaMan/weather/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VolhaMan/weather/merges","archive_url":"https://api.github.com/repos/VolhaMan/weather/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VolhaMan/weather/downloads","issues_url":"https://api.github.com/repos/VolhaMan/weather/issues{/number}","pulls_url":"https://api.github.com/repos/VolhaMan/weather/pulls{/number}","milestones_url":"https://api.github.com/repos/VolhaMan/weather/milestones{/number}","notifications_url":"https://api.github.com/repos/VolhaMan/weather/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VolhaMan/weather/labels{/name}","releases_url":"https://api.github.com/repos/VolhaMan/weather/releases{/id}","deployments_url":"https://api.github.com/repos/VolhaMan/weather/deployments","created_at":"2016-07-19T17:37:49Z","updated_at":"2016-07-19T17:38:19Z","pushed_at":"2016-08-24T05:43:43Z","git_url":"git://github.com/VolhaMan/weather.git","ssh_url":"git@github.com:VolhaMan/weather.git","clone_url":"https://github.com/VolhaMan/weather.git","svn_url":"https://github.com/VolhaMan/weather","homepage":null,"size":55,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VolhaMan/weather/pulls/2"},"html":{"href":"https://github.com/VolhaMan/weather/pull/2"},"issue":{"href":"https://api.github.com/repos/VolhaMan/weather/issues/2"},"comments":{"href":"https://api.github.com/repos/VolhaMan/weather/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/VolhaMan/weather/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/VolhaMan/weather/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VolhaMan/weather/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/VolhaMan/weather/statuses/8ed7631d9742650cbb83ab5185e7068122a9dcbe"}}}}
{"actor":{"display_login":"manusovich"}}