twitter4j
Class TwitterAdapter
java.lang.Object
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
Fields inherited from interface twitter4j.TwitterListener |
ACCOUNT_SETTINGS, ACCOUNT_TOTALS, ADD_LIST_MEMBER, ADD_LIST_MEMBERS, ALL_USER_LISTS, AVAILABLE_TRENDS, BLOCKING_USERS, BLOCKING_USERS_IDS, CHECK_LIST_MEMBERSHIP, CHECK_LIST_SUBSCRIPTION, CREATE_BLOCK, CREATE_FAVORITE, CREATE_FRIENDSHIP, CREATE_PLACE, CREATE_USER_LIST, CURRENT_TRENDS, DAILY_TRENDS, DELETE_LIST_MEMBER, DESTROY_BLOCK, DESTROY_DIRECT_MESSAGE, DESTROY_FAVORITE, DESTROY_FRIENDSHIP, DESTROY_STATUS, DIRECT_MESSAGES, DISABLE_NOTIFICATION, DSTROY_USER_LIST, ENABLE_NOTIFICATION, EXISTS_BLOCK, EXISTS_FRIENDSHIP, FAVORITES, FOLLOWERS_IDS, FOLLOWERS_STATUSES, FRIENDS_IDS, FRIENDS_STATUSES, FRIENDS_TIMELINE, GEO_DETAILS, HOME_TIMELINE, INCOMING_FRIENDSHIP, LIST_MEMBERS, LIST_SUBSCRIBERS, LOCATION_TRENDS, LOOKUP_FRIENDSHIPS, LOOKUP_USERS, MEMBER_SUGGESTIONS, MENTIONS, NEAR_BY_PLACES, OUTGOING_FRIENDSHIPS, PRIVACY_POLICY, PROFILE_IMAGE, PUBLIC_TIMELINE, RATE_LIMIT_STATUS, RELATED_RESULT, REPORT_SPAM, RETWEET_STATUS, RETWEETED_BY, RETWEETED_BY_IDS, RETWEETED_BY_ME, RETWEETED_BY_USER, RETWEETED_TO_ME, RETWEETED_TO_USER, RETWEETS, RETWEETS_OF_ME, REVERSE_GEO_CODE, SEARCH, SEARCH_PLACES, SEARCH_USERS, SEND_DIRECT_MESSAGE, SENT_DIRECT_MESSAGES, SHOW_FRIENDSHIP, SHOW_STATUS, SHOW_USER, SHOW_USER_LIST, SIMILAR_PLACES, SUBSCRIBE_LIST, SUGGESTED_USER_CATEGORIES, TERMS_OF_SERVICE, TEST, TRENDS, UNSUBSCRIBE_LIST, UPDATE_FRIENDSHIP, UPDATE_PROFILE, UPDATE_PROFILE_BACKGROUND_IMAGE, UPDATE_PROFILE_COLORS, UPDATE_PROFILE_IMAGE, UPDATE_STATUS, UPDATE_USER_LIST, USER_LIST_MEMBERSHIPS, USER_LIST_STATUSES, USER_LIST_SUBSCRIPTIONS, USER_LISTS, USER_SUGGESTIONS, USER_TIMELINE, VERIFY_CREDENTIALS, WEEKLY_TRENDS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TwitterAdapter
public TwitterAdapter()
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
gotPublicTimeline
public void gotPublicTimeline(ResponseList<Status> statuses)
- Specified by:
gotPublicTimeline
in interface TwitterListener
gotHomeTimeline
public void gotHomeTimeline(ResponseList<Status> statuses)
- Specified by:
gotHomeTimeline
in interface TwitterListener
- Since:
- Twitter4J 2.0.10
gotFriendsTimeline
public void gotFriendsTimeline(ResponseList<Status> statuses)
- Specified by:
gotFriendsTimeline
in interface TwitterListener
gotUserTimeline
public void gotUserTimeline(ResponseList<Status> statuses)
- Specified by:
gotUserTimeline
in interface TwitterListener
gotMentions
public void gotMentions(ResponseList<Status> statuses)
- Specified by:
gotMentions
in interface TwitterListener
- Since:
- Twitter4J 2.0.1
gotRetweetedByMe
public void gotRetweetedByMe(ResponseList<Status> statuses)
- Specified by:
gotRetweetedByMe
in interface TwitterListener
- Since:
- Twitter4J 2.0.10
gotRetweetedToMe
public void gotRetweetedToMe(ResponseList<Status> statuses)
- Specified by:
gotRetweetedToMe
in interface TwitterListener
- Since:
- Twitter4J 2.0.10
gotRetweetsOfMe
public void gotRetweetsOfMe(ResponseList<Status> statuses)
- Specified by:
gotRetweetsOfMe
in interface TwitterListener
- Since:
- Twitter4J 2.0.10
gotRetweetedByUser
public void gotRetweetedByUser(ResponseList<Status> statuses)
- Specified by:
gotRetweetedByUser
in interface TwitterListener
- Since:
- Twitter4J 2.1.9
gotRetweetedToUser
public void gotRetweetedToUser(ResponseList<Status> statuses)
- Specified by:
gotRetweetedToUser
in interface TwitterListener
- Since:
- Twitter4J 2.1.9
gotShowStatus
public void gotShowStatus(Status statuses)
- Specified by:
gotShowStatus
in interface TwitterListener
- Since:
- Twitter4J 2.0.1
updatedStatus
public void updatedStatus(Status statuses)
- Specified by:
updatedStatus
in interface TwitterListener
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
gotRetweets
public void gotRetweets(ResponseList<Status> retweets)
- Specified by:
gotRetweets
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
gotRetweetedBy
public void gotRetweetedBy(ResponseList<User> users)
- Specified by:
gotRetweetedBy
in interface TwitterListener
- Since:
- Twitter4J 2.1.3
gotRetweetedByIDs
public void gotRetweetedByIDs(IDs ids)
- Specified by:
gotRetweetedByIDs
in interface TwitterListener
- Since:
- Twitter4J 2.1.3
gotUserDetail
public void gotUserDetail(User user)
- Specified by:
gotUserDetail
in interface TwitterListener
lookedupUsers
public void lookedupUsers(ResponseList<User> users)
- Specified by:
lookedupUsers
in interface TwitterListener
- Since:
- Twitter4J 2.1.1
searchedUser
public void searchedUser(ResponseList<User> userList)
- Specified by:
searchedUser
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
gotSuggestedUserCategories
public void gotSuggestedUserCategories(ResponseList<Category> categories)
- Specified by:
gotSuggestedUserCategories
in interface TwitterListener
- Since:
- Twitter4J 2.1.1
gotUserSuggestions
public void gotUserSuggestions(ResponseList<User> users)
- Specified by:
gotUserSuggestions
in interface TwitterListener
- Since:
- Twitter4J 2.1.1
gotMemberSuggestions
public void gotMemberSuggestions(ResponseList<User> users)
- Specified by:
gotMemberSuggestions
in interface TwitterListener
- Since:
- Twitter4J 2.1.9
gotProfileImage
public void gotProfileImage(ProfileImage image)
- Specified by:
gotProfileImage
in interface TwitterListener
- Since:
- Twitter4J 2.1.7
gotFriendsStatuses
public void gotFriendsStatuses(PagableResponseList<User> users)
- Specified by:
gotFriendsStatuses
in interface TwitterListener
gotFollowersStatuses
public void gotFollowersStatuses(PagableResponseList<User> users)
- Specified by:
gotFollowersStatuses
in interface TwitterListener
createdUserList
public void createdUserList(UserList userList)
- Specified by:
createdUserList
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
updatedUserList
public void updatedUserList(UserList userList)
- Specified by:
updatedUserList
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
gotUserLists
public void gotUserLists(PagableResponseList<UserList> userLists)
- Specified by:
gotUserLists
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
gotShowUserList
public void gotShowUserList(UserList userList)
- Specified by:
gotShowUserList
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
destroyedUserList
public void destroyedUserList(UserList userList)
- Specified by:
destroyedUserList
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
gotUserListStatuses
public void gotUserListStatuses(ResponseList<Status> statuses)
- Specified by:
gotUserListStatuses
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
gotUserListMemberships
public void gotUserListMemberships(PagableResponseList<UserList> userLists)
- Specified by:
gotUserListMemberships
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
gotUserListSubscriptions
public void gotUserListSubscriptions(PagableResponseList<UserList> userLists)
- Specified by:
gotUserListSubscriptions
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
gotAllUserLists
public void gotAllUserLists(ResponseList<UserList> lists)
- Specified by:
gotAllUserLists
in interface TwitterListener
- Since:
- Twitter4J 2.1.9
gotUserListMembers
public void gotUserListMembers(PagableResponseList<User> users)
- Specified by:
gotUserListMembers
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
addedUserListMember
public void addedUserListMember(UserList userList)
- Specified by:
addedUserListMember
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
addedUserListMembers
public void addedUserListMembers(UserList userList)
- Specified by:
addedUserListMembers
in interface TwitterListener
- Since:
- Twitter4J 2.1.7
deletedUserListMember
public void deletedUserListMember(UserList userList)
- Specified by:
deletedUserListMember
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
checkedUserListMembership
public void checkedUserListMembership(User user)
- Specified by:
checkedUserListMembership
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
gotUserListSubscribers
public void gotUserListSubscribers(PagableResponseList<User> users)
- Specified by:
gotUserListSubscribers
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
subscribedUserList
public void subscribedUserList(UserList userList)
- Specified by:
subscribedUserList
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
unsubscribedUserList
public void unsubscribedUserList(UserList userList)
- Specified by:
unsubscribedUserList
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
checkedUserListSubscription
public void checkedUserListSubscription(User user)
- Specified by:
checkedUserListSubscription
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
gotDirectMessages
public void gotDirectMessages(ResponseList<DirectMessage> messages)
- Specified by:
gotDirectMessages
in interface TwitterListener
gotSentDirectMessages
public void gotSentDirectMessages(ResponseList<DirectMessage> messages)
- Specified by:
gotSentDirectMessages
in interface TwitterListener
sentDirectMessage
public void sentDirectMessage(DirectMessage message)
- Specified by:
sentDirectMessage
in interface TwitterListener
destroyedDirectMessage
public void destroyedDirectMessage(DirectMessage message)
- Specified by:
destroyedDirectMessage
in interface TwitterListener
- Since:
- Twitter4J 2.0.1
gotDirectMessage
public void gotDirectMessage(DirectMessage message)
- Specified by:
gotDirectMessage
in interface TwitterListener
- Since:
- Twitter4J 2.1.9
createdFriendship
public void createdFriendship(User user)
- Specified by:
createdFriendship
in interface TwitterListener
- Since:
- Twitter4J 2.0.1
destroyedFriendship
public void destroyedFriendship(User user)
- Specified by:
destroyedFriendship
in interface TwitterListener
- Since:
- Twitter4J 2.0.1
gotExistsFriendship
public void gotExistsFriendship(boolean exists)
- Specified by:
gotExistsFriendship
in interface TwitterListener
- Since:
- Twitter4J 2.0.1
gotShowFriendship
public void gotShowFriendship(Relationship relationship)
- Specified by:
gotShowFriendship
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
gotIncomingFriendships
public void gotIncomingFriendships(IDs ids)
- Specified by:
gotIncomingFriendships
in interface TwitterListener
- Since:
- Twitter4J 2.1.2
gotOutgoingFriendships
public void gotOutgoingFriendships(IDs ids)
- Specified by:
gotOutgoingFriendships
in interface TwitterListener
- Since:
- Twitter4J 2.1.2
lookedUpFriendships
public void lookedUpFriendships(ResponseList<Friendship> friendships)
- Specified by:
lookedUpFriendships
in interface TwitterListener
- Since:
- Twitter4J 2.1.9
updatedFriendship
public void updatedFriendship(Relationship relationship)
- Specified by:
updatedFriendship
in interface TwitterListener
- Since:
- Twitter4J 2.1.9
gotFriendsIDs
public void gotFriendsIDs(IDs ids)
- Specified by:
gotFriendsIDs
in interface TwitterListener
gotFollowersIDs
public void gotFollowersIDs(IDs ids)
- Specified by:
gotFollowersIDs
in interface TwitterListener
verifiedCredentials
public void verifiedCredentials(User user)
- Specified by:
verifiedCredentials
in interface TwitterListener
gotRateLimitStatus
public void gotRateLimitStatus(RateLimitStatus status)
- Specified by:
gotRateLimitStatus
in interface TwitterListener
updatedProfileColors
public void updatedProfileColors(User user)
- Specified by:
updatedProfileColors
in interface TwitterListener
gotAccountTotals
public void gotAccountTotals(AccountTotals totals)
- Specified by:
gotAccountTotals
in interface TwitterListener
- Parameters:
totals
- account totals- Since:
- Twitter4J 2.1.9
gotAccountSettings
public void gotAccountSettings(AccountSettings settings)
- Specified by:
gotAccountSettings
in interface TwitterListener
- Parameters:
settings
- account settings- Since:
- Twitter4J 2.1.9
updatedProfileImage
public void updatedProfileImage(User user)
- Specified by:
updatedProfileImage
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
updatedProfileBackgroundImage
public void updatedProfileBackgroundImage(User user)
- Specified by:
updatedProfileBackgroundImage
in interface TwitterListener
- Since:
- Twitter4J 2.1.0
updatedProfile
public void updatedProfile(User user)
- Specified by:
updatedProfile
in interface TwitterListener
- Since:
- Twitter4J 2.0.2
gotFavorites
public void gotFavorites(ResponseList<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
enabledNotification
public void enabledNotification(User user)
- Specified by:
enabledNotification
in interface TwitterListener
- Since:
- Twitter4J 2.0.1
disabledNotification
public void disabledNotification(User user)
- Specified by:
disabledNotification
in interface TwitterListener
- Since:
- Twitter4J 2.0.1
createdBlock
public void createdBlock(User user)
- Specified by:
createdBlock
in interface TwitterListener
- Since:
- Twitter4J 2.0.1
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(ResponseList<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
reportedSpam
public void reportedSpam(User reportedSpammer)
- Specified by:
reportedSpam
in interface TwitterListener
gotAvailableTrends
public void gotAvailableTrends(ResponseList<Location> locations)
- Specified by:
gotAvailableTrends
in interface TwitterListener
- Parameters:
locations
- the locations- Since:
- Twitter4J 2.1.1
gotLocationTrends
public void gotLocationTrends(Trends trends)
- Specified by:
gotLocationTrends
in interface TwitterListener
- Parameters:
trends
- trends- Since:
- Twitter4J 2.1.1
searchedPlaces
public void searchedPlaces(ResponseList<Place> places)
- Specified by:
searchedPlaces
in interface TwitterListener
- Since:
- Twitter4J 2.1.7
gotSimilarPlaces
public void gotSimilarPlaces(SimilarPlaces places)
- Specified by:
gotSimilarPlaces
in interface TwitterListener
- Since:
- Twitter4J 2.1.7
gotNearByPlaces
public void gotNearByPlaces(ResponseList<Place> places)
- Specified by:
gotNearByPlaces
in interface TwitterListener
gotReverseGeoCode
public void gotReverseGeoCode(ResponseList<Place> places)
- Specified by:
gotReverseGeoCode
in interface TwitterListener
gotGeoDetails
public void gotGeoDetails(Place place)
- Specified by:
gotGeoDetails
in interface TwitterListener
createdPlace
public void createdPlace(Place place)
- Specified by:
createdPlace
in interface TwitterListener
- Since:
- Twitter4J 2.1.7
gotTermsOfService
public void gotTermsOfService(java.lang.String tof)
- Specified by:
gotTermsOfService
in interface TwitterListener
- Since:
- Twitter4J 2.1.7
gotPrivacyPolicy
public void gotPrivacyPolicy(java.lang.String privacyPolicy)
- Specified by:
gotPrivacyPolicy
in interface TwitterListener
- Since:
- Twitter4J 2.1.7
gotRelatedResults
public void gotRelatedResults(RelatedResults relatedResults)
- Specified by:
gotRelatedResults
in interface TwitterListener
tested
public void tested(boolean test)
- Specified by:
tested
in interface TwitterListener
onException
public void onException(TwitterException ex,
TwitterMethod method)
- Specified by:
onException
in interface TwitterListener
- Parameters:
ex
- TwitterExceptionmethod
-