{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/Weather_2/pulls/comments/94916739","pull_request_review_id":15458678,"id":94916739,"diff_hunk":"@@ -158,6 +194,79 @@ public void updateUi() {\n         SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n         mWindType = preferences.getString(WIND_SPEED_TYPE_KEY, \"NULL\");\n         mTempType = preferences.getString(TEMP_TYPE_KEY, \"NULL\");\n-        //todo : update ui\n+        mChangeUtil = new ChangeUtil();\n+        mCurrentlyWeather = mResponse.getCurrentlyWeather();\n+        switch (mWindType) {\n+            case TYPE_WIND_KM_H:\n+                mWindSpeedConverted = mCurrentlyWeather.getWindSpeed();\n+                break;\n+            case TYPE_WIND_MET_S:\n+                mWindSpeedConverted = mChangeUtil.kmToMetPerSeconds(mCurrentlyWeather.getWindSpeed());\n+                break;\n+            case TYPE_WIND_MILE_H:\n+                mWindSpeedConverted = mChangeUtil.kmToMilePerHours(mCurrentlyWeather.getWindSpeed());\n+                break;\n+            default:\n+                break;\n+        }\n+        switch (mTempType) {\n+            case TYPE_TEMP_C:\n+                mTempConverted = mChangeUtil.fahrenheitToCelsius(mCurrentlyWeather.getTemperature());\n+                mTextViewTemp.setText((int) mTempConverted + \"\\u2103\");","path":"app/src/main/java/com/framgia/weather/ui/activity/MainActivity.java","position":109,"original_position":109,"commit_id":"9ddde0b374227423c9d92d1358a120600f5cac99","original_commit_id":"9ddde0b374227423c9d92d1358a120600f5cac99","user":{"login":"tugnt","id":14192303,"avatar_url":"https://avatars.githubusercontent.com/u/14192303?v=3","gravatar_id":"","url":"https://api.github.com/users/tugnt","html_url":"https://github.com/tugnt","followers_url":"https://api.github.com/users/tugnt/followers","following_url":"https://api.github.com/users/tugnt/following{/other_user}","gists_url":"https://api.github.com/users/tugnt/gists{/gist_id}","starred_url":"https://api.github.com/users/tugnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tugnt/subscriptions","organizations_url":"https://api.github.com/users/tugnt/orgs","repos_url":"https://api.github.com/users/tugnt/repos","events_url":"https://api.github.com/users/tugnt/events{/privacy}","received_events_url":"https://api.github.com/users/tugnt/received_events","type":"User","site_admin":false},"body":"vì e thấy nhiệt độ chẳng có ai để mà không làm tròn cả a. E nghĩ là nên để số nguyên vẫn hơn ","created_at":"2017-01-06T08:58:35Z","updated_at":"2017-01-06T08:58:35Z","html_url":"https://github.com/framgia/Weather_2/pull/7#discussion_r94916739","pull_request_url":"https://api.github.com/repos/framgia/Weather_2/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/framgia/Weather_2/pulls/comments/94916739"},"html":{"href":"https://github.com/framgia/Weather_2/pull/7#discussion_r94916739"},"pull_request":{"href":"https://api.github.com/repos/framgia/Weather_2/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/Weather_2/pulls/7","id":100424791,"html_url":"https://github.com/framgia/Weather_2/pull/7","diff_url":"https://github.com/framgia/Weather_2/pull/7.diff","patch_url":"https://github.com/framgia/Weather_2/pull/7.patch","issue_url":"https://api.github.com/repos/framgia/Weather_2/issues/7","number":7,"state":"open","locked":false,"title":"show_data_forecast","user":{"login":"tugnt","id":14192303,"avatar_url":"https://avatars.githubusercontent.com/u/14192303?v=3","gravatar_id":"","url":"https://api.github.com/users/tugnt","html_url":"https://github.com/tugnt","followers_url":"https://api.github.com/users/tugnt/followers","following_url":"https://api.github.com/users/tugnt/following{/other_user}","gists_url":"https://api.github.com/users/tugnt/gists{/gist_id}","starred_url":"https://api.github.com/users/tugnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tugnt/subscriptions","organizations_url":"https://api.github.com/users/tugnt/orgs","repos_url":"https://api.github.com/users/tugnt/repos","events_url":"https://api.github.com/users/tugnt/events{/privacy}","received_events_url":"https://api.github.com/users/tugnt/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-06T08:15:35Z","updated_at":"2017-01-06T08:58:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3859da2ddc523d60861c957a3c62cb57f552e5ac","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/Weather_2/pulls/7/commits","review_comments_url":"https://api.github.com/repos/framgia/Weather_2/pulls/7/comments","review_comment_url":"https://api.github.com/repos/framgia/Weather_2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/Weather_2/issues/7/comments","statuses_url":"https://api.github.com/repos/framgia/Weather_2/statuses/9ddde0b374227423c9d92d1358a120600f5cac99","head":{"label":"tugnt:show_forecast_data","ref":"show_forecast_data","sha":"9ddde0b374227423c9d92d1358a120600f5cac99","user":{"login":"tugnt","id":14192303,"avatar_url":"https://avatars.githubusercontent.com/u/14192303?v=3","gravatar_id":"","url":"https://api.github.com/users/tugnt","html_url":"https://github.com/tugnt","followers_url":"https://api.github.com/users/tugnt/followers","following_url":"https://api.github.com/users/tugnt/following{/other_user}","gists_url":"https://api.github.com/users/tugnt/gists{/gist_id}","starred_url":"https://api.github.com/users/tugnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tugnt/subscriptions","organizations_url":"https://api.github.com/users/tugnt/orgs","repos_url":"https://api.github.com/users/tugnt/repos","events_url":"https://api.github.com/users/tugnt/events{/privacy}","received_events_url":"https://api.github.com/users/tugnt/received_events","type":"User","site_admin":false},"repo":{"id":77572553,"name":"Weather_2","full_name":"tugnt/Weather_2","owner":{"login":"tugnt","id":14192303,"avatar_url":"https://avatars.githubusercontent.com/u/14192303?v=3","gravatar_id":"","url":"https://api.github.com/users/tugnt","html_url":"https://github.com/tugnt","followers_url":"https://api.github.com/users/tugnt/followers","following_url":"https://api.github.com/users/tugnt/following{/other_user}","gists_url":"https://api.github.com/users/tugnt/gists{/gist_id}","starred_url":"https://api.github.com/users/tugnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tugnt/subscriptions","organizations_url":"https://api.github.com/users/tugnt/orgs","repos_url":"https://api.github.com/users/tugnt/repos","events_url":"https://api.github.com/users/tugnt/events{/privacy}","received_events_url":"https://api.github.com/users/tugnt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tugnt/Weather_2","description":"Weather App (Training)","fork":true,"url":"https://api.github.com/repos/tugnt/Weather_2","forks_url":"https://api.github.com/repos/tugnt/Weather_2/forks","keys_url":"https://api.github.com/repos/tugnt/Weather_2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tugnt/Weather_2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tugnt/Weather_2/teams","hooks_url":"https://api.github.com/repos/tugnt/Weather_2/hooks","issue_events_url":"https://api.github.com/repos/tugnt/Weather_2/issues/events{/number}","events_url":"https://api.github.com/repos/tugnt/Weather_2/events","assignees_url":"https://api.github.com/repos/tugnt/Weather_2/assignees{/user}","branches_url":"https://api.github.com/repos/tugnt/Weather_2/branches{/branch}","tags_url":"https://api.github.com/repos/tugnt/Weather_2/tags","blobs_url":"https://api.github.com/repos/tugnt/Weather_2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tugnt/Weather_2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tugnt/Weather_2/git/refs{/sha}","trees_url":"https://api.github.com/repos/tugnt/Weather_2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tugnt/Weather_2/statuses/{sha}","languages_url":"https://api.github.com/repos/tugnt/Weather_2/languages","stargazers_url":"https://api.github.com/repos/tugnt/Weather_2/stargazers","contributors_url":"https://api.github.com/repos/tugnt/Weather_2/contributors","subscribers_url":"https://api.github.com/repos/tugnt/Weather_2/subscribers","subscription_url":"https://api.github.com/repos/tugnt/Weather_2/subscription","commits_url":"https://api.github.com/repos/tugnt/Weather_2/commits{/sha}","git_commits_url":"https://api.github.com/repos/tugnt/Weather_2/git/commits{/sha}","comments_url":"https://api.github.com/repos/tugnt/Weather_2/comments{/number}","issue_comment_url":"https://api.github.com/repos/tugnt/Weather_2/issues/comments{/number}","contents_url":"https://api.github.com/repos/tugnt/Weather_2/contents/{+path}","compare_url":"https://api.github.com/repos/tugnt/Weather_2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tugnt/Weather_2/merges","archive_url":"https://api.github.com/repos/tugnt/Weather_2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tugnt/Weather_2/downloads","issues_url":"https://api.github.com/repos/tugnt/Weather_2/issues{/number}","pulls_url":"https://api.github.com/repos/tugnt/Weather_2/pulls{/number}","milestones_url":"https://api.github.com/repos/tugnt/Weather_2/milestones{/number}","notifications_url":"https://api.github.com/repos/tugnt/Weather_2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tugnt/Weather_2/labels{/name}","releases_url":"https://api.github.com/repos/tugnt/Weather_2/releases{/id}","deployments_url":"https://api.github.com/repos/tugnt/Weather_2/deployments","created_at":"2016-12-29T01:30:10Z","updated_at":"2016-12-29T01:06:41Z","pushed_at":"2017-01-06T08:42:44Z","git_url":"git://github.com/tugnt/Weather_2.git","ssh_url":"git@github.com:tugnt/Weather_2.git","clone_url":"https://github.com/tugnt/Weather_2.git","svn_url":"https://github.com/tugnt/Weather_2","homepage":null,"size":4280,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"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":"framgia:develop","ref":"develop","sha":"7e44c40a69d9c4ece207e279d4f7bc45a1a4d578","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":77571363,"name":"Weather_2","full_name":"framgia/Weather_2","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/Weather_2","description":"Weather App (Training)","fork":false,"url":"https://api.github.com/repos/framgia/Weather_2","forks_url":"https://api.github.com/repos/framgia/Weather_2/forks","keys_url":"https://api.github.com/repos/framgia/Weather_2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/Weather_2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/Weather_2/teams","hooks_url":"https://api.github.com/repos/framgia/Weather_2/hooks","issue_events_url":"https://api.github.com/repos/framgia/Weather_2/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/Weather_2/events","assignees_url":"https://api.github.com/repos/framgia/Weather_2/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/Weather_2/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/Weather_2/tags","blobs_url":"https://api.github.com/repos/framgia/Weather_2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/Weather_2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/Weather_2/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/Weather_2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/Weather_2/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/Weather_2/languages","stargazers_url":"https://api.github.com/repos/framgia/Weather_2/stargazers","contributors_url":"https://api.github.com/repos/framgia/Weather_2/contributors","subscribers_url":"https://api.github.com/repos/framgia/Weather_2/subscribers","subscription_url":"https://api.github.com/repos/framgia/Weather_2/subscription","commits_url":"https://api.github.com/repos/framgia/Weather_2/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/Weather_2/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/Weather_2/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/Weather_2/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/Weather_2/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/Weather_2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/Weather_2/merges","archive_url":"https://api.github.com/repos/framgia/Weather_2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/Weather_2/downloads","issues_url":"https://api.github.com/repos/framgia/Weather_2/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/Weather_2/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/Weather_2/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/Weather_2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/Weather_2/labels{/name}","releases_url":"https://api.github.com/repos/framgia/Weather_2/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/Weather_2/deployments","created_at":"2016-12-29T01:06:41Z","updated_at":"2016-12-29T01:06:41Z","pushed_at":"2017-01-06T08:42:44Z","git_url":"git://github.com/framgia/Weather_2.git","ssh_url":"git@github.com:framgia/Weather_2.git","clone_url":"https://github.com/framgia/Weather_2.git","svn_url":"https://github.com/framgia/Weather_2","homepage":null,"size":4266,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/Weather_2/pulls/7"},"html":{"href":"https://github.com/framgia/Weather_2/pull/7"},"issue":{"href":"https://api.github.com/repos/framgia/Weather_2/issues/7"},"comments":{"href":"https://api.github.com/repos/framgia/Weather_2/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/Weather_2/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/Weather_2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/Weather_2/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/Weather_2/statuses/9ddde0b374227423c9d92d1358a120600f5cac99"}}}}
{"actor":{"display_login":"tugnt"}}