diff options
author | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-22 09:02:50 +0200 |
---|---|---|
committer | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-22 09:02:50 +0200 |
commit | 0c07b1d1a83ab20b4c753c40ea8048f73b3e5745 (patch) | |
tree | 47db3723c190bdb264a144b500fb6f41b2f1559f /src/mining | |
parent | 4e0fcd499a14cfc621b256f4a28f0cafe22bfc8c (diff) | |
download | TwitterDataAnalytics-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.java | 5 |
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()); } } |