summaryrefslogtreecommitdiff
path: root/src/mining
diff options
context:
space:
mode:
authorMaurice Laveaux <m.laveaux@student.tue.nl>2014-05-22 09:02:50 +0200
committerMaurice Laveaux <m.laveaux@student.tue.nl>2014-05-22 09:02:50 +0200
commit0c07b1d1a83ab20b4c753c40ea8048f73b3e5745 (patch)
tree47db3723c190bdb264a144b500fb6f41b2f1559f /src/mining
parent4e0fcd499a14cfc621b256f4a28f0cafe22bfc8c (diff)
downloadTwitterDataAnalytics-0c07b1d1a83ab20b4c753c40ea8048f73b3e5745.tar.gz
Changed Request response to a new Response class.
* Response contains the JsonElement, tickrate, reset and leftover data. * Removed getJsonRelaxed, because it was not used elsewhere.
Diffstat (limited to 'src/mining')
-rw-r--r--src/mining/TwitterApi.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mining/TwitterApi.java b/src/mining/TwitterApi.java
index 372aade..8889c2f 100644
--- a/src/mining/TwitterApi.java
+++ b/src/mining/TwitterApi.java
@@ -1,8 +1,9 @@
package mining;
+import io.BearerRequester;
import io.OAuthRequester;
import io.Requester;
-import io.BearerRequester;
+import io.Response;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
@@ -173,7 +174,7 @@ public class TwitterApi {
return this.resource + "?" + URLEncodedUtils.format(params, Charsets.UTF_8);
}
- public JSONObject request() throws IOException {
+ public Response request() throws IOException {
return TwitterApi.this.requester.getJSON(toString());
}
}