{"action":"created","comment":{"url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls/comments/81901600","pull_request_review_id":2847229,"id":81901600,"diff_hunk":"@@ -162,26 +173,76 @@ public void writeToList(String response, boolean goBack) {\n \n     public void goToDirectory(final String directory) {\n         directoryMap.addLast(directory);\n-        FileStore.callServer(getActivity().getApplicationContext(), directory, new Response.Listener<String>() {\n-            @Override\n-            public void onResponse(String response) {\n-                writeToList(response, false);\n-            }\n-        });\n+//        FileStore.callServer(getActivity().getApplicationContext(), directory, httpClient, new Response.Listener<String>() {\n+//            @Override\n+//            public void onResponse(Response response)  throws IOException {\n+//                final String responseString = response.body().string();\n+//                writeToList(responseString, false);\n+//            }\n+//        });\n+\n+        callServer( directoryMap.getLast(), false);\n+\n     }\n \n     public void goBack() {\n         if (!directoryMap.getLast().equals(\"\")) {\n             directoryMap.removeLast();\n-            FileStore.callServer(getActivity().getApplicationContext(), directoryMap.getLast(), new Response.Listener<String>() {\n-                @Override\n-                public void onResponse(String response) {\n-                    writeToList(response, true);\n-                }\n-            });\n+//            FileStore.callServer(getActivity().getApplicationContext(), directoryMap.getLast(), httpClient , new Response.Listener<String>() {\n+//                @Override\n+//                public void onResponse(Response response)  throws IOException {\n+//                    final String responseString = response.body().string();\n+//                    writeToList(responseString, true);\n+//                }\n+//            });\n+\n+            callServer( directoryMap.getLast(), true);\n+\n         }\n     }\n \n+\n+\n+\n+    public void callServer(final String directory, final Boolean goBack)  {\n+\n+        RequestBody formBody = new FormBody.Builder()\n+                .add(\"dir\", directory)\n+                .add(\"filetypes\", \"[\\\"mp3\\\",\\\"flac\\\",\\\"wav\\\",\\\"ogg\\\"]\")\n+                .build();\n+\n+        Request request = new Request.Builder()\n+                .url(getCurrentServerString() + \"dirparser\")\n+                .post(formBody)\n+                .build();\n+\n+\n+","path":"app/src/main/java/io/mstream/mstream/FileBrowserFragment.java","position":105,"original_position":105,"commit_id":"44293e507af864478fe9f6a61198c6524d70a904","original_commit_id":"44293e507af864478fe9f6a61198c6524d70a904","user":{"login":"firekesti","id":599624,"avatar_url":"https://avatars.githubusercontent.com/u/599624?v=3","gravatar_id":"","url":"https://api.github.com/users/firekesti","html_url":"https://github.com/firekesti","followers_url":"https://api.github.com/users/firekesti/followers","following_url":"https://api.github.com/users/firekesti/following{/other_user}","gists_url":"https://api.github.com/users/firekesti/gists{/gist_id}","starred_url":"https://api.github.com/users/firekesti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firekesti/subscriptions","organizations_url":"https://api.github.com/users/firekesti/orgs","repos_url":"https://api.github.com/users/firekesti/repos","events_url":"https://api.github.com/users/firekesti/events{/privacy}","received_events_url":"https://api.github.com/users/firekesti/received_events","type":"User","site_admin":false},"body":"bro, chill with the newlines already lmfao","created_at":"2016-10-05T05:12:13Z","updated_at":"2016-10-05T05:12:13Z","html_url":"https://github.com/IrosTheBeggar/mstream-android-app/pull/7#discussion_r81901600","pull_request_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls/comments/81901600"},"html":{"href":"https://github.com/IrosTheBeggar/mstream-android-app/pull/7#discussion_r81901600"},"pull_request":{"href":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls/7","id":88016385,"html_url":"https://github.com/IrosTheBeggar/mstream-android-app/pull/7","diff_url":"https://github.com/IrosTheBeggar/mstream-android-app/pull/7.diff","patch_url":"https://github.com/IrosTheBeggar/mstream-android-app/pull/7.patch","issue_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/issues/7","number":7,"state":"open","locked":false,"title":"okhttp working example","user":{"login":"IrosTheBeggar","id":1396994,"avatar_url":"https://avatars.githubusercontent.com/u/1396994?v=3","gravatar_id":"","url":"https://api.github.com/users/IrosTheBeggar","html_url":"https://github.com/IrosTheBeggar","followers_url":"https://api.github.com/users/IrosTheBeggar/followers","following_url":"https://api.github.com/users/IrosTheBeggar/following{/other_user}","gists_url":"https://api.github.com/users/IrosTheBeggar/gists{/gist_id}","starred_url":"https://api.github.com/users/IrosTheBeggar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IrosTheBeggar/subscriptions","organizations_url":"https://api.github.com/users/IrosTheBeggar/orgs","repos_url":"https://api.github.com/users/IrosTheBeggar/repos","events_url":"https://api.github.com/users/IrosTheBeggar/events{/privacy}","received_events_url":"https://api.github.com/users/IrosTheBeggar/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-05T04:56:54Z","updated_at":"2016-10-05T05:12:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3fb92be100da278a8d412348f8281f7073ab0b6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls/7/commits","review_comments_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls/7/comments","review_comment_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/issues/7/comments","statuses_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/statuses/44293e507af864478fe9f6a61198c6524d70a904","head":{"label":"IrosTheBeggar:okhttp-working","ref":"okhttp-working","sha":"44293e507af864478fe9f6a61198c6524d70a904","user":{"login":"IrosTheBeggar","id":1396994,"avatar_url":"https://avatars.githubusercontent.com/u/1396994?v=3","gravatar_id":"","url":"https://api.github.com/users/IrosTheBeggar","html_url":"https://github.com/IrosTheBeggar","followers_url":"https://api.github.com/users/IrosTheBeggar/followers","following_url":"https://api.github.com/users/IrosTheBeggar/following{/other_user}","gists_url":"https://api.github.com/users/IrosTheBeggar/gists{/gist_id}","starred_url":"https://api.github.com/users/IrosTheBeggar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IrosTheBeggar/subscriptions","organizations_url":"https://api.github.com/users/IrosTheBeggar/orgs","repos_url":"https://api.github.com/users/IrosTheBeggar/repos","events_url":"https://api.github.com/users/IrosTheBeggar/events{/privacy}","received_events_url":"https://api.github.com/users/IrosTheBeggar/received_events","type":"User","site_admin":false},"repo":{"id":56995957,"name":"mstream-android-app","full_name":"IrosTheBeggar/mstream-android-app","owner":{"login":"IrosTheBeggar","id":1396994,"avatar_url":"https://avatars.githubusercontent.com/u/1396994?v=3","gravatar_id":"","url":"https://api.github.com/users/IrosTheBeggar","html_url":"https://github.com/IrosTheBeggar","followers_url":"https://api.github.com/users/IrosTheBeggar/followers","following_url":"https://api.github.com/users/IrosTheBeggar/following{/other_user}","gists_url":"https://api.github.com/users/IrosTheBeggar/gists{/gist_id}","starred_url":"https://api.github.com/users/IrosTheBeggar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IrosTheBeggar/subscriptions","organizations_url":"https://api.github.com/users/IrosTheBeggar/orgs","repos_url":"https://api.github.com/users/IrosTheBeggar/repos","events_url":"https://api.github.com/users/IrosTheBeggar/events{/privacy}","received_events_url":"https://api.github.com/users/IrosTheBeggar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/IrosTheBeggar/mstream-android-app","description":"Android client that connect to the mStream server","fork":false,"url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app","forks_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/forks","keys_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/teams","hooks_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/hooks","issue_events_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/issues/events{/number}","events_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/events","assignees_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/assignees{/user}","branches_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/branches{/branch}","tags_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/tags","blobs_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/statuses/{sha}","languages_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/languages","stargazers_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/stargazers","contributors_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/contributors","subscribers_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/subscribers","subscription_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/subscription","commits_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/contents/{+path}","compare_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/merges","archive_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/downloads","issues_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/issues{/number}","pulls_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls{/number}","milestones_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/milestones{/number}","notifications_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/labels{/name}","releases_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/releases{/id}","deployments_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/deployments","created_at":"2016-04-24T21:47:31Z","updated_at":"2016-04-28T18:02:37Z","pushed_at":"2016-10-05T04:56:54Z","git_url":"git://github.com/IrosTheBeggar/mstream-android-app.git","ssh_url":"git@github.com:IrosTheBeggar/mstream-android-app.git","clone_url":"https://github.com/IrosTheBeggar/mstream-android-app.git","svn_url":"https://github.com/IrosTheBeggar/mstream-android-app","homepage":"","size":31732,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"IrosTheBeggar:master","ref":"master","sha":"4518f6644f07b19350c23fc87666cd9e74ae829e","user":{"login":"IrosTheBeggar","id":1396994,"avatar_url":"https://avatars.githubusercontent.com/u/1396994?v=3","gravatar_id":"","url":"https://api.github.com/users/IrosTheBeggar","html_url":"https://github.com/IrosTheBeggar","followers_url":"https://api.github.com/users/IrosTheBeggar/followers","following_url":"https://api.github.com/users/IrosTheBeggar/following{/other_user}","gists_url":"https://api.github.com/users/IrosTheBeggar/gists{/gist_id}","starred_url":"https://api.github.com/users/IrosTheBeggar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IrosTheBeggar/subscriptions","organizations_url":"https://api.github.com/users/IrosTheBeggar/orgs","repos_url":"https://api.github.com/users/IrosTheBeggar/repos","events_url":"https://api.github.com/users/IrosTheBeggar/events{/privacy}","received_events_url":"https://api.github.com/users/IrosTheBeggar/received_events","type":"User","site_admin":false},"repo":{"id":56995957,"name":"mstream-android-app","full_name":"IrosTheBeggar/mstream-android-app","owner":{"login":"IrosTheBeggar","id":1396994,"avatar_url":"https://avatars.githubusercontent.com/u/1396994?v=3","gravatar_id":"","url":"https://api.github.com/users/IrosTheBeggar","html_url":"https://github.com/IrosTheBeggar","followers_url":"https://api.github.com/users/IrosTheBeggar/followers","following_url":"https://api.github.com/users/IrosTheBeggar/following{/other_user}","gists_url":"https://api.github.com/users/IrosTheBeggar/gists{/gist_id}","starred_url":"https://api.github.com/users/IrosTheBeggar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IrosTheBeggar/subscriptions","organizations_url":"https://api.github.com/users/IrosTheBeggar/orgs","repos_url":"https://api.github.com/users/IrosTheBeggar/repos","events_url":"https://api.github.com/users/IrosTheBeggar/events{/privacy}","received_events_url":"https://api.github.com/users/IrosTheBeggar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/IrosTheBeggar/mstream-android-app","description":"Android client that connect to the mStream server","fork":false,"url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app","forks_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/forks","keys_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/teams","hooks_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/hooks","issue_events_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/issues/events{/number}","events_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/events","assignees_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/assignees{/user}","branches_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/branches{/branch}","tags_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/tags","blobs_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/statuses/{sha}","languages_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/languages","stargazers_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/stargazers","contributors_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/contributors","subscribers_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/subscribers","subscription_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/subscription","commits_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/contents/{+path}","compare_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/merges","archive_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/downloads","issues_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/issues{/number}","pulls_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls{/number}","milestones_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/milestones{/number}","notifications_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/labels{/name}","releases_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/releases{/id}","deployments_url":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/deployments","created_at":"2016-04-24T21:47:31Z","updated_at":"2016-04-28T18:02:37Z","pushed_at":"2016-10-05T04:56:54Z","git_url":"git://github.com/IrosTheBeggar/mstream-android-app.git","ssh_url":"git@github.com:IrosTheBeggar/mstream-android-app.git","clone_url":"https://github.com/IrosTheBeggar/mstream-android-app.git","svn_url":"https://github.com/IrosTheBeggar/mstream-android-app","homepage":"","size":31732,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls/7"},"html":{"href":"https://github.com/IrosTheBeggar/mstream-android-app/pull/7"},"issue":{"href":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/issues/7"},"comments":{"href":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/IrosTheBeggar/mstream-android-app/statuses/44293e507af864478fe9f6a61198c6524d70a904"}}}}
{"actor":{"display_login":"firekesti"}}