{"action":"created","comment":{"url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls/comments/80384394","id":80384394,"diff_hunk":"@@ -0,0 +1,29 @@\n+package com.codefororlando.streettrees.api.deserializer;\n+\n+import com.google.android.gms.maps.model.LatLng;\n+import com.google.gson.JsonArray;\n+import com.google.gson.JsonDeserializationContext;\n+import com.google.gson.JsonDeserializer;\n+import com.google.gson.JsonElement;\n+import com.google.gson.JsonObject;\n+import com.google.gson.JsonParseException;\n+\n+import java.lang.reflect.Type;\n+\n+/**\n+ * Created by johnli on 9/25/16.\n+ */\n+public class LatLngDeserializer implements JsonDeserializer<LatLng> {\n+\n+    @Override\n+    public LatLng deserialize(final JsonElement json, final Type typeOfT, final JsonDeserializationContext context)\n+            throws JsonParseException {\n+\n+        JsonObject jobject = json.getAsJsonObject();\n+        JsonArray jarr = jobject.get(\"coordinates\").getAsJsonArray();\n+        double lng =jarr.get(0).getAsDouble();\n+        double lat =jarr.get(1).getAsDouble();\n+\n+        return new LatLng(lng, lat);","path":"app/src/main/java/com/codefororlando/streettrees/api/deserializer/LatLngDeserializer.java","position":27,"original_position":27,"commit_id":"46a72a0a3f2049d4f9c2cd356c5e4a965e6e6bfe","original_commit_id":"46a72a0a3f2049d4f9c2cd356c5e4a965e6e6bfe","user":{"login":"LondonAtlas","id":1647012,"avatar_url":"https://avatars.githubusercontent.com/u/1647012?v=3","gravatar_id":"","url":"https://api.github.com/users/LondonAtlas","html_url":"https://github.com/LondonAtlas","followers_url":"https://api.github.com/users/LondonAtlas/followers","following_url":"https://api.github.com/users/LondonAtlas/following{/other_user}","gists_url":"https://api.github.com/users/LondonAtlas/gists{/gist_id}","starred_url":"https://api.github.com/users/LondonAtlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LondonAtlas/subscriptions","organizations_url":"https://api.github.com/users/LondonAtlas/orgs","repos_url":"https://api.github.com/users/LondonAtlas/repos","events_url":"https://api.github.com/users/LondonAtlas/events{/privacy}","received_events_url":"https://api.github.com/users/LondonAtlas/received_events","type":"User","site_admin":false},"body":"This is confusing... return object is LatLng, but passed values are in reverse order.","created_at":"2016-09-25T15:11:53Z","updated_at":"2016-09-25T15:17:01Z","html_url":"https://github.com/cforlando/energy-saving-trees-android/pull/13#discussion_r80384394","pull_request_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls/comments/80384394"},"html":{"href":"https://github.com/cforlando/energy-saving-trees-android/pull/13#discussion_r80384394"},"pull_request":{"href":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls/13","id":86652090,"html_url":"https://github.com/cforlando/energy-saving-trees-android/pull/13","diff_url":"https://github.com/cforlando/energy-saving-trees-android/pull/13.diff","patch_url":"https://github.com/cforlando/energy-saving-trees-android/pull/13.patch","issue_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/issues/13","number":13,"state":"open","locked":false,"title":"Feature/impl tree api","user":{"login":"JohnLeeroy","id":2716866,"avatar_url":"https://avatars.githubusercontent.com/u/2716866?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnLeeroy","html_url":"https://github.com/JohnLeeroy","followers_url":"https://api.github.com/users/JohnLeeroy/followers","following_url":"https://api.github.com/users/JohnLeeroy/following{/other_user}","gists_url":"https://api.github.com/users/JohnLeeroy/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnLeeroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnLeeroy/subscriptions","organizations_url":"https://api.github.com/users/JohnLeeroy/orgs","repos_url":"https://api.github.com/users/JohnLeeroy/repos","events_url":"https://api.github.com/users/JohnLeeroy/events{/privacy}","received_events_url":"https://api.github.com/users/JohnLeeroy/received_events","type":"User","site_admin":false},"body":"Resolves #7 ","created_at":"2016-09-25T14:50:50Z","updated_at":"2016-09-25T15:17:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4140ccca6ec6c4b9fecbc634c13bf1c5ac1f144f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls/13/commits","review_comments_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls/13/comments","review_comment_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/issues/13/comments","statuses_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/statuses/46a72a0a3f2049d4f9c2cd356c5e4a965e6e6bfe","head":{"label":"cforlando:feature/impl_tree_api","ref":"feature/impl_tree_api","sha":"46a72a0a3f2049d4f9c2cd356c5e4a965e6e6bfe","user":{"login":"cforlando","id":5225505,"avatar_url":"https://avatars.githubusercontent.com/u/5225505?v=3","gravatar_id":"","url":"https://api.github.com/users/cforlando","html_url":"https://github.com/cforlando","followers_url":"https://api.github.com/users/cforlando/followers","following_url":"https://api.github.com/users/cforlando/following{/other_user}","gists_url":"https://api.github.com/users/cforlando/gists{/gist_id}","starred_url":"https://api.github.com/users/cforlando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cforlando/subscriptions","organizations_url":"https://api.github.com/users/cforlando/orgs","repos_url":"https://api.github.com/users/cforlando/repos","events_url":"https://api.github.com/users/cforlando/events{/privacy}","received_events_url":"https://api.github.com/users/cforlando/received_events","type":"Organization","site_admin":false},"repo":{"id":60414291,"name":"energy-saving-trees-android","full_name":"cforlando/energy-saving-trees-android","owner":{"login":"cforlando","id":5225505,"avatar_url":"https://avatars.githubusercontent.com/u/5225505?v=3","gravatar_id":"","url":"https://api.github.com/users/cforlando","html_url":"https://github.com/cforlando","followers_url":"https://api.github.com/users/cforlando/followers","following_url":"https://api.github.com/users/cforlando/following{/other_user}","gists_url":"https://api.github.com/users/cforlando/gists{/gist_id}","starred_url":"https://api.github.com/users/cforlando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cforlando/subscriptions","organizations_url":"https://api.github.com/users/cforlando/orgs","repos_url":"https://api.github.com/users/cforlando/repos","events_url":"https://api.github.com/users/cforlando/events{/privacy}","received_events_url":"https://api.github.com/users/cforlando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cforlando/energy-saving-trees-android","description":"","fork":false,"url":"https://api.github.com/repos/cforlando/energy-saving-trees-android","forks_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/forks","keys_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/teams","hooks_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/hooks","issue_events_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/issues/events{/number}","events_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/events","assignees_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/assignees{/user}","branches_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/branches{/branch}","tags_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/tags","blobs_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/statuses/{sha}","languages_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/languages","stargazers_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/stargazers","contributors_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/contributors","subscribers_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/subscribers","subscription_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/subscription","commits_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/contents/{+path}","compare_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/merges","archive_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/downloads","issues_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/issues{/number}","pulls_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls{/number}","milestones_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/milestones{/number}","notifications_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/labels{/name}","releases_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/releases{/id}","deployments_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/deployments","created_at":"2016-06-04T14:30:41Z","updated_at":"2016-06-04T15:31:41Z","pushed_at":"2016-09-25T14:51:52Z","git_url":"git://github.com/cforlando/energy-saving-trees-android.git","ssh_url":"git@github.com:cforlando/energy-saving-trees-android.git","clone_url":"https://github.com/cforlando/energy-saving-trees-android.git","svn_url":"https://github.com/cforlando/energy-saving-trees-android","homepage":null,"size":11015,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"cforlando:master","ref":"master","sha":"45aed34e0c0b214364e8858d50a4bcbfd5329c7f","user":{"login":"cforlando","id":5225505,"avatar_url":"https://avatars.githubusercontent.com/u/5225505?v=3","gravatar_id":"","url":"https://api.github.com/users/cforlando","html_url":"https://github.com/cforlando","followers_url":"https://api.github.com/users/cforlando/followers","following_url":"https://api.github.com/users/cforlando/following{/other_user}","gists_url":"https://api.github.com/users/cforlando/gists{/gist_id}","starred_url":"https://api.github.com/users/cforlando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cforlando/subscriptions","organizations_url":"https://api.github.com/users/cforlando/orgs","repos_url":"https://api.github.com/users/cforlando/repos","events_url":"https://api.github.com/users/cforlando/events{/privacy}","received_events_url":"https://api.github.com/users/cforlando/received_events","type":"Organization","site_admin":false},"repo":{"id":60414291,"name":"energy-saving-trees-android","full_name":"cforlando/energy-saving-trees-android","owner":{"login":"cforlando","id":5225505,"avatar_url":"https://avatars.githubusercontent.com/u/5225505?v=3","gravatar_id":"","url":"https://api.github.com/users/cforlando","html_url":"https://github.com/cforlando","followers_url":"https://api.github.com/users/cforlando/followers","following_url":"https://api.github.com/users/cforlando/following{/other_user}","gists_url":"https://api.github.com/users/cforlando/gists{/gist_id}","starred_url":"https://api.github.com/users/cforlando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cforlando/subscriptions","organizations_url":"https://api.github.com/users/cforlando/orgs","repos_url":"https://api.github.com/users/cforlando/repos","events_url":"https://api.github.com/users/cforlando/events{/privacy}","received_events_url":"https://api.github.com/users/cforlando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cforlando/energy-saving-trees-android","description":"","fork":false,"url":"https://api.github.com/repos/cforlando/energy-saving-trees-android","forks_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/forks","keys_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/teams","hooks_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/hooks","issue_events_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/issues/events{/number}","events_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/events","assignees_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/assignees{/user}","branches_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/branches{/branch}","tags_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/tags","blobs_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/statuses/{sha}","languages_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/languages","stargazers_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/stargazers","contributors_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/contributors","subscribers_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/subscribers","subscription_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/subscription","commits_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/contents/{+path}","compare_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/merges","archive_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/downloads","issues_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/issues{/number}","pulls_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls{/number}","milestones_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/milestones{/number}","notifications_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/labels{/name}","releases_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/releases{/id}","deployments_url":"https://api.github.com/repos/cforlando/energy-saving-trees-android/deployments","created_at":"2016-06-04T14:30:41Z","updated_at":"2016-06-04T15:31:41Z","pushed_at":"2016-09-25T14:51:52Z","git_url":"git://github.com/cforlando/energy-saving-trees-android.git","ssh_url":"git@github.com:cforlando/energy-saving-trees-android.git","clone_url":"https://github.com/cforlando/energy-saving-trees-android.git","svn_url":"https://github.com/cforlando/energy-saving-trees-android","homepage":null,"size":11015,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls/13"},"html":{"href":"https://github.com/cforlando/energy-saving-trees-android/pull/13"},"issue":{"href":"https://api.github.com/repos/cforlando/energy-saving-trees-android/issues/13"},"comments":{"href":"https://api.github.com/repos/cforlando/energy-saving-trees-android/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cforlando/energy-saving-trees-android/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/cforlando/energy-saving-trees-android/statuses/46a72a0a3f2049d4f9c2cd356c5e4a965e6e6bfe"}}}}
{"actor":{"display_login":"LondonAtlas"}}