{"action":"created","comment":{"url":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls/comments/122634493","pull_request_review_id":44765468,"id":122634493,"diff_hunk":"@@ -0,0 +1,92 @@\n+package com.example.lapnguyen.weather_3.screen.mainscreen;\n+\n+import android.os.Bundle;\n+import android.support.v7.app.AppCompatActivity;\n+import android.text.format.DateFormat;\n+import android.view.Menu;\n+import android.view.MenuItem;\n+import android.widget.ImageView;\n+import android.widget.TextView;\n+import com.bumptech.glide.Glide;\n+import com.example.lapnguyen.weather_3.R;\n+import com.example.lapnguyen.weather_3.api.ServiceGenerator;\n+import com.example.lapnguyen.weather_3.api.WeatherService;\n+import com.example.lapnguyen.weather_3.data.model.Weather;\n+import com.example.lapnguyen.weather_3.data.source.MainRepository;\n+import com.example.lapnguyen.weather_3.data.source.MainRepositoryImplement;\n+import com.example.lapnguyen.weather_3.screen.settingscreen.SettingsActivity;\n+import com.example.lapnguyen.weather_3.utils.Navigator;\n+import java.util.Date;\n+\n+/**\n+ * Created by lapnguyen on 14/06/2017.\n+ */\n+public class MainActivity extends AppCompatActivity implements MainContract.View {\n+\n+    private MainContract.Presenter mPresenter;\n+    private TextView mCurrentLocation, mCurrentTemperature, mWindSpeed, mHumidityPercent, mUvIndex,\n+            mLastUpdatedTime;\n+    private ImageView mWeatherIcon;\n+\n+    Navigator mNavigator;\n+\n+    @Override\n+    protected void onCreate(Bundle savedInstanceState) {\n+        super.onCreate(savedInstanceState);\n+        setContentView(R.layout.activity_main);\n+        initWidget();\n+        mNavigator = new Navigator(this);\n+        MainRepository mainRepository =\n+                new MainRepositoryImplement(ServiceGenerator.createService(WeatherService.class));\n+        mPresenter = new MainPresenter(this, mainRepository);\n+    }\n+\n+    @Override\n+    public boolean onCreateOptionsMenu(Menu menu) {\n+        getMenuInflater().inflate(R.menu.menu, menu);\n+        return true;\n+    }\n+\n+    @Override\n+    public boolean onOptionsItemSelected(MenuItem item) {\n+        // Handle item selection\n+        switch (item.getItemId()) {\n+            case R.id.settings:\n+                mNavigator.startActivity(SettingsActivity.class);\n+                return true;\n+            default:\n+                return super.onOptionsItemSelected(item);\n+        }\n+    }\n+\n+    public void initWidget() {\n+        mCurrentLocation = (TextView) findViewById(R.id.text_currentLocation);\n+        mCurrentTemperature = (TextView) findViewById(R.id.text_currentTemperature);\n+        mWindSpeed = (TextView) findViewById(R.id.text_windSpeed);\n+        mHumidityPercent = (TextView) findViewById(R.id.text_humidity_percent);\n+        mUvIndex = (TextView) findViewById(R.id.text_uvIndex);\n+        mWeatherIcon = (ImageView) findViewById(R.id.image_weather_icon);\n+        mLastUpdatedTime = (TextView) findViewById(R.id.text_lastUpdate);\n+    }\n+\n+    public String EpochConvert(long epoch) {","path":"app/src/main/java/com/example/lapnguyen/weather_3/screen/mainscreen/MainActivity.java","position":72,"original_position":72,"commit_id":"58a56d8ed508bac8b49b630e6e7b23740ba12e0a","original_commit_id":"58a56d8ed508bac8b49b630e6e7b23740ba12e0a","user":{"login":"daolq3012","id":20784172,"avatar_url":"https://avatars3.githubusercontent.com/u/20784172?v=3","gravatar_id":"","url":"https://api.github.com/users/daolq3012","html_url":"https://github.com/daolq3012","followers_url":"https://api.github.com/users/daolq3012/followers","following_url":"https://api.github.com/users/daolq3012/following{/other_user}","gists_url":"https://api.github.com/users/daolq3012/gists{/gist_id}","starred_url":"https://api.github.com/users/daolq3012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daolq3012/subscriptions","organizations_url":"https://api.github.com/users/daolq3012/orgs","repos_url":"https://api.github.com/users/daolq3012/repos","events_url":"https://api.github.com/users/daolq3012/events{/privacy}","received_events_url":"https://api.github.com/users/daolq3012/received_events","type":"User","site_admin":false},"body":"ERROR: Method names should start with a lower case letter (e.g. getWidth())","created_at":"2017-06-19T07:16:15Z","updated_at":"2017-06-19T07:16:15Z","html_url":"https://github.com/lapnguyen91/Weather_3/pull/3#discussion_r122634493","pull_request_url":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls/comments/122634493"},"html":{"href":"https://github.com/lapnguyen91/Weather_3/pull/3#discussion_r122634493"},"pull_request":{"href":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls/3","id":125783337,"html_url":"https://github.com/lapnguyen91/Weather_3/pull/3","diff_url":"https://github.com/lapnguyen91/Weather_3/pull/3.diff","patch_url":"https://github.com/lapnguyen91/Weather_3/pull/3.patch","issue_url":"https://api.github.com/repos/lapnguyen91/Weather_3/issues/3","number":3,"state":"open","locked":false,"title":"Process weather data","user":{"login":"lapnguyen91","id":6936192,"avatar_url":"https://avatars3.githubusercontent.com/u/6936192?v=3","gravatar_id":"","url":"https://api.github.com/users/lapnguyen91","html_url":"https://github.com/lapnguyen91","followers_url":"https://api.github.com/users/lapnguyen91/followers","following_url":"https://api.github.com/users/lapnguyen91/following{/other_user}","gists_url":"https://api.github.com/users/lapnguyen91/gists{/gist_id}","starred_url":"https://api.github.com/users/lapnguyen91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lapnguyen91/subscriptions","organizations_url":"https://api.github.com/users/lapnguyen91/orgs","repos_url":"https://api.github.com/users/lapnguyen91/repos","events_url":"https://api.github.com/users/lapnguyen91/events{/privacy}","received_events_url":"https://api.github.com/users/lapnguyen91/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-15T09:50:21Z","updated_at":"2017-06-19T07:16:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"553a7724366518a175bfc41d77734cadcdd63a00","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls/3/commits","review_comments_url":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls/3/comments","review_comment_url":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lapnguyen91/Weather_3/issues/3/comments","statuses_url":"https://api.github.com/repos/lapnguyen91/Weather_3/statuses/58a56d8ed508bac8b49b630e6e7b23740ba12e0a","head":{"label":"lapnguyen91:process_weather_data","ref":"process_weather_data","sha":"58a56d8ed508bac8b49b630e6e7b23740ba12e0a","user":{"login":"lapnguyen91","id":6936192,"avatar_url":"https://avatars3.githubusercontent.com/u/6936192?v=3","gravatar_id":"","url":"https://api.github.com/users/lapnguyen91","html_url":"https://github.com/lapnguyen91","followers_url":"https://api.github.com/users/lapnguyen91/followers","following_url":"https://api.github.com/users/lapnguyen91/following{/other_user}","gists_url":"https://api.github.com/users/lapnguyen91/gists{/gist_id}","starred_url":"https://api.github.com/users/lapnguyen91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lapnguyen91/subscriptions","organizations_url":"https://api.github.com/users/lapnguyen91/orgs","repos_url":"https://api.github.com/users/lapnguyen91/repos","events_url":"https://api.github.com/users/lapnguyen91/events{/privacy}","received_events_url":"https://api.github.com/users/lapnguyen91/received_events","type":"User","site_admin":false},"repo":{"id":94075048,"name":"Weather_3","full_name":"lapnguyen91/Weather_3","owner":{"login":"lapnguyen91","id":6936192,"avatar_url":"https://avatars3.githubusercontent.com/u/6936192?v=3","gravatar_id":"","url":"https://api.github.com/users/lapnguyen91","html_url":"https://github.com/lapnguyen91","followers_url":"https://api.github.com/users/lapnguyen91/followers","following_url":"https://api.github.com/users/lapnguyen91/following{/other_user}","gists_url":"https://api.github.com/users/lapnguyen91/gists{/gist_id}","starred_url":"https://api.github.com/users/lapnguyen91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lapnguyen91/subscriptions","organizations_url":"https://api.github.com/users/lapnguyen91/orgs","repos_url":"https://api.github.com/users/lapnguyen91/repos","events_url":"https://api.github.com/users/lapnguyen91/events{/privacy}","received_events_url":"https://api.github.com/users/lapnguyen91/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lapnguyen91/Weather_3","description":null,"fork":true,"url":"https://api.github.com/repos/lapnguyen91/Weather_3","forks_url":"https://api.github.com/repos/lapnguyen91/Weather_3/forks","keys_url":"https://api.github.com/repos/lapnguyen91/Weather_3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lapnguyen91/Weather_3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lapnguyen91/Weather_3/teams","hooks_url":"https://api.github.com/repos/lapnguyen91/Weather_3/hooks","issue_events_url":"https://api.github.com/repos/lapnguyen91/Weather_3/issues/events{/number}","events_url":"https://api.github.com/repos/lapnguyen91/Weather_3/events","assignees_url":"https://api.github.com/repos/lapnguyen91/Weather_3/assignees{/user}","branches_url":"https://api.github.com/repos/lapnguyen91/Weather_3/branches{/branch}","tags_url":"https://api.github.com/repos/lapnguyen91/Weather_3/tags","blobs_url":"https://api.github.com/repos/lapnguyen91/Weather_3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lapnguyen91/Weather_3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lapnguyen91/Weather_3/git/refs{/sha}","trees_url":"https://api.github.com/repos/lapnguyen91/Weather_3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lapnguyen91/Weather_3/statuses/{sha}","languages_url":"https://api.github.com/repos/lapnguyen91/Weather_3/languages","stargazers_url":"https://api.github.com/repos/lapnguyen91/Weather_3/stargazers","contributors_url":"https://api.github.com/repos/lapnguyen91/Weather_3/contributors","subscribers_url":"https://api.github.com/repos/lapnguyen91/Weather_3/subscribers","subscription_url":"https://api.github.com/repos/lapnguyen91/Weather_3/subscription","commits_url":"https://api.github.com/repos/lapnguyen91/Weather_3/commits{/sha}","git_commits_url":"https://api.github.com/repos/lapnguyen91/Weather_3/git/commits{/sha}","comments_url":"https://api.github.com/repos/lapnguyen91/Weather_3/comments{/number}","issue_comment_url":"https://api.github.com/repos/lapnguyen91/Weather_3/issues/comments{/number}","contents_url":"https://api.github.com/repos/lapnguyen91/Weather_3/contents/{+path}","compare_url":"https://api.github.com/repos/lapnguyen91/Weather_3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lapnguyen91/Weather_3/merges","archive_url":"https://api.github.com/repos/lapnguyen91/Weather_3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lapnguyen91/Weather_3/downloads","issues_url":"https://api.github.com/repos/lapnguyen91/Weather_3/issues{/number}","pulls_url":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls{/number}","milestones_url":"https://api.github.com/repos/lapnguyen91/Weather_3/milestones{/number}","notifications_url":"https://api.github.com/repos/lapnguyen91/Weather_3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lapnguyen91/Weather_3/labels{/name}","releases_url":"https://api.github.com/repos/lapnguyen91/Weather_3/releases{/id}","deployments_url":"https://api.github.com/repos/lapnguyen91/Weather_3/deployments","created_at":"2017-06-12T08:50:33Z","updated_at":"2017-06-08T08:36:06Z","pushed_at":"2017-06-19T07:10:02Z","git_url":"git://github.com/lapnguyen91/Weather_3.git","ssh_url":"git@github.com:lapnguyen91/Weather_3.git","clone_url":"https://github.com/lapnguyen91/Weather_3.git","svn_url":"https://github.com/lapnguyen91/Weather_3","homepage":null,"size":144,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"base":{"label":"lapnguyen91:develop","ref":"develop","sha":"4c353397398d746a70e7e59a462eab5caf22c835","user":{"login":"lapnguyen91","id":6936192,"avatar_url":"https://avatars3.githubusercontent.com/u/6936192?v=3","gravatar_id":"","url":"https://api.github.com/users/lapnguyen91","html_url":"https://github.com/lapnguyen91","followers_url":"https://api.github.com/users/lapnguyen91/followers","following_url":"https://api.github.com/users/lapnguyen91/following{/other_user}","gists_url":"https://api.github.com/users/lapnguyen91/gists{/gist_id}","starred_url":"https://api.github.com/users/lapnguyen91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lapnguyen91/subscriptions","organizations_url":"https://api.github.com/users/lapnguyen91/orgs","repos_url":"https://api.github.com/users/lapnguyen91/repos","events_url":"https://api.github.com/users/lapnguyen91/events{/privacy}","received_events_url":"https://api.github.com/users/lapnguyen91/received_events","type":"User","site_admin":false},"repo":{"id":94075048,"name":"Weather_3","full_name":"lapnguyen91/Weather_3","owner":{"login":"lapnguyen91","id":6936192,"avatar_url":"https://avatars3.githubusercontent.com/u/6936192?v=3","gravatar_id":"","url":"https://api.github.com/users/lapnguyen91","html_url":"https://github.com/lapnguyen91","followers_url":"https://api.github.com/users/lapnguyen91/followers","following_url":"https://api.github.com/users/lapnguyen91/following{/other_user}","gists_url":"https://api.github.com/users/lapnguyen91/gists{/gist_id}","starred_url":"https://api.github.com/users/lapnguyen91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lapnguyen91/subscriptions","organizations_url":"https://api.github.com/users/lapnguyen91/orgs","repos_url":"https://api.github.com/users/lapnguyen91/repos","events_url":"https://api.github.com/users/lapnguyen91/events{/privacy}","received_events_url":"https://api.github.com/users/lapnguyen91/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lapnguyen91/Weather_3","description":null,"fork":true,"url":"https://api.github.com/repos/lapnguyen91/Weather_3","forks_url":"https://api.github.com/repos/lapnguyen91/Weather_3/forks","keys_url":"https://api.github.com/repos/lapnguyen91/Weather_3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lapnguyen91/Weather_3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lapnguyen91/Weather_3/teams","hooks_url":"https://api.github.com/repos/lapnguyen91/Weather_3/hooks","issue_events_url":"https://api.github.com/repos/lapnguyen91/Weather_3/issues/events{/number}","events_url":"https://api.github.com/repos/lapnguyen91/Weather_3/events","assignees_url":"https://api.github.com/repos/lapnguyen91/Weather_3/assignees{/user}","branches_url":"https://api.github.com/repos/lapnguyen91/Weather_3/branches{/branch}","tags_url":"https://api.github.com/repos/lapnguyen91/Weather_3/tags","blobs_url":"https://api.github.com/repos/lapnguyen91/Weather_3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lapnguyen91/Weather_3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lapnguyen91/Weather_3/git/refs{/sha}","trees_url":"https://api.github.com/repos/lapnguyen91/Weather_3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lapnguyen91/Weather_3/statuses/{sha}","languages_url":"https://api.github.com/repos/lapnguyen91/Weather_3/languages","stargazers_url":"https://api.github.com/repos/lapnguyen91/Weather_3/stargazers","contributors_url":"https://api.github.com/repos/lapnguyen91/Weather_3/contributors","subscribers_url":"https://api.github.com/repos/lapnguyen91/Weather_3/subscribers","subscription_url":"https://api.github.com/repos/lapnguyen91/Weather_3/subscription","commits_url":"https://api.github.com/repos/lapnguyen91/Weather_3/commits{/sha}","git_commits_url":"https://api.github.com/repos/lapnguyen91/Weather_3/git/commits{/sha}","comments_url":"https://api.github.com/repos/lapnguyen91/Weather_3/comments{/number}","issue_comment_url":"https://api.github.com/repos/lapnguyen91/Weather_3/issues/comments{/number}","contents_url":"https://api.github.com/repos/lapnguyen91/Weather_3/contents/{+path}","compare_url":"https://api.github.com/repos/lapnguyen91/Weather_3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lapnguyen91/Weather_3/merges","archive_url":"https://api.github.com/repos/lapnguyen91/Weather_3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lapnguyen91/Weather_3/downloads","issues_url":"https://api.github.com/repos/lapnguyen91/Weather_3/issues{/number}","pulls_url":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls{/number}","milestones_url":"https://api.github.com/repos/lapnguyen91/Weather_3/milestones{/number}","notifications_url":"https://api.github.com/repos/lapnguyen91/Weather_3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lapnguyen91/Weather_3/labels{/name}","releases_url":"https://api.github.com/repos/lapnguyen91/Weather_3/releases{/id}","deployments_url":"https://api.github.com/repos/lapnguyen91/Weather_3/deployments","created_at":"2017-06-12T08:50:33Z","updated_at":"2017-06-08T08:36:06Z","pushed_at":"2017-06-19T07:10:02Z","git_url":"git://github.com/lapnguyen91/Weather_3.git","ssh_url":"git@github.com:lapnguyen91/Weather_3.git","clone_url":"https://github.com/lapnguyen91/Weather_3.git","svn_url":"https://github.com/lapnguyen91/Weather_3","homepage":null,"size":144,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls/3"},"html":{"href":"https://github.com/lapnguyen91/Weather_3/pull/3"},"issue":{"href":"https://api.github.com/repos/lapnguyen91/Weather_3/issues/3"},"comments":{"href":"https://api.github.com/repos/lapnguyen91/Weather_3/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lapnguyen91/Weather_3/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/lapnguyen91/Weather_3/statuses/58a56d8ed508bac8b49b630e6e7b23740ba12e0a"}}}}
{"actor":{"display_login":"daolq3012"}}