twitter4j
Class TwitterAdapter

java.lang.Object
  extended by twitter4j.TwitterAdapter
All Implemented Interfaces:
TwitterListener

public class TwitterAdapter
extends java.lang.Object
implements TwitterListener

A handy adapter of TwitterListener.

Author:
Yusuke Yamamoto - yusuke at mac.com
See Also:
AsyncTwitter, TwitterListener

Constructor Summary
TwitterAdapter()
           
 
Method Summary
 void blocked(User user)
          Deprecated. use createdBlock instead
 void created(User user)
          Deprecated. use createdFriendship instead
 void createdBlock(User user)
           
 void createdFavorite(Status status)
           
 void createdFriendship(User user)
           
 void deletedDirectMessage(DirectMessage message)
          Deprecated. use destroyedDirectMessage instead
 void destroyed(User user)
          Deprecated. use destroyedFriendship instead
 void destroyedBlock(User user)
           
 void destroyedDirectMessage(DirectMessage message)
           
 void destroyedFavorite(Status status)
           
 void destroyedFriendship(User user)
           
 void destroyedStatus(Status destroyedStatus)
           
 void disabledNotification(User user)
           
 void enabledNotification(User user)
           
 void followed(User user)
          Deprecated. use enabledNotification instead
 void gotBlockingUsers(java.util.List<User> blockingUsers)
           
 void gotBlockingUsersIDs(IDs blockingUsersIDs)
           
 void gotCurrentTrends(Trends trends)
           
 void gotDailyTrends(java.util.List<Trends> trendsList)
           
 void gotDirectMessages(java.util.List<DirectMessage> messages)
           
 void gotDowntimeSchedule(java.lang.String schedule)
          Deprecated. not supported by Twitter API anymore
 void gotExists(boolean exists)
          Deprecated. use gotExistsFriendship instead
 void gotExistsBlock(boolean blockExists)
           
 void gotExistsFriendship(boolean exists)
           
 void gotFavorites(java.util.List<Status> statuses)
           
 void gotFeatured(java.util.List<User> users)
           
 void gotFollowers(java.util.List<User> users)
           
 void gotFollowersIDs(IDs ids)
           
 void gotFriends(java.util.List<User> users)
           
 void gotFriendsIDs(IDs ids)
           
 void gotFriendsTimeline(java.util.List<Status> statuses)
           
 void gotHomeTimeline(java.util.List<Status> statuses)
           
 void gotMentions(java.util.List<Status> statuses)
           
 void gotPublicTimeline(java.util.List<Status> statuses)
           
 void gotRateLimitStatus(RateLimitStatus status)
           
 void gotReplies(java.util.List<Status> statuses)
          Deprecated. use gotMentions instead
 void gotRetweetedByMe(java.util.List<Status> statuses)
           
 void gotRetweetedToMe(java.util.List<Status> statuses)
           
 void gotRetweetsOfMe(java.util.List<Status> statuses)
           
 void gotSentDirectMessages(java.util.List<DirectMessage> messages)
           
 void gotShow(Status statuses)
          Deprecated. use gotShowStatus instead
 void gotShowStatus(Status statuses)
           
 void gotTrends(Trends trends)
           
 void gotUserDetail(User user)
           
 void gotUserTimeline(java.util.List<Status> statuses)
           
 void gotWeeklyTrends(java.util.List<Trends> trendsList)
           
 void left(User user)
          Deprecated. use disabledNotification instead
 void onException(TwitterException ex, int method)
           
 void retweetedStatus(Status retweetedStatus)
           
 void searched(QueryResult result)
           
 void sentDirectMessage(DirectMessage message)
           
 void tested(boolean test)
           
 void unblocked(User user)
          Deprecated. use destroyedBlock instead
 void updated(Status statuses)
          Deprecated. use updatedStatus instead
 void updatedDeliverlyDevice(User user)
           
 void updatedLocation(User user)
          Deprecated. Use updatedProfile instead
 void updatedProfile(User user)
           
 void updatedProfileColors(User user)
           
 void updatedStatus(Status statuses)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwitterAdapter

public TwitterAdapter()
Method Detail

gotHomeTimeline

public void gotHomeTimeline(java.util.List<Status> statuses)
Specified by:
gotHomeTimeline in interface TwitterListener
Since:
Twitter4J 2.0.10

gotPublicTimeline

