Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'master' of git://github.com/yusuke/twitter4j

  • Loading branch information...
commit fa4131458742e3b99823258c06e21c5c7784a6e7 2 parents 6537262 + 7a6084e
Yusuke Yamamoto authored

Showing 65 changed files with 855 additions and 1,234 deletions. Show diff stats Hide diff stats

  1. +1 0  .gitignore
  2. +1 2  package.sh
  3. +3 1 readme.txt
  4. +3 2 twitter4j-appengine/src/main/java/twitter4j/internal/http/alternative/AppEngineHttpResponseImpl.java
  5. +0 233 twitter4j-async/src/main/java/twitter4j/AsyncTwitterImpl.java
  6. +0 14 twitter4j-async/src/main/java/twitter4j/TwitterAdapter.java
  7. +0 20 twitter4j-async/src/main/java/twitter4j/TwitterListener.java
  8. +0 14 twitter4j-async/src/main/java/twitter4j/TwitterMethod.java
  9. +0 38 twitter4j-async/src/main/java/twitter4j/api/ListMembersMethodsAsync.java
  10. +0 38 twitter4j-async/src/main/java/twitter4j/api/ListMethodsAsync.java
  11. +0 50 twitter4j-async/src/main/java/twitter4j/api/ListSubscribersMethodsAsync.java
  12. +0 28 twitter4j-async/src/main/java/twitter4j/api/TimelineMethodsAsync.java
  13. +0 70 twitter4j-async/src/main/java/twitter4j/api/UserMethodsAsync.java
  14. +0 38 twitter4j-async/src/test/java/twitter4j/AsyncTwitterTest.java
  15. +7 1 twitter4j-core/pom.xml
  16. +5 0 twitter4j-core/src/main/java/twitter4j/GeoLocation.java
  17. +1 2  twitter4j-core/src/main/java/twitter4j/Status.java
  18. +24 1 twitter4j-core/src/main/java/twitter4j/Tweet.java
  19. +5 6 twitter4j-core/src/main/java/twitter4j/TwitterAPIMonitor.java
  20. +0 167 twitter4j-core/src/main/java/twitter4j/TwitterImpl.java
  21. +73 0 twitter4j-core/src/main/java/twitter4j/Twt.java
  22. +0 49 twitter4j-core/src/main/java/twitter4j/api/ListMembersMethods.java
  23. +0 47 twitter4j-core/src/main/java/twitter4j/api/ListMethods.java
  24. +0 63 twitter4j-core/src/main/java/twitter4j/api/ListSubscribersMethods.java
  25. +0 35 twitter4j-core/src/main/java/twitter4j/api/TimelineMethods.java
  26. +0 88 twitter4j-core/src/main/java/twitter4j/api/UserMethods.java
  27. +2 2 twitter4j-core/src/main/java/twitter4j/conf/ConfigurationBase.java
  28. +1 1  twitter4j-core/src/main/java/twitter4j/internal/http/HttpClientImpl.java
  29. +6 0 twitter4j-core/src/main/java/twitter4j/internal/http/HttpResponse.java
  30. +1 1  twitter4j-core/src/main/java/twitter4j/internal/http/HttpResponseImpl.java
  31. +47 0 twitter4j-core/src/main/java/twitter4j/internal/http/StreamingGZIPInputStream.java
  32. +12 0 twitter4j-core/src/main/java/twitter4j/internal/json/HashtagEntityJSONImpl.java
  33. +0 3  twitter4j-core/src/main/java/twitter4j/internal/json/IDsJSONImpl.java
  34. +5 0 twitter4j-core/src/main/java/twitter4j/internal/json/MediaEntityJSONImpl.java
  35. +5 0 twitter4j-core/src/main/java/twitter4j/internal/json/PlaceJSONImpl.java
  36. +5 0 twitter4j-core/src/main/java/twitter4j/internal/json/StatusJSONImpl.java
  37. +34 1 twitter4j-core/src/main/java/twitter4j/internal/json/TweetJSONImpl.java
  38. +27 0 twitter4j-core/src/main/java/twitter4j/internal/json/URLEntityJSONImpl.java
  39. +5 0 twitter4j-core/src/main/java/twitter4j/internal/json/UserJSONImpl.java
  40. +14 0 twitter4j-core/src/main/java/twitter4j/internal/json/UserMentionEntityJSONImpl.java
  41. +28 0 twitter4j-core/src/main/java/twitter4j/internal/json/z_T4JInternalJSONImplFactory.java
  42. +1 1  twitter4j-core/src/test/java/twitter4j/FavoriteMethodsTest.java
  43. +1 1  twitter4j-core/src/test/java/twitter4j/MBeansIntegrationTest.java
  44. +4 2 twitter4j-core/src/test/java/twitter4j/SearchAPITest.java
  45. +2 2 twitter4j-core/src/test/java/twitter4j/StatusMethodsTest.java
  46. +0 11 twitter4j-core/src/test/java/twitter4j/TimelineMethodsTest.java
  47. +1 16 twitter4j-core/src/test/java/twitter4j/TwitterTest.java
  48. +45 0 twitter4j-core/src/test/java/twitter4j/internal/KryoSerializationTest.java
  49. +5 0 twitter4j-core/src/test/java/twitter4j/internal/util/StringUtilTest.java
  50. +0 9 twitter4j-examples/bin/timeline/getFriendsTimeline.cmd
  51. +0 6 twitter4j-examples/bin/timeline/getFriendsTimeline.sh
  52. +0 9 twitter4j-examples/bin/timeline/getPublicTimeline.cmd
  53. +0 6 twitter4j-examples/bin/timeline/getPublicTimeline.sh
  54. +4 2 twitter4j-examples/bin/twitter4j.properties
  55. +1 1  twitter4j-examples/src/main/java/twitter4j/examples/json/SaveRawJSON.java
  56. +0 53 twitter4j-examples/src/main/java/twitter4j/examples/timeline/GetFriendsTimeline.java
  57. +0 53 twitter4j-examples/src/main/java/twitter4j/examples/timeline/GetPublicTimeline.java
  58. +1 1  twitter4j-media-support/src/test/resources/twitter4j.properties-template
  59. +2 2 twitter4j-stream/src/main/java/twitter4j/AbstractStreamImplementation.java
  60. +142 0 twitter4j-stream/src/main/java/twitter4j/ControlStreamInfo.java
  61. +23 6 twitter4j-stream/src/main/java/twitter4j/SiteStreamsImpl.java
  62. +271 0 twitter4j-stream/src/main/java/twitter4j/StreamController.java
  63. +1 1  twitter4j-stream/src/main/java/twitter4j/TwitterStream.java
  64. +12 9 twitter4j-stream/src/main/java/twitter4j/TwitterStreamImpl.java
  65. +24 28 twitter4j-stream/src/test/java/twitter4j/SiteStreamsTest.java
