{"action":"created","comment":{"url":"https://api.github.com/repos/vermayash8/TaskNearby/pulls/comments/158832705","pull_request_review_id":85694209,"id":158832705,"diff_hunk":"@@ -0,0 +1,38 @@\n+package app.tasknearby.yashcreations.com.tasknearby.dao;\n+\n+import android.arch.persistence.room.Dao;\n+import android.arch.persistence.room.Delete;\n+import android.arch.persistence.room.Insert;\n+import android.arch.persistence.room.Query;\n+import android.arch.persistence.room.Update;\n+\n+import java.util.List;\n+\n+import app.tasknearby.yashcreations.com.tasknearby.constants.DbConstants;\n+import app.tasknearby.yashcreations.com.tasknearby.models.Location;\n+\n+/**\n+ * Created by shilpi on 26/12/17.\n+ */\n+\n+@Dao\n+public interface LocationDao {\n+\n+    @Insert\n+    public long insertLocation(Location location);\n+\n+    @Insert\n+    public List<Long> insertLocations(List<Location> locationList);\n+\n+    @Update\n+    public void updateLocation(Location location);\n+\n+    @Delete\n+    public void deleteLocation(Location location);\n+\n+    @Query(\"SELECT * FROM \" + DbConstants.LOCATION_TABLE_NAME)\n+    public List<Location> getAllLocations();\n+\n+    @Query(\"SELECT * FROM \" + DbConstants.LOCATION_TABLE_NAME + \" WHERE id = :locationId\")","path":"app/src/main/java/app/tasknearby/yashcreations/com/tasknearby/dao/LocationDao.java","position":36,"original_position":36,"commit_id":"0e500d4fbbd7263d9205f9264202afd0634d4ebe","original_commit_id":"0e500d4fbbd7263d9205f9264202afd0634d4ebe","user":{"login":"Shilpi75","id":19750579,"avatar_url":"https://avatars2.githubusercontent.com/u/19750579?v=4","gravatar_id":"","url":"https://api.github.com/users/Shilpi75","html_url":"https://github.com/Shilpi75","followers_url":"https://api.github.com/users/Shilpi75/followers","following_url":"https://api.github.com/users/Shilpi75/following{/other_user}","gists_url":"https://api.github.com/users/Shilpi75/gists{/gist_id}","starred_url":"https://api.github.com/users/Shilpi75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shilpi75/subscriptions","organizations_url":"https://api.github.com/users/Shilpi75/orgs","repos_url":"https://api.github.com/users/Shilpi75/repos","events_url":"https://api.github.com/users/Shilpi75/events{/privacy}","received_events_url":"https://api.github.com/users/Shilpi75/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2017-12-27T15:58:11Z","updated_at":"2017-12-27T15:58:11Z","html_url":"https://github.com/vermayash8/TaskNearby/pull/3#discussion_r158832705","pull_request_url":"https://api.github.com/repos/vermayash8/TaskNearby/pulls/3","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/vermayash8/TaskNearby/pulls/comments/158832705"},"html":{"href":"https://github.com/vermayash8/TaskNearby/pull/3#discussion_r158832705"},"pull_request":{"href":"https://api.github.com/repos/vermayash8/TaskNearby/pulls/3"}},"in_reply_to_id":158763053},"pull_request":{"url":"https://api.github.com/repos/vermayash8/TaskNearby/pulls/3","id":160192780,"html_url":"https://github.com/vermayash8/TaskNearby/pull/3","diff_url":"https://github.com/vermayash8/TaskNearby/pull/3.diff","patch_url":"https://github.com/vermayash8/TaskNearby/pull/3.patch","issue_url":"https://api.github.com/repos/vermayash8/TaskNearby/issues/3","number":3,"state":"open","locked":false,"title":"Database","user":{"login":"Shilpi75","id":19750579,"avatar_url":"https://avatars2.githubusercontent.com/u/19750579?v=4","gravatar_id":"","url":"https://api.github.com/users/Shilpi75","html_url":"https://github.com/Shilpi75","followers_url":"https://api.github.com/users/Shilpi75/followers","following_url":"https://api.github.com/users/Shilpi75/following{/other_user}","gists_url":"https://api.github.com/users/Shilpi75/gists{/gist_id}","starred_url":"https://api.github.com/users/Shilpi75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shilpi75/subscriptions","organizations_url":"https://api.github.com/users/Shilpi75/orgs","repos_url":"https://api.github.com/users/Shilpi75/repos","events_url":"https://api.github.com/users/Shilpi75/events{/privacy}","received_events_url":"https://api.github.com/users/Shilpi75/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-27T04:34:49Z","updated_at":"2017-12-27T15:58:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93234922564782a1e89002ed9cf69e1088bb50e3","assignee":null,"assignees":[],"requested_reviewers":[{"login":"vermayash8","id":11659854,"avatar_url":"https://avatars0.githubusercontent.com/u/11659854?v=4","gravatar_id":"","url":"https://api.github.com/users/vermayash8","html_url":"https://github.com/vermayash8","followers_url":"https://api.github.com/users/vermayash8/followers","following_url":"https://api.github.com/users/vermayash8/following{/other_user}","gists_url":"https://api.github.com/users/vermayash8/gists{/gist_id}","starred_url":"https://api.github.com/users/vermayash8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vermayash8/subscriptions","organizations_url":"https://api.github.com/users/vermayash8/orgs","repos_url":"https://api.github.com/users/vermayash8/repos","events_url":"https://api.github.com/users/vermayash8/events{/privacy}","received_events_url":"https://api.github.com/users/vermayash8/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/vermayash8/TaskNearby/pulls/3/commits","review_comments_url":"https://api.github.com/repos/vermayash8/TaskNearby/pulls/3/comments","review_comment_url":"https://api.github.com/repos/vermayash8/TaskNearby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vermayash8/TaskNearby/issues/3/comments","statuses_url":"https://api.github.com/repos/vermayash8/TaskNearby/statuses/0e500d4fbbd7263d9205f9264202afd0634d4ebe","head":{"label":"vermayash8:database","ref":"database","sha":"0e500d4fbbd7263d9205f9264202afd0634d4ebe","user":{"login":"vermayash8","id":11659854,"avatar_url":"https://avatars0.githubusercontent.com/u/11659854?v=4","gravatar_id":"","url":"https://api.github.com/users/vermayash8","html_url":"https://github.com/vermayash8","followers_url":"https://api.github.com/users/vermayash8/followers","following_url":"https://api.github.com/users/vermayash8/following{/other_user}","gists_url":"https://api.github.com/users/vermayash8/gists{/gist_id}","starred_url":"https://api.github.com/users/vermayash8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vermayash8/subscriptions","organizations_url":"https://api.github.com/users/vermayash8/orgs","repos_url":"https://api.github.com/users/vermayash8/repos","events_url":"https://api.github.com/users/vermayash8/events{/privacy}","received_events_url":"https://api.github.com/users/vermayash8/received_events","type":"User","site_admin":false},"repo":{"id":41323632,"name":"TaskNearby","full_name":"vermayash8/TaskNearby","owner":{"login":"vermayash8","id":11659854,"avatar_url":"https://avatars0.githubusercontent.com/u/11659854?v=4","gravatar_id":"","url":"https://api.github.com/users/vermayash8","html_url":"https://github.com/vermayash8","followers_url":"https://api.github.com/users/vermayash8/followers","following_url":"https://api.github.com/users/vermayash8/following{/other_user}","gists_url":"https://api.github.com/users/vermayash8/gists{/gist_id}","starred_url":"https://api.github.com/users/vermayash8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vermayash8/subscriptions","organizations_url":"https://api.github.com/users/vermayash8/orgs","repos_url":"https://api.github.com/users/vermayash8/repos","events_url":"https://api.github.com/users/vermayash8/events{/privacy}","received_events_url":"https://api.github.com/users/vermayash8/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vermayash8/TaskNearby","description":"Location Based Reminders App","fork":false,"url":"https://api.github.com/repos/vermayash8/TaskNearby","forks_url":"https://api.github.com/repos/vermayash8/TaskNearby/forks","keys_url":"https://api.github.com/repos/vermayash8/TaskNearby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vermayash8/TaskNearby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vermayash8/TaskNearby/teams","hooks_url":"https://api.github.com/repos/vermayash8/TaskNearby/hooks","issue_events_url":"https://api.github.com/repos/vermayash8/TaskNearby/issues/events{/number}","events_url":"https://api.github.com/repos/vermayash8/TaskNearby/events","assignees_url":"https://api.github.com/repos/vermayash8/TaskNearby/assignees{/user}","branches_url":"https://api.github.com/repos/vermayash8/TaskNearby/branches{/branch}","tags_url":"https://api.github.com/repos/vermayash8/TaskNearby/tags","blobs_url":"https://api.github.com/repos/vermayash8/TaskNearby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vermayash8/TaskNearby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vermayash8/TaskNearby/git/refs{/sha}","trees_url":"https://api.github.com/repos/vermayash8/TaskNearby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vermayash8/TaskNearby/statuses/{sha}","languages_url":"https://api.github.com/repos/vermayash8/TaskNearby/languages","stargazers_url":"https://api.github.com/repos/vermayash8/TaskNearby/stargazers","contributors_url":"https://api.github.com/repos/vermayash8/TaskNearby/contributors","subscribers_url":"https://api.github.com/repos/vermayash8/TaskNearby/subscribers","subscription_url":"https://api.github.com/repos/vermayash8/TaskNearby/subscription","commits_url":"https://api.github.com/repos/vermayash8/TaskNearby/commits{/sha}","git_commits_url":"https://api.github.com/repos/vermayash8/TaskNearby/git/commits{/sha}","comments_url":"https://api.github.com/repos/vermayash8/TaskNearby/comments{/number}","issue_comment_url":"https://api.github.com/repos/vermayash8/TaskNearby/issues/comments{/number}","contents_url":"https://api.github.com/repos/vermayash8/TaskNearby/contents/{+path}","compare_url":"https://api.github.com/repos/vermayash8/TaskNearby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vermayash8/TaskNearby/merges","archive_url":"https://api.github.com/repos/vermayash8/TaskNearby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vermayash8/TaskNearby/downloads","issues_url":"https://api.github.com/repos/vermayash8/TaskNearby/issues{/number}","pulls_url":"https://api.github.com/repos/vermayash8/TaskNearby/pulls{/number}","milestones_url":"https://api.github.com/repos/vermayash8/TaskNearby/milestones{/number}","notifications_url":"https://api.github.com/repos/vermayash8/TaskNearby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vermayash8/TaskNearby/labels{/name}","releases_url":"https://api.github.com/repos/vermayash8/TaskNearby/releases{/id}","deployments_url":"https://api.github.com/repos/vermayash8/TaskNearby/deployments","created_at":"2015-08-24T19:48:27Z","updated_at":"2017-12-19T15:54:05Z","pushed_at":"2017-12-27T04:34:49Z","git_url":"git://github.com/vermayash8/TaskNearby.git","ssh_url":"git@github.com:vermayash8/TaskNearby.git","clone_url":"https://github.com/vermayash8/TaskNearby.git","svn_url":"https://github.com/vermayash8/TaskNearby","homepage":null,"size":760,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"vermayash8:develop","ref":"develop","sha":"53b11755631446eb3ef7388ec193b5950137d4f4","user":{"login":"vermayash8","id":11659854,"avatar_url":"https://avatars0.githubusercontent.com/u/11659854?v=4","gravatar_id":"","url":"https://api.github.com/users/vermayash8","html_url":"https://github.com/vermayash8","followers_url":"https://api.github.com/users/vermayash8/followers","following_url":"https://api.github.com/users/vermayash8/following{/other_user}","gists_url":"https://api.github.com/users/vermayash8/gists{/gist_id}","starred_url":"https://api.github.com/users/vermayash8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vermayash8/subscriptions","organizations_url":"https://api.github.com/users/vermayash8/orgs","repos_url":"https://api.github.com/users/vermayash8/repos","events_url":"https://api.github.com/users/vermayash8/events{/privacy}","received_events_url":"https://api.github.com/users/vermayash8/received_events","type":"User","site_admin":false},"repo":{"id":41323632,"name":"TaskNearby","full_name":"vermayash8/TaskNearby","owner":{"login":"vermayash8","id":11659854,"avatar_url":"https://avatars0.githubusercontent.com/u/11659854?v=4","gravatar_id":"","url":"https://api.github.com/users/vermayash8","html_url":"https://github.com/vermayash8","followers_url":"https://api.github.com/users/vermayash8/followers","following_url":"https://api.github.com/users/vermayash8/following{/other_user}","gists_url":"https://api.github.com/users/vermayash8/gists{/gist_id}","starred_url":"https://api.github.com/users/vermayash8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vermayash8/subscriptions","organizations_url":"https://api.github.com/users/vermayash8/orgs","repos_url":"https://api.github.com/users/vermayash8/repos","events_url":"https://api.github.com/users/vermayash8/events{/privacy}","received_events_url":"https://api.github.com/users/vermayash8/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vermayash8/TaskNearby","description":"Location Based Reminders App","fork":false,"url":"https://api.github.com/repos/vermayash8/TaskNearby","forks_url":"https://api.github.com/repos/vermayash8/TaskNearby/forks","keys_url":"https://api.github.com/repos/vermayash8/TaskNearby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vermayash8/TaskNearby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vermayash8/TaskNearby/teams","hooks_url":"https://api.github.com/repos/vermayash8/TaskNearby/hooks","issue_events_url":"https://api.github.com/repos/vermayash8/TaskNearby/issues/events{/number}","events_url":"https://api.github.com/repos/vermayash8/TaskNearby/events","assignees_url":"https://api.github.com/repos/vermayash8/TaskNearby/assignees{/user}","branches_url":"https://api.github.com/repos/vermayash8/TaskNearby/branches{/branch}","tags_url":"https://api.github.com/repos/vermayash8/TaskNearby/tags","blobs_url":"https://api.github.com/repos/vermayash8/TaskNearby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vermayash8/TaskNearby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vermayash8/TaskNearby/git/refs{/sha}","trees_url":"https://api.github.com/repos/vermayash8/TaskNearby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vermayash8/TaskNearby/statuses/{sha}","languages_url":"https://api.github.com/repos/vermayash8/TaskNearby/languages","stargazers_url":"https://api.github.com/repos/vermayash8/TaskNearby/stargazers","contributors_url":"https://api.github.com/repos/vermayash8/TaskNearby/contributors","subscribers_url":"https://api.github.com/repos/vermayash8/TaskNearby/subscribers","subscription_url":"https://api.github.com/repos/vermayash8/TaskNearby/subscription","commits_url":"https://api.github.com/repos/vermayash8/TaskNearby/commits{/sha}","git_commits_url":"https://api.github.com/repos/vermayash8/TaskNearby/git/commits{/sha}","comments_url":"https://api.github.com/repos/vermayash8/TaskNearby/comments{/number}","issue_comment_url":"https://api.github.com/repos/vermayash8/TaskNearby/issues/comments{/number}","contents_url":"https://api.github.com/repos/vermayash8/TaskNearby/contents/{+path}","compare_url":"https://api.github.com/repos/vermayash8/TaskNearby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vermayash8/TaskNearby/merges","archive_url":"https://api.github.com/repos/vermayash8/TaskNearby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vermayash8/TaskNearby/downloads","issues_url":"https://api.github.com/repos/vermayash8/TaskNearby/issues{/number}","pulls_url":"https://api.github.com/repos/vermayash8/TaskNearby/pulls{/number}","milestones_url":"https://api.github.com/repos/vermayash8/TaskNearby/milestones{/number}","notifications_url":"https://api.github.com/repos/vermayash8/TaskNearby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vermayash8/TaskNearby/labels{/name}","releases_url":"https://api.github.com/repos/vermayash8/TaskNearby/releases{/id}","deployments_url":"https://api.github.com/repos/vermayash8/TaskNearby/deployments","created_at":"2015-08-24T19:48:27Z","updated_at":"2017-12-19T15:54:05Z","pushed_at":"2017-12-27T04:34:49Z","git_url":"git://github.com/vermayash8/TaskNearby.git","ssh_url":"git@github.com:vermayash8/TaskNearby.git","clone_url":"https://github.com/vermayash8/TaskNearby.git","svn_url":"https://github.com/vermayash8/TaskNearby","homepage":null,"size":760,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vermayash8/TaskNearby/pulls/3"},"html":{"href":"https://github.com/vermayash8/TaskNearby/pull/3"},"issue":{"href":"https://api.github.com/repos/vermayash8/TaskNearby/issues/3"},"comments":{"href":"https://api.github.com/repos/vermayash8/TaskNearby/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/vermayash8/TaskNearby/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/vermayash8/TaskNearby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vermayash8/TaskNearby/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/vermayash8/TaskNearby/statuses/0e500d4fbbd7263d9205f9264202afd0634d4ebe"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Shilpi75"}}