public void gotPublicTimeline(java.util.List<Status> statuses)
Specified by:
gotPublicTimeline in interface TwitterListener

gotFriendsTimeline

public void gotFriendsTimeline(java.util.List<Status> statuses)
Specified by:
gotFriendsTimeline in interface TwitterListener

gotUserTimeline

public void gotUserTimeline(java.util.List<Status> statuses)
Specified by:
gotUserTimeline in interface TwitterListener

gotShow

public void gotShow(Status statuses)
Deprecated. use gotShowStatus instead

Specified by:
gotShow in interface TwitterListener

gotShowStatus

public void gotShowStatus(Status statuses)
Specified by:
gotShowStatus in interface TwitterListener
Since:
Twitter4J 2.0.1

updated

public void updated(Status statuses)
Deprecated. use updatedStatus instead

Specified by:
updated in interface TwitterListener

updatedStatus

public void updatedStatus(Status statuses)
Specified by:
updatedStatus in interface TwitterListener

gotReplies

public void gotReplies(java.util.List<Status> statuses)
Deprecated. use gotMentions instead

Specified by:
gotReplies in interface TwitterListener

gotMentions

public void gotMentions(java.util.List<Status> statuses)
Specified by:
gotMentions in interface TwitterListener
Since:
Twitter4J 2.0.1

gotRetweetedByMe

public void gotRetweetedByMe(java.util.List<Status> statuses)
Specified by:
gotRetweetedByMe in interface TwitterListener
Since:
Twitter4J 2.0.10

gotRetweetedToMe

public void gotRetweetedToMe(java.util.List<Status> statuses)
Specified by:
gotRetweetedToMe in interface TwitterListener
Since:
Twitter4J 2.0.10

gotRetweetsOfMe

public void gotRetweetsOfMe(java.util.List<Status> statuses)
Specified by:
gotRetweetsOfMe in interface TwitterListener
Since:
Twitter4J 2.0.10

destroyedStatus

public void destroyedStatus(Status destroyedStatus)
Specified by:
destroyedStatus in interface TwitterListener

retweetedStatus

public void retweetedStatus(Status retweetedStatus)
Specified by:
retweetedStatus in interface TwitterListener
Since:
Twitter4J 2.0.10

gotFriends

public void gotFriends(java.util.List<User> users)
Specified by:
gotFriends in interface TwitterListener

gotFollowers

public void gotFollowers(java.util.List<User> users)
Specified by:
gotFollowers in interface TwitterListener

gotFeatured

public void gotFeatured(java.util.List<User> users)
Specified by:
gotFeatured in interface TwitterListener

gotUserDetail

public void gotUserDetail(User user)
Specified by:
gotUserDetail in interface TwitterListener

gotDirectMessages

public void gotDirectMessages(java.util.List<DirectMessage> messages)
Specified by:
gotDirectMessages in interface TwitterListener

gotSentDirectMessages

public void gotSentDirectMessages(java.util.List<DirectMessage> messages)
Specified by:
gotSentDirectMessages in interface TwitterListener

sentDirectMessage

public void sentDirectMessage(DirectMessage message)
Specified by:
sentDirectMessage in interface TwitterListener

deletedDirectMessage

public void deletedDirectMessage(DirectMessage message)
Deprecated. use destroyedDirectMessage instead

Specified by:
deletedDirectMessage in interface TwitterListener

destroyedDirectMessage

public void destroyedDirectMessage(DirectMessage message)
Specified by:
destroyedDirectMessage in interface TwitterListener
Since:
Twitter4J 2.0.1

gotFriendsIDs

public void gotFriendsIDs(IDs ids)
Specified by:
gotFriendsIDs in interface TwitterListener

gotFollowersIDs

public void gotFollowersIDs(IDs ids)
Specified by:
gotFollowersIDs in interface TwitterListener

created

public void created(User user)
Deprecated. use createdFriendship instead

Specified by:
created in interface TwitterListener

createdFriendship

public void createdFriendship(User user)
Specified by:
createdFriendship in interface TwitterListener
Since:
Twitter4J 2.0.1

destroyed

public void destroyed(User user)
Deprecated. use destroyedFriendship instead

Specified by:
destroyed in interface TwitterListener

destroyedFriendship

public void destroyedFriendship(User user)
Specified by:
destroyedFriendship in interface TwitterListener
Since:
Twitter4J 2.0.1