1  .gitignore
@@ -29,3 +29,4 @@ atlassian-ide-plugin.xml
29 29 *.iml
30 30 *.ipr
31 31 *.iws
  32 +.idea/*
3  package.sh
... ... @@ -1,8 +1,7 @@
1 1 #!/bin/sh
2 2 LANG=C
3 3
4   -export HASH=`git log|head -n 1|sed "s/^commit //g"`
5   -
  4 +#export HASH=`git log|head -n 1|sed "s/^commit //g"`
6 5 sed -i '' "s/<url>http:\/\/oss.sonatype.org\/service\/local\/staging\/deploy\/maven2\//<url>file:\/Users\/yusukey\/maven2\//g" pom.xml
7 6 sed -i '' "s/<url>http:\/\/oss.sonatype.org\/service\/local\/staging\/deploy\/maven2\//<url>file:\/Users\/yusukey\/maven2\//g" twitter4j-core/pom.xml
8 7 sed -i '' "s/<url>http:\/\/oss.sonatype.org\/service\/local\/staging\/deploy\/maven2\//<url>file:\/Users\/yusukey\/maven2\//g" twitter4j-appengine/pom.xml
4 readme.txt
... ... @@ -1,4 +1,4 @@
1   -Twittetr4J is a Twitter Aw binding library for the Java language licensed under Apache License 2.0.
  1 +Twitter4J is a Twitter API binding library for the Java language licensed under Apache License 2.0.
2 2
3 3 Twitter4J includes software from JSON.org to parse JSON response from the Twitter API. You can see the license term at http://www.JSON.org/license.html
4 4
@@ -16,6 +16,7 @@ twitter4j-stream - Streaming API support : depending on twitter4j-core and twitt
16 16 Contributors
17 17 ------------
18 18 Adam Samet <asamet at twitter.com> @damnitsamet
  19 +Adrian Petrescu <apetresc at gmail.com> @apetresc
19 20 Alan Gutierrez <alan at blogometer.com>
20 21 Alessandro Bahgat <ale.bahgat at gmail.com> @abahgat
21 22 Anton Evane <antonevane at gmail.com> @anton_evane
@@ -26,6 +27,7 @@ Cole Wen <wennnnke at gmail.com> @Pigwen
26 27 Dan Checkoway <dcheckoway at gmail.com>
27 28 Dong Wang <dong at twitter.com> @dongwang218
28 29 Eric Jensen <ej at twitter.com> @ej
  30 +Fiaz Hossain <fiaz at twitter.com> @fiazhossain
29 31 Hitoshi Kunimatsu <hkhumanoid at gmail.com>
30 32 Jacob S. Hoffman-Andrews <jsha at twitter.com> @j4cob
31 33 Jenny Loomis <jenny at rockmelt.com>
5 twitter4j-appengine/src/main/java/twitter4j/internal/http/alternative/AppEngineHttpResponseImpl.java
@@ -37,6 +37,7 @@
37 37 import java.util.List;
38 38 import java.util.Map;
39 39 import java.util.TreeMap;
  40 +import java.util.Locale;
40 41 import java.util.concurrent.ExecutionException;
41 42 import java.util.concurrent.Future;
42 43 import java.util.zip.GZIPInputStream;
@@ -161,11 +162,11 @@ private void ensureResponseEvaluated() {
161 162 statusCode = r.getResponseCode();
162 163 headers = new HashMap<String, String>();
163 164 for (HTTPHeader h : r.getHeaders()) {
164   - headers.put(h.getName(), h.getValue());
  165 + headers.put(h.getName().toLowerCase(Locale.ENGLISH), h.getValue());
165 166 }
166 167 byte[] content = r.getContent();
167 168 is = new ByteArrayInputStream(content);
168   - if ("gzip".equals(headers.get("Content-Encoding"))) {
  169 + if ("gzip".equals(headers.get("content-encoding"))) {
169 170 // the response is gzipped
170 171 try {
171 172 is = new GZIPInputStream(is);
233 twitter4j-async/src/main/java/twitter4j/AsyncTwitterImpl.java
@@ -154,23 +154,6 @@ public void invoke(List<TwitterListener> listeners) throws
154 154 /**
155 155 * {@inheritDoc}
156 156 */
157   - public void getPublicTimeline() {
158   - getDispatcher().invokeLater(new AsyncTask(PUBLIC_TIMELINE, listeners) {
159   - public void invoke(List<TwitterListener> listeners) throws TwitterException {
160   - ResponseList<Status> statuses = twitter.getPublicTimeline();
161   - for (TwitterListener listener : listeners) {
162   - try {
163   - listener.gotPublicTimeline(statuses);
164   - } catch (Exception ignore) {
165   - }
166   - }
167   - }
168   - });
169   - }
170   -
171   - /**
172   - * {@inheritDoc}
173   - */
174 157 public void getHomeTimeline() {
175 158 getDispatcher().invokeLater(new AsyncTask(HOME_TIMELINE, listeners) {
176 159 public void invoke(List<TwitterListener> listeners) throws TwitterException {
@@ -205,40 +188,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
205 188 /**
206 189 * {@inheritDoc}
207 190 */
208   - public void getFriendsTimeline() {
209   - getDispatcher().invokeLater(new AsyncTask(FRIENDS_TIMELINE, listeners) {
210   - public void invoke(List<TwitterListener> listeners) throws TwitterException {
211   - ResponseList<Status> statuses = twitter.getFriendsTimeline();
212   - for (TwitterListener listener : listeners) {
213   - try {
214   - listener.gotFriendsTimeline(statuses);
215   - } catch (Exception ignore) {
216   - }
217   - }
218   - }
219   - });
220   - }
221   -
222   - /**
223   - * {@inheritDoc}
224   - */
225   - public void getFriendsTimeline(final Paging paging) {
226   - getDispatcher().invokeLater(new AsyncTask(FRIENDS_TIMELINE, listeners) {
227   - public void invoke(List<TwitterListener> listeners) throws TwitterException {
228   - ResponseList<Status> statuses = twitter.getFriendsTimeline(paging);
229   - for (TwitterListener listener : listeners) {
230   - try {
231   - listener.gotFriendsTimeline(statuses);
232   - } catch (Exception ignore) {
233   - }
234   - }
235   - }
236   - });
237   - }
238   -
239   - /**
240   - * {@inheritDoc}
241   - */
242 191 public void getUserTimeline(final String screenName, final Paging paging) {
243 192 getDispatcher().invokeLater(new AsyncTask(USER_TIMELINE, listeners) {
244 193 public void invoke(List<TwitterListener> listeners)
@@ -882,108 +831,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
882 831 });
883 832 }
884 833
885   - /**
886   - * {@inheritDoc}
887   - */
888   - public void getFriendsStatuses(final long cursor) {
889   - getDispatcher().invokeLater(new AsyncTask(FRIENDS_STATUSES, listeners) {
890   - public void invoke(List<TwitterListener> listeners) throws TwitterException {
891   - PagableResponseList<User> users = twitter.getFriendsStatuses(cursor);
892   - for (TwitterListener listener : listeners) {
893   - try {
894   - listener.gotFriendsStatuses(users);
895   - } catch (Exception ignore) {
896   - }
897   - }
898   - }
899   - });
900   - }
901   -
902   - /**
903   - * {@inheritDoc}
904   - */
905   - public void getFriendsStatuses(final String screenName, final long cursor) {
906   - getDispatcher().invokeLater(new AsyncTask(FRIENDS_STATUSES, listeners) {
907   - public void invoke(List<TwitterListener> listeners) throws TwitterException {
908   - PagableResponseList<User> users = twitter.getFriendsStatuses(screenName, cursor);
909   - for (TwitterListener listener : listeners) {
910   - try {
911   - listener.gotFriendsStatuses(users);
912   - } catch (Exception ignore) {
913   - }
914   - }
915   - }
916   - });
917   - }
918   -
919   - /**
920   - * {@inheritDoc}
921   - */
922   - public void getFriendsStatuses(final long userId, final long cursor) {
923   - getDispatcher().invokeLater(new AsyncTask(FRIENDS_STATUSES, listeners) {
924   - public void invoke(List<TwitterListener> listeners) throws TwitterException {
925   - PagableResponseList<User> users = twitter.getFriendsStatuses(userId, cursor);
926   - for (TwitterListener listener : listeners) {
927   - try {
928   - listener.gotFriendsStatuses(users);
929   - } catch (Exception ignore) {
930   - }
931   - }
932   - }
933   - });
934   - }
935   -
936   - /**
937   - * {@inheritDoc}
938   - */
939   - public void getFollowersStatuses(final long cursor) {
940   - getDispatcher().invokeLater(new AsyncTask(FOLLOWERS_STATUSES, listeners) {
941   - public void invoke(List<TwitterListener> listeners) throws TwitterException {
942   - PagableResponseList<User> users = twitter.getFollowersStatuses(cursor);
943   - for (TwitterListener listener : listeners) {
944   - try {
945   - listener.gotFollowersStatuses(users);
946   - } catch (Exception ignore) {
947   - }
948   - }
949   - }
950   - });
951   - }
952   -
953   - /**
954   - * {@inheritDoc}
955   - */
956   - public void getFollowersStatuses(final String screenName, final long cursor) {
957   - getDispatcher().invokeLater(new AsyncTask(FOLLOWERS_STATUSES, listeners) {
958   - public void invoke(List<TwitterListener> listeners) throws TwitterException {
959   - PagableResponseList<User> users = twitter.getFollowersStatuses(screenName, cursor);
960   - for (TwitterListener listener : listeners) {
961   - try {
962   - listener.gotFollowersStatuses(users);
963   - } catch (Exception ignore) {
964   - }
965   - }
966   - }
967   - });
968   - }
969   -
970   - /**
971   - * {@inheritDoc}
972   - */
973   - public void getFollowersStatuses(final long userId, final long cursor) {
974   - getDispatcher().invokeLater(new AsyncTask(FOLLOWERS_STATUSES, listeners) {
975   - public void invoke(List<TwitterListener> listeners) throws TwitterException {
976   - PagableResponseList<User> users = twitter.getFollowersStatuses(userId, cursor);
977   - for (TwitterListener listener : listeners) {
978   - try {
979   - listener.gotFollowersStatuses(users);
980   - } catch (Exception ignore) {
981   - }
982   - }
983   - }
984   - });
985   - }
986   -
987 834 /*List Methods*/
988 835
989 836 /**
@@ -1057,13 +904,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
1057 904 /**
1058 905 * {@inheritDoc}
1059 906 */
1060   - public void showUserList(final String listOwnerScreenName, final int listId) {
1061   - showUserList(listId);
1062   - }
1063   -
1064   - /**
1065   - * {@inheritDoc}
1066   - */
1067 907 public void showUserList(final int listId) {
1068 908 getDispatcher().invokeLater(new AsyncTask(UPDATE_USER_LIST, listeners) {
1069 909 public void invoke(List<TwitterListener> listeners) throws TwitterException {
@@ -1098,20 +938,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
1098 938 /**
1099 939 * {@inheritDoc}
1100 940 */
1101   - public void getUserListStatuses(final String listOwnerScreenName, final int id, final Paging paging) {
1102   - getUserListStatuses(id, paging);
1103   - }
1104   -
1105   - /**
1106   - * {@inheritDoc}
1107   - */
1108   - public void getUserListStatuses(final long listOwnerId, final int id, final Paging paging) {
1109   - getUserListStatuses(id, paging);
1110   - }
1111   -
1112   - /**
1113   - * {@inheritDoc}
1114   - */
1115 941 public void getUserListStatuses(final int listId, final Paging paging) {
1116 942 getDispatcher().invokeLater(new AsyncTask(USER_LIST_STATUSES, listeners) {
1117 943 public void invoke(List<TwitterListener> listeners) throws TwitterException {
@@ -1247,30 +1073,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
1247 1073 /**
1248 1074 * {@inheritDoc}
1249 1075 */
1250   - public void getUserListMembers(final String listOwnerScreenName, final int listId, final long cursor) {
1251   - getDispatcher().invokeLater(new AsyncTask(LIST_MEMBERS, listeners) {
1252   - public void invoke(List<TwitterListener> listeners) throws TwitterException {
1253   - PagableResponseList<User> users = twitter.getUserListMembers(listOwnerScreenName, listId, cursor);
1254   - for (TwitterListener listener : listeners) {
1255   - try {
1256   - listener.gotUserListMembers(users);
1257   - } catch (Exception ignore) {
1258   - }
1259   - }
1260   - }
1261   - });
1262   - }
1263   -
1264   - /**
1265   - * {@inheritDoc}
1266   - */
1267   - public void getUserListMembers(final long listOwnerId, final int listId, final long cursor) {
1268   - getUserListMembers(listId, cursor);
1269   - }
1270   -
1271   - /**
1272   - * {@inheritDoc}
1273   - */
1274 1076 public void getUserListMembers(final int listId, final long cursor) {
1275 1077 getDispatcher().invokeLater(new AsyncTask(LIST_MEMBERS, listeners) {
1276 1078 public void invoke(List<TwitterListener> listeners) throws TwitterException {
@@ -1356,13 +1158,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
1356 1158 /**
1357 1159 * {@inheritDoc}
1358 1160 */
1359   - public void checkUserListMembership(final String listOwnerScreenName, final int listId, final long userId) {
1360   - showUserListMembership(listId, userId);
1361   - }
1362   -
1363   - /**
1364   - * {@inheritDoc}
1365   - */
1366 1161 public void showUserListMembership(final int listId, final long userId) {
1367 1162 getDispatcher().invokeLater(new AsyncTask(CHECK_LIST_MEMBERSHIP, listeners) {
1368 1163 public void invoke(List<TwitterListener> listeners) throws TwitterException {
@@ -1382,13 +1177,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
1382 1177 /**
1383 1178 * {@inheritDoc}
1384 1179 */
1385   - public void getUserListSubscribers(final String listOwnerScreenName, final int listId, final long cursor) {
1386   - getUserListSubscribers(listId, cursor);
1387   - }
1388   -
1389   - /**
1390   - * {@inheritDoc}
1391   - */
1392 1180 public void getUserListSubscribers(final int listId, final long cursor) {
1393 1181 getDispatcher().invokeLater(new AsyncTask(LIST_SUBSCRIBERS, listeners) {
1394 1182 public void invoke(List<TwitterListener> listeners) throws TwitterException {
@@ -1406,13 +1194,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
1406 1194 /**
1407 1195 * {@inheritDoc}
1408 1196 */
1409   - public void subscribeUserList(final String listOwnerScreenName, final int listId) {
1410   - createUserListSubscription(listId);
1411   - }
1412   -
1413   - /**
1414   - * {@inheritDoc}
1415   - */
1416 1197 public void createUserListSubscription(final int listId) {
1417 1198 getDispatcher().invokeLater(new AsyncTask(SUBSCRIBE_LIST, listeners) {
1418 1199 public void invoke(List<TwitterListener> listeners) throws TwitterException {
@@ -1430,13 +1211,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
1430 1211 /**
1431 1212 * {@inheritDoc}
1432 1213 */
1433   - public void unsubscribeUserList(final String listOwnerScreenName, final int listId) {
1434   - destroyUserListSubscription(listId);
1435   - }
1436   -
1437   - /**
1438   - * {@inheritDoc}
1439   - */
1440 1214 public void destroyUserListSubscription(final int listId) {
1441 1215 getDispatcher().invokeLater(new AsyncTask(UNSUBSCRIBE_LIST, listeners) {
1442 1216 public void invoke(List<TwitterListener> listeners) throws TwitterException {
@@ -1454,13 +1228,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
1454 1228 /**
1455 1229 * {@inheritDoc}
1456 1230 */
1457   - public void checkUserListSubscription(final String listOwnerScreenName, final int listId, final long userId) {
1458   - showUserListSubscription(listId, userId);
1459   - }
1460   -
1461   - /**
1462   - * {@inheritDoc}
1463   - */
1464 1231 public void showUserListSubscription(final int listId, final long userId) {
1465 1232 getDispatcher().invokeLater(new AsyncTask(CHECK_LIST_SUBSCRIPTION, listeners) {
1466 1233 public void invoke(List<TwitterListener> listeners) throws TwitterException {
14 twitter4j-async/src/main/java/twitter4j/TwitterAdapter.java
@@ -53,18 +53,12 @@ public void gotWeeklyTrends(ResponseList<Trends> trendsList) {
53 53 }
54 54
55 55 /*Timeline Methods*/
56   - public void gotPublicTimeline(ResponseList<Status> statuses) {
57   - }
58   -
59 56 /**
60 57 * @since Twitter4J 2.0.10
61 58 */
62 59 public void gotHomeTimeline(ResponseList<Status> statuses) {
63 60 }
64 61
65   - public void gotFriendsTimeline(ResponseList<Status> statuses) {
66   - }
67   -
68 62 public void gotUserTimeline(ResponseList<Status> statuses) {
69 63 }
70 64
@@ -184,11 +178,6 @@ public void gotMemberSuggestions(ResponseList<User> users) {
184 178 public void gotProfileImage(ProfileImage image) {
185 179 }
186 180
187   - public void gotFriendsStatuses(PagableResponseList<User> users) {
188   - }
189   -
190   - public void gotFollowersStatuses(PagableResponseList<User> users) {
191   - }
192 181 /*List Methods*/
193 182
194 183 /**
@@ -532,9 +521,6 @@ public void searchedPlaces(ResponseList<Place> places) {
532 521 public void gotSimilarPlaces(SimilarPlaces places) {
533 522 }
534 523
535   - public void gotNearByPlaces(ResponseList<Place> places) {
536   - }
537   -
538 524 public void gotReverseGeoCode(ResponseList<Place> places) {
539 525 }
540 526
20 twitter4j-async/src/main/java/twitter4j/TwitterListener.java
@@ -45,16 +45,11 @@
45 45 */
46 46 void gotWeeklyTrends(ResponseList<Trends> trendsList);
47 47
48   - /*Timeline Methods*/
49   - void gotPublicTimeline(ResponseList<Status> statuses);
50   -
51 48 /**
52 49 * @since Twitter4J 2.0.10
53 50 */
54 51 void gotHomeTimeline(ResponseList<Status> statuses);
55 52
56   - void gotFriendsTimeline(ResponseList<Status> statuses);
57   -
58 53 void gotUserTimeline(ResponseList<Status> statuses);
59 54
60 55 /**
@@ -151,11 +146,6 @@
151 146 */
152 147 void gotProfileImage(ProfileImage image);
153 148
154   -
155   - void gotFriendsStatuses(PagableResponseList<User> users);
156   -
157   - void gotFollowersStatuses(PagableResponseList<User> users);
158   -
159 149 /*List Methods*/
160 150
161 151 /**
@@ -436,8 +426,6 @@
436 426
437 427 void gotSimilarPlaces(SimilarPlaces places);
438 428
439   - void gotNearByPlaces(ResponseList<Place> places);
440   -
441 429 void gotReverseGeoCode(ResponseList<Place> places);
442 430
443 431 void gotGeoDetails(Place place);
@@ -480,12 +468,7 @@
480 468 TwitterMethod WEEKLY_TRENDS = TwitterMethod.WEEKLY_TRENDS;
481 469
482 470 /*Timeline Methods*/
483   - TwitterMethod PUBLIC_TIMELINE = TwitterMethod.PUBLIC_TIMELINE;
484 471 TwitterMethod HOME_TIMELINE = TwitterMethod.HOME_TIMELINE;
485   - /**
486   - * @deprecated use {@link #HOME_TIMELINE} instead
487   - */
488   - TwitterMethod FRIENDS_TIMELINE = TwitterMethod.FRIENDS_TIMELINE;
489 472 TwitterMethod USER_TIMELINE = TwitterMethod.USER_TIMELINE;
490 473 TwitterMethod MENTIONS = TwitterMethod.MENTIONS;
491 474 TwitterMethod RETWEETED_BY_ME = TwitterMethod.RETWEETED_BY_ME;
@@ -512,8 +495,6 @@
512 495 TwitterMethod USER_SUGGESTIONS = TwitterMethod.USER_SUGGESTIONS;
513 496 TwitterMethod MEMBER_SUGGESTIONS = TwitterMethod.MEMBER_SUGGESTIONS;
514 497 TwitterMethod PROFILE_IMAGE = TwitterMethod.PROFILE_IMAGE;
515   - TwitterMethod FRIENDS_STATUSES = TwitterMethod.FRIENDS_STATUSES;
516   - TwitterMethod FOLLOWERS_STATUSES = TwitterMethod.FOLLOWERS_STATUSES;
517 498
518 499 /*List Methods*/
519 500 TwitterMethod CREATE_USER_LIST = TwitterMethod.CREATE_USER_LIST;
@@ -602,7 +583,6 @@
602 583 /*Geo Methods*/
603 584 TwitterMethod SEARCH_PLACES = TwitterMethod.SEARCH_PLACES;
604 585 TwitterMethod SIMILAR_PLACES = TwitterMethod.SIMILAR_PLACES;
605   - TwitterMethod NEAR_BY_PLACES = TwitterMethod.NEAR_BY_PLACES;
606 586 TwitterMethod REVERSE_GEO_CODE = TwitterMethod.REVERSE_GEO_CODE;
607 587 TwitterMethod GEO_DETAILS = TwitterMethod.GEO_DETAILS;
608 588 TwitterMethod CREATE_PLACE = TwitterMethod.CREATE_PLACE;
14 twitter4j-async/src/main/java/twitter4j/TwitterMethod.java
@@ -83,12 +83,7 @@ private Object readResolve() throws ObjectStreamException {
83 83 public static final TwitterMethod WEEKLY_TRENDS = new TwitterMethod("WEEKLY_TRENDS");
84 84
85 85 /*Timeline Methods*/
86   - public static final TwitterMethod PUBLIC_TIMELINE = new TwitterMethod("PUBLIC_TIMELINE");
87 86 public static final TwitterMethod HOME_TIMELINE = new TwitterMethod("HOME_TIMELINE");
88   - /**
89   - * @deprecated use {@link #HOME_TIMELINE} instead
90   - */
91   - public static final TwitterMethod FRIENDS_TIMELINE = new TwitterMethod("FRIENDS_TIMELINE");
92 87 public static final TwitterMethod USER_TIMELINE = new TwitterMethod("USER_TIMELINE");
93 88 public static final TwitterMethod MENTIONS = new TwitterMethod("MENTIONS");
94 89 public static final TwitterMethod RETWEETED_BY_ME = new TwitterMethod("RETWEETED_BY_ME");
@@ -114,14 +109,6 @@ private Object readResolve() throws ObjectStreamException {
114 109 public static final TwitterMethod PROFILE_IMAGE = new TwitterMethod("PROFILE_IMAGE");
115 110 public static final TwitterMethod USER_SUGGESTIONS = new TwitterMethod("USER_SUGGESTIONS");
116 111 public static final TwitterMethod MEMBER_SUGGESTIONS = new TwitterMethod("MEMBER_SUGGESTIONS");
117   - /**
118   - * @deprecated use {@link #FRIENDS_IDS} and {@link #LOOKUP_USERS} instead
119   - */
120   - public static final TwitterMethod FRIENDS_STATUSES = new TwitterMethod("FRIENDS_STATUSES");
121   - /**
122   - * @deprecated use {@link #FOLLOWERS_IDS} and {@link #LOOKUP_USERS} instead
123   - */
124   - public static final TwitterMethod FOLLOWERS_STATUSES = new TwitterMethod("FOLLOWERS_STATUSES");
125 112
126 113 /*List Methods*/
127 114 public static final TwitterMethod CREATE_USER_LIST = new TwitterMethod("CREATE_USER_LIST");
@@ -212,7 +199,6 @@ private Object readResolve() throws ObjectStreamException {
212 199 /*Geo Methods*/
213 200 public static final TwitterMethod SEARCH_PLACES = new TwitterMethod("SEARCH_PLACES");
214 201 public static final TwitterMethod SIMILAR_PLACES = new TwitterMethod("SIMILAR_PLACES");
215   - public static final TwitterMethod NEAR_BY_PLACES = new TwitterMethod("NEAR_BY_PLACES");
216 202 public static final TwitterMethod REVERSE_GEO_CODE = new TwitterMethod("REVERSE_GEO_CODE");
217 203 public static final TwitterMethod GEO_DETAILS = new TwitterMethod("GEO_DETAILS");
218 204 public static final TwitterMethod CREATE_PLACE = new TwitterMethod("CREATE_PLACE");
38 twitter4j-async/src/main/java/twitter4j/api/ListMembersMethodsAsync.java
@@ -20,31 +20,6 @@
20 20 * @author Joern Huxhorn - jhuxhorn at googlemail.com
21 21 */
22 22 public interface ListMembersMethodsAsync {
23   - /**
24   - * Returns the members of the specified list.
25   - * <br>This method calls http://api.twitter.com/1/lists/members.json
26   - *
27   - * @param listOwnerScreenName The screen name of the list owner
28   - * @param listId The id of the list
29   - * @param cursor Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
30   - * @see <a href="https://dev.twitter.com/docs/api/1/get/lists/members">GET lists/members | Twitter Developers</a>
31   - * @since Twitter4J 2.1.1
32   - * @deprecated use {@link #getUserListMembers(int, long)} instead
33   - */
34   - void getUserListMembers(String listOwnerScreenName, int listId, long cursor);
35   -
36   - /**
37   - * Returns the members of the specified list.
38   - * <br>This method calls http://api.twitter.com/1/lists/members.json
39   - *
40   - * @param listOwnerId The id of the list owner
41   - * @param listId The id of the list
42   - * @param cursor Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
43   - * @see <a href="https://dev.twitter.com/docs/api/1/get/lists/members">GET lists/members | Twitter Developers</a>
44   - * @since Twitter4J 2.1.1
45   - * @deprecated use {@link #getUserListMembers(int, long)} instead
46   - */
47   - void getUserListMembers(long listOwnerId, int listId, long cursor);
48 23
49 24 /**
50 25 * Returns the members of the specified list.
@@ -105,19 +80,6 @@
105 80 * Check if a user is a member of the specified list.<br>
106 81 * <br>This method calls http://api.twitter.com/1/lists/members/show.json
107 82 *
108   - * @param listOwnerScreenName The screen name of the list owner
109   - * @param listId The id of the list.
110   - * @param userId The id of the user who you want to know is a member or not of the specified list.
111   - * @see <a href="https://dev.twitter.com/docs/api/1/get/lists/members/show">GET lists/members/show | Twitter Developers</a>
112   - * @since Twitter4J 2.1.0
113   - * @deprecated use {@link #showUserListMembership(int, long)} instead
114   - */
115   - void checkUserListMembership(String listOwnerScreenName, int listId, long userId);
116   -
117   - /**
118   - * Check if a user is a member of the specified list.<br>
119   - * <br>This method calls http://api.twitter.com/1/lists/members/show.json
120   - *
121 83 * @param listId The id of the list.
122 84 * @param userId The id of the user who you want to know is a member or not of the specified list.
123 85 * @see <a href="https://dev.twitter.com/docs/api/1/get/lists/members/show">GET lists/members/show | Twitter Developers</a>
38 twitter4j-async/src/main/java/twitter4j/api/ListMethodsAsync.java
@@ -73,18 +73,6 @@
73 73 * Show the specified list. Private lists will only be shown if the authenticated user owns the specified list.
74 74 * <br>This method calls http://api.twitter.com/1/lists/show.json
75 75 *
76   - * @param listOwnerScreenName The screen name of the list owner
77   - * @param id The id of the list to show
78   - * @see <a href="https://dev.twitter.com/docs/api/1/get/:user/lists/:id">GET :user/lists/:id | Twitter Developers</a>
79   - * @since Twitter4J 2.1.1
80   - * @deprecated use {@link #showUserList(int)} instead
81   - */
82   - void showUserList(String listOwnerScreenName, int id);
83   -
84   - /**
85   - * Show the specified list. Private lists will only be shown if the authenticated user owns the specified list.
86   - * <br>This method calls http://api.twitter.com/1/lists/show.json
87   - *
88 76 * @param listId The id of the list to show
89 77 * @see <a href="https://dev.twitter.com/docs/api/1/get/lists/show">https://dev.twitter.com/docs/api/1/get/lists/show | Twitter Developers</a>
90 78 * @since Twitter4J 2.2.3
@@ -105,32 +93,6 @@
105 93 * Show tweet timeline for members of the specified list.
106 94 * <br>http://api.twitter.com/1/user/lists/list_id/statuses.json
107 95 *
108   - * @param listOwnerScreenName The screen name of the list owner
109   - * @param id The id of the list to delete
110   - * @param paging controls pagination. Supports since_id, max_id, count and page parameters.
111   - * @see <a href="https://dev.twitter.com/docs/api/1/get/lists/statuses">GET lists/statuses | Twitter Developers</a>
112   - * @since Twitter4J 2.1.1
113   - * @deprecated use {@link #getUserListStatuses(int, twitter4j.Paging)} instead
114   - */
115   - void getUserListStatuses(String listOwnerScreenName, int id, Paging paging);
116   -
117   - /**
118   - * Show tweet timeline for members of the specified list.
119   - * <br>http://api.twitter.com/1/user/lists/list_id/statuses.json
120   - *
121   - * @param listOwnerId The screen name of the list owner
122   - * @param id The id of the list to delete
123   - * @param paging controls pagination. Supports since_id, max_id, count and page parameters.
124   - * @see <a href="https://dev.twitter.com/docs/api/1/get/lists/statuses">GET lists/statuses | Twitter Developers</a>
125   - * @since Twitter4J 2.1.1
126   - * @deprecated use {@link #getUserListStatuses(int, twitter4j.Paging)} instead
127   - */
128   - void getUserListStatuses(long listOwnerId, int id, Paging paging);
129   -
130   - /**
131   - * Show tweet timeline for members of the specified list.
132   - * <br>http://api.twitter.com/1/user/lists/list_id/statuses.json
133   - *
134 96 * @param listId The id of the list
135 97 * @param paging controls pagination. Supports since_id, max_id, count and page parameters.
136 98 * @see <a href="https://dev.twitter.com/docs/api/1/get/lists/statuses">GET lists/statuses | Twitter Developers</a>
50 twitter4j-async/src/main/java/twitter4j/api/ListSubscribersMethodsAsync.java
@@ -21,18 +21,6 @@
21 21 * @author Joern Huxhorn - jhuxhorn at googlemail.com
22 22 */
23 23 public interface ListSubscribersMethodsAsync {
24   - /**
25   - * Returns the subscribers of the specified list.
26   - * <br>This method calls http://api.twitter.com/1/lists/subscribers.json
27   - *
28   - * @param listOwnerScreenName The screen name of the list owner
29   - * @param listId The id of the list
30   - * @param cursor Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
31   - * @see <a href="https://dev.twitter.com/docs/api/1/get/lists/subscribers">GET lists/subscribers | Twitter Developers</a>
32   - * @since Twitter4J 2.1.1
33   - * @deprecated use {@link #getUserListSubscribers(int, long)} instead
34   - */
35   - void getUserListSubscribers(String listOwnerScreenName, int listId, long cursor);
36 24
37 25 /**
38 26 * Returns the subscribers of the specified list.
@@ -49,18 +37,6 @@
49 37 * Make the authenticated user follow the specified list.
50 38 * <br>This method calls http://api.twitter.com/1/list/subscribers/create.json
51 39 *
52   - * @param listOwnerScreenName The screen name of the list owner
53   - * @param listId The id of the list.
54   - * @see <a href="https://dev.twitter.com/docs/api/1/post/lists/subscribers/create">POST lists/subscribers/create | Twitter Developers</a>
55   - * @since Twitter4J 2.1.1
56   - * @deprecated use {@link #createUserListSubscription(int)} instead
57   - */
58   - void subscribeUserList(String listOwnerScreenName, int listId);
59   -
60   - /**
61   - * Make the authenticated user follow the specified list.
62   - * <br>This method calls http://api.twitter.com/1/list/subscribers/create.json
63   - *
64 40 * @param listId The id of the list.
65 41 * @see <a href="https://dev.twitter.com/docs/api/1/post/lists/subscribers/create">POST lists/subscribers/create | Twitter Developers</a>
66 42 * @since Twitter4J 2.2.3
@@ -69,18 +45,6 @@
69 45
70 46 /**
71 47 * Unsubscribes the authenticated user form the specified list.
72   - * <br>This method calls http://api.twitter.com/1/:listOwner/:listId/subscribers.json
73   - *
74   - * @param listOwnerScreenName The screen name of the list owner
75   - * @param listId The id of the list.
76   - * @see <a href="https://dev.twitter.com/docs/api/1/post/lists/subscribers/destroy">POST lists/subscribers/destroy | Twitter Developers</a>
77   - * @since Twitter4J 2.1.1
78   - * @deprecated use {@link #destroyUserListSubscription(int)} instead
79   - */
80   - void unsubscribeUserList(String listOwnerScreenName, int listId);
81   -
82   - /**
83   - * Unsubscribes the authenticated user form the specified list.
84 48 * <br>This method calls http://api.twitter.com/1/subscribers/destroy.json
85 49 *
86 50 * @param listId The id of the list.
@@ -93,20 +57,6 @@
93 57 * Check if the specified user is a subscriber of the specified list.
94 58 * <br>This method calls http://api.twitter.com/1/lists/subscribers/show.json
95 59 *
96   - * @param listOwnerScreenName The screen name of the list owner
97   - * @param listId The id of the list.
98   - * @param userId The id of the user who you want to know is a member or not of the specified list.
99   - * , or the user is not a member of the specified list(TwitterException.getStatusCode() returns 404 in that case.)
100   - * @see <a href="https://dev.twitter.com/docs/api/1/get/lists/subscribers/show">GET lists/subscribers/show | Twitter Developers</a>
101   - * @since Twitter4J 2.1.1
102   - * @deprecated use {@link #showUserListSubscription(int, long)} instead
103   - */
104   - void checkUserListSubscription(String listOwnerScreenName, int listId, long userId);
105   -
106   - /**
107   - * Check if the specified user is a subscriber of the specified list.
108   - * <br>This method calls http://api.twitter.com/1/lists/subscribers/show.json
109   - *
110 60 * @param listId The id of the list.
111 61 * @param userId The id of the user who you want to know is a member or not of the specified list.
112 62 * , or the user is not a member of the specified list(TwitterException.getStatusCode() returns 404 in that case.)
28 twitter4j-async/src/main/java/twitter4j/api/TimelineMethodsAsync.java
@@ -23,14 +23,6 @@
23 23 */
24 24 public interface TimelineMethodsAsync {
25 25 /**
26   - * Returns the 20 most recent statuses from non-protected users who have set a custom user icon. The public timeline is cached for 60 seconds and requesting it more often than that is unproductive and a waste of resources.
27   - * <br>This method calls http://api.twitter.com/1/statuses/public_timeline
28   - *
29   - * @see <a href="https://dev.twitter.com/docs/api/1/get/statuses/public_timeline">GET statuses/public_timeline | Twitter Developers</a>
30   - */
31   - void getPublicTimeline();
32   -
33   - /**
34 26 * Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web.<br>
35 27 * Usage note: This home_timeline call is identical to statuses/friends_timeline, except that home_timeline also contains retweets, while statuses/friends_timeline does not for backwards compatibility reasons. In a future version of the API, statuses/friends_timeline will be deprected and replaced by home_timeline.
36 28 * <br>This method calls http://api.twitter.com/1/statuses/home_timeline
@@ -51,26 +43,6 @@
51 43 */
52 44 void getHomeTimeline(Paging paging);
53 45
54   -
55   - /**
56   - * Returns the 20 most recent statuses posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web.
57   - *
58   - * @see <a href="https://dev.twitter.com/docs/api/1/get/statuses/friends_timeline">GET statuses/friends_timeline | Twitter Developers</a>
59   - * @deprecated use {@link #getHomeTimeline()} instead
60   - */
61   - void getFriendsTimeline();
62   -
63   - /**
64   - * Returns the 20 most recent statuses posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web.
65   - * <br>This method calls http://api.twitter.com/1/statuses/friends_timeline
66   - *
67   - * @param paging controls pagination
68   - * @see <a href="https://dev.twitter.com/docs/api/1/get/statuses/friends_timeline">GET statuses/friends_timeline | Twitter Developers</a>
69   - * @since Twitter4J 2.0.1
70   - * @deprecated use {@link #getHomeTimeline(Paging)} instead
71   - */
72   - void getFriendsTimeline(Paging paging);
73   -
74 46 /**
75 47 * Returns the 20 most recent statuses posted from the authenticating user. It's also possible to request another user's timeline via the id parameter.<br>
76 48 * This is the equivalent of the Web / page for your own user, or the profile page for a third party.<br>
70 twitter4j-async/src/main/java/twitter4j/api/UserMethodsAsync.java
@@ -116,74 +116,4 @@
116 116 * @since Twitter4J 2.1.7
117 117 */
118 118 void getProfileImage(String screenName, ProfileImage.ImageSize size);
119   -
120   - /**
121   - * Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time. (Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out.)
122   - * <br>This method calls http://api.twitter.com/1/statuses/friends
123   - *
124   - * @param cursor Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
125   - * @see <a href="https://dev.twitter.com/docs/api/1/get/statuses/friends">GET statuses/friends | Twitter Developers</a>
126   - * @since Twitter4J 2.0.9
127   - * @deprecated use {@link FriendsFollowersMethodsAsync#getFriendsIDs(long)} and {@link UserMethodsAsync#lookupUsers(long[])} instead
128   - */
129   - void getFriendsStatuses(long cursor);
130   -
131   - /**
132   - * Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time. (Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out.)
133   - * <br>This method calls http://api.twitter.com/1/statuses/friends
134   - *
135   - * @param screenName the screen name of the user for whom to request a list of friends
136   - * @param cursor Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
137   - * @see <a href="https://dev.twitter.com/docs/api/1/get/statuses/friends">GET statuses/friends | Twitter Developers</a>
138   - * @since Twitter4J 2.0.9
139   - * @deprecated use {@link FriendsFollowersMethodsAsync#getFriendsIDs(String, long)} and {@link UserMethodsAsync#lookupUsers(long[])} instead
140   - */
141   - void getFriendsStatuses(String screenName, long cursor);
142   -
143   - /**
144   - * Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time. (Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out.)
145   - * <br>This method calls http://api.twitter.com/1/statuses/friends
146   - *
147   - * @param userId the screen name of the user for whom to request a list of friends
148   - * @param cursor Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
149   - * @see <a href="https://dev.twitter.com/docs/api/1/get/statuses/friends">GET statuses/friends | Twitter Developers</a>
150   - * @since Twitter4J 2.1.0
151   - * @deprecated use {@link FriendsFollowersMethodsAsync#getFriendsIDs(long, long)} and {@link UserMethodsAsync#lookupUsers(long[])} instead
152   - */
153   - void getFriendsStatuses(long userId, long cursor);
154   -
155   - /**
156   - * Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
157   - * <br>This method calls http://api.twitter.com/1/statuses/followers.json
158   - *
159   - * @param cursor Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
160   - * @see <a href="https://dev.twitter.com/docs/api/1/get/statuses/followers">GET statuses/followers | Twitter Developers</a>
161   - * @since Twitter4J 2.0.9
162   - * @deprecated use {@link FriendsFollowersMethodsAsync#getFollowersIDs(long)} and {@link UserMethodsAsync#lookupUsers(long[])} instead
163   - */
164   - void getFollowersStatuses(long cursor);
165   -
166   - /**
167   - * Returns the specified user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
168   - * <br>This method calls http://api.twitter.com/1/statuses/followers.json
169   - *
170   - * @param screenName The screen name of the user for whom to request a list of followers.
171   - * @param cursor Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
172   - * @see <a href="https://dev.twitter.com/docs/api/1/get/statuses/followers">GET statuses/followers | Twitter Developers</a>
173   - * @since Twitter4J 2.0.9
174   - * @deprecated use {@link FriendsFollowersMethodsAsync#getFollowersIDs(String, long)} and {@link UserMethodsAsync#lookupUsers(long[])} instead
175   - */
176   - void getFollowersStatuses(String screenName, long cursor);
177   -
178   - /**
179   - * Returns the specified user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
180   - * <br>This method calls http://api.twitter.com/1/statuses/followers.json
181   - *
182   - * @param userId The ID of the user for whom to request a list of followers.
183   - * @param cursor Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
184   - * @see <a href="https://dev.twitter.com/docs/api/1/get/statuses/followers">GET statuses/followers | Twitter Developers</a>
185   - * @since Twitter4J 2.1.0
186   - * @deprecated use {@link FriendsFollowersMethodsAsync#getFollowersIDs(long, long)} and {@link UserMethodsAsync#lookupUsers(long[])} instead
187   - */
188   - void getFollowersStatuses(long userId, long cursor);
189 119 }
38 twitter4j-async/src/test/java/twitter4j/AsyncTwitterTest.java
@@ -77,13 +77,6 @@ protected void tearDown() throws Exception {
77 77 super.tearDown();
78 78 }
79 79
80   - public void testGetPublicTimeline() throws Exception {
81   - async1.getPublicTimeline();
82   - waitForResponse();
83   - Assert.assertTrue("size", 0 < statuses.size());
84   - assertDeserializedFormIsEqual(statuses);
85   - }
86   -
87 80 public void testShowUser() throws Exception {
88 81 async1.showUser(id1.screenName);
89 82 waitForResponse();
@@ -418,11 +411,6 @@ public void searched(QueryResult result) {
418 411 notifyResponse();
419 412 }
420 413
421   - public void gotTrends(Trends trends) {
422   - this.trends = trends;
423   - notifyResponse();
424   - }
425   -
426 414 public void gotCurrentTrends(Trends trends) {
427 415 this.trends = trends;
428 416 notifyResponse();
@@ -439,21 +427,11 @@ public void gotWeeklyTrends(ResponseList<Trends> trendsList) {
439 427 }
440 428
441 429 /*Timeline Methods*/
442   - public void gotPublicTimeline(ResponseList<Status> statuses) {
443   - this.statuses = statuses;
444   - notifyResponse();
445   - }
446   -
447 430 public void gotHomeTimeline(ResponseList<Status> statuses) {
448 431 this.statuses = statuses;
449 432 notifyResponse();
450 433 }
451 434
452   - public void gotFriendsTimeline(ResponseList<Status> statuses) {
453   - this.statuses = statuses;
454   - notifyResponse();
455   - }
456   -
457 435 public void gotUserTimeline(ResponseList<Status> statuses) {
458 436 this.statuses = statuses;
459 437 notifyResponse();
@@ -584,16 +562,6 @@ public void gotProfileImage(ProfileImage image) {
584 562 notifyResponse();
585 563 }
586 564
587   - public void gotFriendsStatuses(PagableResponseList<User> users) {
588   - this.users = users;
589   - notifyResponse();
590   - }
591   -
592   - public void gotFollowersStatuses(PagableResponseList<User> users) {
593   - this.users = users;
594   - notifyResponse();
595   - }
596   -
597 565 /*List Methods*/
598 566
599 567 public void createdUserList(UserList userList) {
@@ -931,12 +899,6 @@ public void gotSimilarPlaces(SimilarPlaces places) {
931 899 notifyResponse();
932 900 }
933 901
934   -
935   - public void gotNearByPlaces(ResponseList<Place> places) {
936   - this.places = places;
937   - notifyResponse();
938   - }
939   -
940 902 public void gotReverseGeoCode(ResponseList<Place> places) {
941 903 this.places = places;
942 904 notifyResponse();
8 twitter4j-core/pom.xml
@@ -100,6 +100,12 @@
100 100 <scope>test</scope>
101 101 </dependency>
102 102 <dependency>
  103 + <groupId>com.googlecode</groupId>
  104 + <artifactId>kryo</artifactId>
  105 + <version>1.04</version>
  106 + <scope>test</scope>
  107 + </dependency>
  108 + <dependency>
103 109 <groupId>org.slf4j</groupId>
104 110 <artifactId>slf4j-api</artifactId>
105 111 <version>1.5.8</version>
@@ -116,7 +122,7 @@
116 122 <dependency>
117 123 <groupId>log4j</groupId>
118 124 <artifactId>log4j</artifactId>
119   - <version>1.2.9</version>
  125 + <version>[1.2.9,)</version>
120 126 <scope>provided</scope>
121 127 <optional>true</optional>
122 128 </dependency>
5 twitter4j-core/src/main/java/twitter4j/GeoLocation.java
@@ -37,6 +37,11 @@ public GeoLocation(double latitude, double longitude) {
37 37 this.latitude = latitude;
38 38 this.longitude = longitude;
39 39 }
  40 +
  41 + /* For serialization purposes only. */
  42 + /* package */ GeoLocation() {
  43 +
  44 + }
40 45
41 46 /**
42 47 * returns the latitude of the geo location
3  twitter4j-core/src/main/java/twitter4j/Status.java
@@ -24,14 +24,13 @@
24 24 * @author Yusuke Yamamoto - yusuke at mac.com
25 25 */
26 26 public interface Status extends Comparable<Status>, TwitterResponse,
27   - EntitySupport, java.io.Serializable {
  27 + EntitySupport, Twt, java.io.Serializable {
28 28 /**
29 29 * Return the created_at
30 30 *
31 31 * @return created_at
32 32 * @since Twitter4J 1.1.0
33 33 */
34   -
35 34 Date getCreatedAt();
36 35
37 36 /**
25 twitter4j-core/src/main/java/twitter4j/Tweet.java
@@ -23,7 +23,7 @@
23 23 *
24 24 * @author Yusuke Yamamoto - yusuke at mac.com
25 25 */
26   -public interface Tweet extends Comparable<Tweet>, EntitySupport,
  26 +public interface Tweet extends Comparable<Tweet>, EntitySupport, Twt,
27 27 java.io.Serializable {
28 28 /**
29 29 * returns the text
@@ -47,6 +47,13 @@
47 47 String getToUser();
48 48
49 49 /**
  50 + * returns the to_user_name
  51 + *
  52 + * @return the to_user_name value or null if to_user is not specified by the tweet
  53 + */
  54 + String getToUserName();
  55 +
  56 + /**
50 57 * returns the from_user
51 58 *
52 59 * @return the from_user
@@ -54,6 +61,14 @@
54 61 String getFromUser();
55 62
56 63 /**
  64 + * returns the from_user_name
  65 + *
  66 + * @return the from_user_name
  67 + * @since Twitter4J 2.2.6
  68 + */
  69 + String getFromUserName();