{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments/68497562","id":68497562,"diff_hunk":"@@ -0,0 +1,56 @@\n+package org.fossasia.openevent.api.processor;\n+\n+import android.util.Log;\n+\n+import org.fossasia.openevent.OpenEventApp;\n+import org.fossasia.openevent.api.protocol.EventDatesResponseList;\n+import org.fossasia.openevent.data.EventDates;\n+import org.fossasia.openevent.dbutils.DbContract;\n+import org.fossasia.openevent.dbutils.DbSingleton;\n+import org.fossasia.openevent.events.MicrolocationDownloadEvent;\n+import org.fossasia.openevent.utils.CommonTaskLoop;\n+\n+import java.util.ArrayList;\n+\n+import retrofit2.Call;\n+import retrofit2.Callback;\n+import retrofit2.Response;\n+\n+/**\n+ * Created by Manan Wason on 18/06/16.\n+ */\n+public class EventDatesListResponseProcessor implements Callback<EventDatesResponseList> {\n+    private static final String TAG = \"EventDatesListProcessor\";\n+\n+    ArrayList<String> queries = new ArrayList<>();\n+\n+    @Override\n+    public void onResponse(Call<EventDatesResponseList> call, final Response<EventDatesResponseList> response) {\n+        if (response.isSuccessful()) {\n+            CommonTaskLoop.getInstance().post(new Runnable() {\n+                @Override\n+                public void run() {\n+                    for (EventDates eventDates : response.body().event) {\n+                        String query = eventDates.generateSql();\n+                        queries.add(query);\n+                        Log.d(TAG, query);\n+                    }\n+                    DbSingleton dbSingleton = DbSingleton.getInstance();\n+\n+                    dbSingleton.clearDatabase(DbContract.Microlocation.TABLE_NAME);\n+                    dbSingleton.insertQueries(queries);\n+\n+                    OpenEventApp.postEventOnUIThread(new MicrolocationDownloadEvent(true));\n+                }\n+            });\n+        } else {\n+            OpenEventApp.getEventBus().post(new MicrolocationDownloadEvent(false));\n+        }\n+\n+    }\n+\n+    @Override\n+    public void onFailure(Call<EventDatesResponseList> call, Throwable t) {","path":"android/app/src/main/java/org/fossasia/openevent/api/processor/EventDatesListResponseProcessor.java","position":53,"original_position":53,"commit_id":"fc8c9cd16a3c905ee0aba62ea53f0df351d6c201","original_commit_id":"fc8c9cd16a3c905ee0aba62ea53f0df351d6c201","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Document empty method body](https://www.codacy.com/app/dev_19/open-event-android/file/2842485592/issues/source?bid=3371402&fileBranchId=3371410#l53)","created_at":"2016-06-26T04:49:38Z","updated_at":"2016-06-26T04:49:38Z","html_url":"https://github.com/fossasia/open-event-android/pull/419#discussion_r68497562","pull_request_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/419","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments/68497562"},"html":{"href":"https://github.com/fossasia/open-event-android/pull/419#discussion_r68497562"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/419"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-android/pulls/419","id":74484678,"html_url":"https://github.com/fossasia/open-event-android/pull/419","diff_url":"https://github.com/fossasia/open-event-android/pull/419.diff","patch_url":"https://github.com/fossasia/open-event-android/pull/419.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-android/issues/419","number":419,"state":"open","locked":false,"title":"[DO NOT MERGE] Schedule Completed","user":{"login":"mananwason","id":10570249,"avatar_url":"https://avatars.githubusercontent.com/u/10570249?v=3","gravatar_id":"","url":"https://api.github.com/users/mananwason","html_url":"https://github.com/mananwason","followers_url":"https://api.github.com/users/mananwason/followers","following_url":"https://api.github.com/users/mananwason/following{/other_user}","gists_url":"https://api.github.com/users/mananwason/gists{/gist_id}","starred_url":"https://api.github.com/users/mananwason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mananwason/subscriptions","organizations_url":"https://api.github.com/users/mananwason/orgs","repos_url":"https://api.github.com/users/mananwason/repos","events_url":"https://api.github.com/users/mananwason/events{/privacy}","received_events_url":"https://api.github.com/users/mananwason/received_events","type":"User","site_admin":false},"body":"This commit adds the schedule functionality but this adds a lot of overhead on the app since the data has to be sorted on the app. I have to test this for bugs due to the extra overhead, if the overhead becomes too much, we would have to move the filtering part on the server","created_at":"2016-06-20T17:52:27Z","updated_at":"2016-06-26T04:49:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8682da60d0bf6ded406b65e816c144d5feaf53a3","assignee":{"login":"mananwason","id":10570249,"avatar_url":"https://avatars.githubusercontent.com/u/10570249?v=3","gravatar_id":"","url":"https://api.github.com/users/mananwason","html_url":"https://github.com/mananwason","followers_url":"https://api.github.com/users/mananwason/followers","following_url":"https://api.github.com/users/mananwason/following{/other_user}","gists_url":"https://api.github.com/users/mananwason/gists{/gist_id}","starred_url":"https://api.github.com/users/mananwason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mananwason/subscriptions","organizations_url":"https://api.github.com/users/mananwason/orgs","repos_url":"https://api.github.com/users/mananwason/repos","events_url":"https://api.github.com/users/mananwason/events{/privacy}","received_events_url":"https://api.github.com/users/mananwason/received_events","type":"User","site_admin":false},"assignees":[{"login":"mananwason","id":10570249,"avatar_url":"https://avatars.githubusercontent.com/u/10570249?v=3","gravatar_id":"","url":"https://api.github.com/users/mananwason","html_url":"https://github.com/mananwason","followers_url":"https://api.github.com/users/mananwason/followers","following_url":"https://api.github.com/users/mananwason/following{/other_user}","gists_url":"https://api.github.com/users/mananwason/gists{/gist_id}","starred_url":"https://api.github.com/users/mananwason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mananwason/subscriptions","organizations_url":"https://api.github.com/users/mananwason/orgs","repos_url":"https://api.github.com/users/mananwason/repos","events_url":"https://api.github.com/users/mananwason/events{/privacy}","received_events_url":"https://api.github.com/users/mananwason/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/fossasia/open-event-android/milestones/13","html_url":"https://github.com/fossasia/open-event-android/milestones/GSOC%202016:%20Milestone%206","labels_url":"https://api.github.com/repos/fossasia/open-event-android/milestones/13/labels","id":1771234,"number":13,"title":"GSOC 2016: Milestone 6","description":"","creator":{"login":"championswimmer","id":1327050,"avatar_url":"https://avatars.githubusercontent.com/u/1327050?v=3","gravatar_id":"","url":"https://api.github.com/users/championswimmer","html_url":"https://github.com/championswimmer","followers_url":"https://api.github.com/users/championswimmer/followers","following_url":"https://api.github.com/users/championswimmer/following{/other_user}","gists_url":"https://api.github.com/users/championswimmer/gists{/gist_id}","starred_url":"https://api.github.com/users/championswimmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/championswimmer/subscriptions","organizations_url":"https://api.github.com/users/championswimmer/orgs","repos_url":"https://api.github.com/users/championswimmer/repos","events_url":"https://api.github.com/users/championswimmer/events{/privacy}","received_events_url":"https://api.github.com/users/championswimmer/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":6,"state":"open","created_at":"2016-05-17T09:56:55Z","updated_at":"2016-06-25T16:51:37Z","due_on":"2016-06-25T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/419/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/419/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/issues/419/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-android/statuses/fc8c9cd16a3c905ee0aba62ea53f0df351d6c201","head":{"label":"fossasia:sched","ref":"sched","sha":"fc8c9cd16a3c905ee0aba62ea53f0df351d6c201","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35269607,"name":"open-event-android","full_name":"fossasia/open-event-android","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-android","description":"The Open Event Android Client","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-android","forks_url":"https://api.github.com/repos/fossasia/open-event-android/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-android/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-android/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-android/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-android/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-android/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-android/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-android/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-android/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-android/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-android/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-android/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-android/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-android/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-android/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-android/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-android/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-android/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-android/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-android/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-android/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-android/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-android/deployments","created_at":"2015-05-08T09:04:11Z","updated_at":"2016-06-23T11:26:08Z","pushed_at":"2016-06-26T04:47:47Z","git_url":"git://github.com/fossasia/open-event-android.git","ssh_url":"git@github.com:fossasia/open-event-android.git","clone_url":"https://github.com/fossasia/open-event-android.git","svn_url":"https://github.com/fossasia/open-event-android","homepage":null,"size":20588,"stargazers_count":46,"watchers_count":46,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":84,"mirror_url":null,"open_issues_count":33,"forks":84,"open_issues":33,"watchers":46,"default_branch":"master"}},"base":{"label":"fossasia:master","ref":"master","sha":"54277624140493148f1728df81e4dfbe7d33309c","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35269607,"name":"open-event-android","full_name":"fossasia/open-event-android","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-android","description":"The Open Event Android Client","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-android","forks_url":"https://api.github.com/repos/fossasia/open-event-android/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-android/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-android/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-android/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-android/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-android/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-android/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-android/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-android/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-android/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-android/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-android/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-android/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-android/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-android/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-android/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-android/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-android/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-android/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-android/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-android/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-android/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-android/deployments","created_at":"2015-05-08T09:04:11Z","updated_at":"2016-06-23T11:26:08Z","pushed_at":"2016-06-26T04:47:47Z","git_url":"git://github.com/fossasia/open-event-android.git","ssh_url":"git@github.com:fossasia/open-event-android.git","clone_url":"https://github.com/fossasia/open-event-android.git","svn_url":"https://github.com/fossasia/open-event-android","homepage":null,"size":20588,"stargazers_count":46,"watchers_count":46,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":84,"mirror_url":null,"open_issues_count":33,"forks":84,"open_issues":33,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/419"},"html":{"href":"https://github.com/fossasia/open-event-android/pull/419"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-android/issues/419"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-android/issues/419/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/419/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/419/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-android/statuses/fc8c9cd16a3c905ee0aba62ea53f0df351d6c201"}}}}
{"actor":{"display_login":"codacy-bot"}}