gotExists

public void gotExists(boolean exists)
Deprecated. use gotExistsFriendship instead

Specified by:
gotExists in interface TwitterListener

gotExistsFriendship

public void gotExistsFriendship(boolean exists)
Specified by:
gotExistsFriendship in interface TwitterListener
Since:
Twitter4J 2.0.1

updatedLocation

public void updatedLocation(User user)
Deprecated. Use updatedProfile instead

Specified by:
updatedLocation in interface TwitterListener

updatedProfile

public void updatedProfile(User user)
Specified by:
updatedProfile in interface TwitterListener
Since:
Twitter4J 2.0.2

updatedProfileColors

public void updatedProfileColors(User user)
Specified by:
updatedProfileColors in interface TwitterListener

gotRateLimitStatus

public void gotRateLimitStatus(RateLimitStatus status)
Specified by:
gotRateLimitStatus in interface TwitterListener

updatedDeliverlyDevice

public void updatedDeliverlyDevice(User user)
Specified by:
updatedDeliverlyDevice in interface TwitterListener

gotFavorites

public void gotFavorites(java.util.List<Status> statuses)
Specified by:
gotFavorites in interface TwitterListener

createdFavorite

public void createdFavorite(Status status)
Specified by:
createdFavorite in interface TwitterListener

destroyedFavorite

public void destroyedFavorite(Status status)
Specified by:
destroyedFavorite in interface TwitterListener

followed

public void followed(User user)
Deprecated. use enabledNotification instead

Specified by:
followed in interface TwitterListener

enabledNotification

public void enabledNotification(User user)
Specified by:
enabledNotification in interface TwitterListener
Since:
Twitter4J 2.0.1

left

public void left(User user)
Deprecated. use disabledNotification instead

Specified by:
left in interface TwitterListener

disabledNotification

public void disabledNotification(User user)
Specified by:
disabledNotification in interface TwitterListener
Since:
Twitter4J 2.0.1

blocked

public void blocked(User user)
Deprecated. use createdBlock instead

Specified by:
blocked in interface TwitterListener

createdBlock

public void createdBlock(User user)
Specified by:
createdBlock in interface TwitterListener
Since:
Twitter4J 2.0.1

unblocked

public void unblocked(User user)
Deprecated. use destroyedBlock instead

Specified by:
unblocked in interface TwitterListener

destroyedBlock

public void destroyedBlock(User user)
Specified by:
destroyedBlock in interface TwitterListener
Since:
Twitter4J 2.0.1

gotExistsBlock

public void gotExistsBlock(boolean blockExists)
Specified by:
gotExistsBlock in interface TwitterListener
Since:
Twitter4J 2.0.4

gotBlockingUsers

public void gotBlockingUsers(java.util.List<User> blockingUsers)
Specified by:
gotBlockingUsers in interface TwitterListener
Since:
Twitter4J 2.0.4

gotBlockingUsersIDs

public void gotBlockingUsersIDs(IDs blockingUsersIDs)
Specified by:
gotBlockingUsersIDs in interface TwitterListener
Since:
Twitter4J 2.0.4

tested

public void tested(boolean test)
Specified by:
tested in interface TwitterListener

gotDowntimeSchedule

public void gotDowntimeSchedule(java.lang.String schedule)
Deprecated. not supported by Twitter API anymore

Specified by:
gotDowntimeSchedule in interface TwitterListener

searched

public void searched(QueryResult result)
Specified by:
searched in interface TwitterListener

gotTrends

public void gotTrends(Trends trends)
Specified by:
gotTrends in interface TwitterListener
Since:
Twitter4J 2.0.2

gotCurrentTrends

public void gotCurrentTrends(Trends trends)
Specified by:
gotCurrentTrends in interface TwitterListener
Since:
Twitter4J 2.0.2

gotDailyTrends

public void gotDailyTrends(java.util.List<Trends> trendsList)
Specified by:
gotDailyTrends in interface TwitterListener
Since:
Twitter4J 2.0.2

gotWeeklyTrends

public void gotWeeklyTrends(java.util.List<Trends> trendsList)
Specified by:
gotWeeklyTrends in interface TwitterListener
Since:
Twitter4J 2.0.2

onException

public void onException(TwitterException ex,
                        int method)
Specified by:
onException in interface TwitterListener
Parameters:
ex - TwitterException
method - int