twitter4j

## Class TwitterAdapter

- java.lang.Object
- - twitter4j.TwitterAdapter

All Implemented Interfaces:
  TwitterListener

    public class TwitterAdapter
    extends Object
    implements TwitterListener

A handy adapter of TwitterListener.

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

### Constructor Summary

Constructors
Constructor and Description
`TwitterAdapter()`

### Method Summary

All Methods Instance Methods Concrete Methods
`void` `checkedUserListMembership(User users)`
`void` `checkedUserListSubscription(User user)`
`void` `createdBlock(User user)`
`void` `createdFavorite(Status status)`
`void` `createdFriendship(User user)`
`void` `createdMute(User user)`
`void` `createdSavedSearch(SavedSearch savedSearch)`
`void` `createdUserList(UserList userList)`
`void` `createdUserListMember(UserList userList)`
`void` `createdUserListMembers(UserList userList)`
`void` `destroyedBlock(User user)`
`void` `destroyedDirectMessage(DirectMessage message)`
`void` `destroyedFavorite(Status status)`
`void` `destroyedFriendship(User user)`
`void` `destroyedMute(User user)`
`void` `destroyedSavedSearch(SavedSearch savedSearch)`
`void` `destroyedStatus(Status destroyedStatus)`
`void` `destroyedUserList(UserList userList)`
`void` `destroyedUserListMember(UserList userList)`
`void` `gotAccountSettings(AccountSettings settings)`
`void` `gotAPIConfiguration(TwitterAPIConfiguration conf)`
`void` `gotAvailableTrends(ResponseList<Location> locations)`
`void` `gotBlockIDs(IDs blockingUsersIDs)`
`void` `gotBlocksList(ResponseList<User> blockingUsers)`
`void` `gotClosestTrends(ResponseList<Location> locations)`
`void` `gotContributees(ResponseList<User> users)`
`void` `gotContributors(ResponseList<User> users)`
`void` `gotDirectMessage(DirectMessage message)`
`void` `gotDirectMessages(ResponseList<DirectMessage> messages)`
`void` `gotFavorites(ResponseList<Status> statuses)`
`void` `gotFollowersIDs(IDs ids)`
`void` `gotFollowersList(PagableResponseList<User> users)`
`void` `gotFriendsIDs(IDs ids)`
`void` `gotFriendsList(PagableResponseList<User> users)`
`void` `gotGeoDetails(Place place)`
`void` `gotHomeTimeline(ResponseList<Status> statuses)`
`void` `gotIncomingFriendships(IDs ids)`
`void` `gotLanguages(ResponseList<HelpResources.Language> languages)`
`void` `gotMemberSuggestions(ResponseList<User> users)`
`void` `gotMentions(ResponseList<Status> statuses)`
`void` `gotMuteIDs(IDs blockingUsersIDs)`
`void` `gotMutesList(ResponseList<User> blockingUsers)`
`void` `gotOAuth2Token(OAuth2Token token)`
`void` `gotOAuthAccessToken(AccessToken token)`
`void` `gotOAuthRequestToken(RequestToken token)`
`void` `gotOEmbed(OEmbed oembed)`
`void` `gotOutgoingFriendships(IDs ids)`
`void` `gotPlaceTrends(Trends trends)`
`void` `gotPrivacyPolicy(String privacyPolicy)`
`void` `gotRateLimitStatus(Map<String,RateLimitStatus> rateLimitStatus)`
`void` `gotRetweets(ResponseList<Status> retweets)`
`void` `gotRetweetsOfMe(ResponseList<Status> statuses)`
`void` `gotReverseGeoCode(ResponseList<Place> places)`
`void` `gotSavedSearch(SavedSearch savedSearch)`
`void` `gotSavedSearches(ResponseList<SavedSearch> savedSearches)`
`void` `gotSentDirectMessages(ResponseList<DirectMessage> messages)`
`void` `gotShowFriendship(Relationship relationship)`
`void` `gotShowStatus(Status status)`
`void` `gotShowUserList(UserList userList)`
`void` `gotSimilarPlaces(ResponseList<Place> places)`
`void` `gotSuggestedUserCategories(ResponseList<Category> category)`
`void` `gotTermsOfService(String tof)`
`void` `gotUserDetail(User user)`
`void` `gotUserListMembers(PagableResponseList<User> users)`
`void` `gotUserListMemberships(PagableResponseList<UserList> userLists)`
`void` `gotUserLists(ResponseList<UserList> userLists)`
`void` `gotUserListStatuses(ResponseList<Status> statuses)`
`void` `gotUserListSubscribers(PagableResponseList<User> users)`
`void` `gotUserListSubscriptions(PagableResponseList<UserList> userLists)`
`void` `gotUserSuggestions(ResponseList<User> users)`
`void` `gotUserTimeline(ResponseList<Status> statuses)`
`void` `lookedup(ResponseList<Status> statuses)`
`void` `lookedUpFriendships(ResponseList<Friendship> friendships)`
`void` `lookedupUsers(ResponseList<User> users)`
`void` `onException(TwitterException te, TwitterMethod method)`
`void` `removedProfileBanner()`
`void` `reportedSpam(User reportedSpammer)`
`void` `retweetedStatus(Status retweetedStatus)`
`void` `searched(QueryResult queryResult)`
`void` `searchedPlaces(ResponseList<Place> places)`
`void` `searchedUser(ResponseList<User> userList)`
`void` `sentDirectMessage(DirectMessage message)`
`void` `subscribedUserList(UserList userList)`
`void` `unsubscribedUserList(UserList userList)`
`void` `updatedAccountSettings(AccountSettings settings)`
`void` `updatedFriendship(Relationship relationship)`
`void` `updatedProfile(User user)`
`void` `updatedProfileBackgroundImage(User user)`
`void` `updatedProfileBanner()`
`void` `updatedProfileColors(User user)`
`void` `updatedProfileImage(User user)`
`void` `updatedStatus(Status status)`
`void` `updatedUserList(UserList userList)`
`void` `verifiedCredentials(User user)`

### Methods inherited from class java.lang.Object

`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Constructor Detail

#### TwitterAdapter

    public TwitterAdapter()

### Method Detail

#### gotMentions

    public void gotMentions(ResponseList<Status> statuses)

Specified by:
  `gotMentions` in interface `TwitterListener`

#### gotHomeTimeline

    public void gotHomeTimeline(ResponseList<Status> statuses)

Specified by:
  `gotHomeTimeline` in interface `TwitterListener`

#### gotUserTimeline

    public void gotUserTimeline(ResponseList<Status> statuses)

Specified by:
  `gotUserTimeline` in interface `TwitterListener`

#### gotRetweetsOfMe

    public void gotRetweetsOfMe(ResponseList<Status> statuses)

Specified by:
  `gotRetweetsOfMe` in interface `TwitterListener`

#### gotRetweets

    public void gotRetweets(ResponseList<Status> retweets)

Specified by:
  `gotRetweets` in interface `TwitterListener`

#### gotShowStatus

    public void gotShowStatus(Status status)

Specified by:
  `gotShowStatus` in interface `TwitterListener`

#### destroyedStatus

    public void destroyedStatus(Status destroyedStatus)

Specified by:
  `destroyedStatus` in interface `TwitterListener`

#### updatedStatus

    public void updatedStatus(Status status)

Specified by:
  `updatedStatus` in interface `TwitterListener`

#### retweetedStatus

    public void retweetedStatus(Status retweetedStatus)

Specified by:
  `retweetedStatus` in interface `TwitterListener`

#### gotOEmbed

    public void gotOEmbed(OEmbed oembed)

Specified by:
  `gotOEmbed` in interface `TwitterListener`

#### lookedup

    public void lookedup(ResponseList<Status> statuses)

Specified by:
  `lookedup` in interface `TwitterListener`

#### searched

    public void searched(QueryResult queryResult)

Specified by:
  `searched` in interface `TwitterListener`

#### 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`

#### gotDirectMessage

    public void gotDirectMessage(DirectMessage message)

Specified by:
  `gotDirectMessage` in interface `TwitterListener`

#### destroyedDirectMessage

    public void destroyedDirectMessage(DirectMessage message)

Specified by:
  `destroyedDirectMessage` in interface `TwitterListener`

#### sentDirectMessage

    public void sentDirectMessage(DirectMessage message)

Specified by:
  `sentDirectMessage` in interface `TwitterListener`

#### gotFriendsIDs

    public void gotFriendsIDs(IDs ids)

Specified by:
  `gotFriendsIDs` in interface `TwitterListener`

#### gotFollowersIDs

    public void gotFollowersIDs(IDs ids)

Specified by:
  `gotFollowersIDs` in interface `TwitterListener`

#### lookedUpFriendships

    public void lookedUpFriendships(ResponseList<Friendship> friendships)

Specified by:
  `lookedUpFriendships` in interface `TwitterListener`

#### gotIncomingFriendships

    public void gotIncomingFriendships(IDs ids)

Specified by:
  `gotIncomingFriendships` in interface `TwitterListener`

#### gotOutgoingFriendships

    public void gotOutgoingFriendships(IDs ids)

Specified by:
  `gotOutgoingFriendships` in interface `TwitterListener`

#### createdFriendship

    public void createdFriendship(User user)

Specified by:
  `createdFriendship` in interface `TwitterListener`

#### destroyedFriendship

    public void destroyedFriendship(User user)

Specified by:
  `destroyedFriendship` in interface `TwitterListener`

#### updatedFriendship

    public void updatedFriendship(Relationship relationship)

Specified by:
  `updatedFriendship` in interface `TwitterListener`

#### gotShowFriendship

    public void gotShowFriendship(Relationship relationship)

Specified by:
  `gotShowFriendship` in interface `TwitterListener`

#### gotFriendsList

    public void gotFriendsList(PagableResponseList<User> users)

Specified by:
  `gotFriendsList` in interface `TwitterListener`

#### gotFollowersList

    public void gotFollowersList(PagableResponseList<User> users)

Specified by:
  `gotFollowersList` in interface `TwitterListener`

#### gotAccountSettings

    public void gotAccountSettings(AccountSettings settings)

Specified by:
  `gotAccountSettings` in interface `TwitterListener`

#### verifiedCredentials

    public void verifiedCredentials(User user)

Specified by:
  `verifiedCredentials` in interface `TwitterListener`

#### updatedAccountSettings

    public void updatedAccountSettings(AccountSettings settings)

Specified by:
  `updatedAccountSettings` in interface `TwitterListener`

#### updatedProfile

    public void updatedProfile(User user)

Specified by:
  `updatedProfile` in interface `TwitterListener`

#### updatedProfileBackgroundImage

    public void updatedProfileBackgroundImage(User user)

Specified by:
  `updatedProfileBackgroundImage` in interface `TwitterListener`

#### updatedProfileColors

    public void updatedProfileColors(User user)

Specified by:
  `updatedProfileColors` in interface `TwitterListener`

#### updatedProfileImage

    public void updatedProfileImage(User user)

Specified by:
  `updatedProfileImage` in interface `TwitterListener`

#### gotBlocksList

    public void gotBlocksList(ResponseList<User> blockingUsers)

Specified by:
  `gotBlocksList` in interface `TwitterListener`

#### gotBlockIDs

    public void gotBlockIDs(IDs blockingUsersIDs)

Specified by:
  `gotBlockIDs` in interface `TwitterListener`

#### createdBlock

    public void createdBlock(User user)

Specified by:
  `createdBlock` in interface `TwitterListener`

#### destroyedBlock

    public void destroyedBlock(User user)

Specified by:
  `destroyedBlock` in interface `TwitterListener`

#### lookedupUsers

    public void lookedupUsers(ResponseList<User> users)

Specified by:
  `lookedupUsers` in interface `TwitterListener`

#### gotUserDetail

    public void gotUserDetail(User user)

Specified by:
  `gotUserDetail` in interface `TwitterListener`

#### searchedUser

    public void searchedUser(ResponseList<User> userList)

Specified by:
  `searchedUser` in interface `TwitterListener`

#### gotContributees

    public void gotContributees(ResponseList<User> users)

Specified by:
  `gotContributees` in interface `TwitterListener`

#### gotContributors

    public void gotContributors(ResponseList<User> users)

Specified by:
  `gotContributors` in interface `TwitterListener`

#### removedProfileBanner

    public void removedProfileBanner()

Specified by:
  `removedProfileBanner` in interface `TwitterListener`

#### updatedProfileBanner

    public void updatedProfileBanner()

Specified by:
  `updatedProfileBanner` in interface `TwitterListener`

#### gotMutesList

    public void gotMutesList(ResponseList<User> blockingUsers)

Specified by:
  `gotMutesList` in interface `TwitterListener`

#### gotMuteIDs

    public void gotMuteIDs(IDs blockingUsersIDs)

Specified by:
  `gotMuteIDs` in interface `TwitterListener`

#### createdMute

    public void createdMute(User user)

Specified by:
  `createdMute` in interface `TwitterListener`

#### destroyedMute

    public void destroyedMute(User user)

Specified by:
  `destroyedMute` in interface `TwitterListener`

#### gotUserSuggestions

    public void gotUserSuggestions(ResponseList<User> users)

Specified by:
  `gotUserSuggestions` in interface `TwitterListener`

#### gotSuggestedUserCategories

    public void gotSuggestedUserCategories(ResponseList<Category> category)

Specified by:
  `gotSuggestedUserCategories` in interface `TwitterListener`

#### gotMemberSuggestions

    public void gotMemberSuggestions(ResponseList<User> users)

Specified by:
  `gotMemberSuggestions` in interface `TwitterListener`

#### 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`

#### gotUserLists

    public void gotUserLists(ResponseList<UserList> userLists)

Specified by:
  `gotUserLists` in interface `TwitterListener`

#### gotUserListStatuses

    public void gotUserListStatuses(ResponseList<Status> statuses)

Specified by:
  `gotUserListStatuses` in interface `TwitterListener`

#### destroyedUserListMember

    public void destroyedUserListMember(UserList userList)

Specified by:
  `destroyedUserListMember` in interface `TwitterListener`

#### gotUserListMemberships

    public void gotUserListMemberships(PagableResponseList<UserList> userLists)

Specified by:
  `gotUserListMemberships` in interface `TwitterListener`

#### gotUserListSubscribers

    public void gotUserListSubscribers(PagableResponseList<User> users)

Specified by:
  `gotUserListSubscribers` in interface `TwitterListener`

#### subscribedUserList

    public void subscribedUserList(UserList userList)

Specified by:
  `subscribedUserList` in interface `TwitterListener`

#### checkedUserListSubscription

    public void checkedUserListSubscription(User user)

Specified by:
  `checkedUserListSubscription` in interface `TwitterListener`

#### unsubscribedUserList

    public void unsubscribedUserList(UserList userList)

Specified by:
  `unsubscribedUserList` in interface `TwitterListener`

#### createdUserListMembers

    public void createdUserListMembers(UserList userList)

Specified by:
  `createdUserListMembers` in interface `TwitterListener`

#### checkedUserListMembership

    public void checkedUserListMembership(User users)

Specified by:
  `checkedUserListMembership` in interface `TwitterListener`

#### createdUserListMember

    public void createdUserListMember(UserList userList)

Specified by:
  `createdUserListMember` in interface `TwitterListener`

#### destroyedUserList

    public void destroyedUserList(UserList userList)

Specified by:
  `destroyedUserList` in interface `TwitterListener`

#### updatedUserList

    public void updatedUserList(UserList userList)

Specified by:
  `updatedUserList` in interface `TwitterListener`

#### createdUserList

    public void createdUserList(UserList userList)

Specified by:
  `createdUserList` in interface `TwitterListener`

#### gotShowUserList

    public void gotShowUserList(UserList userList)

Specified by:
  `gotShowUserList` in interface `TwitterListener`

#### gotUserListSubscriptions

    public void gotUserListSubscriptions(PagableResponseList<UserList> userLists)

Specified by:
  `gotUserListSubscriptions` in interface `TwitterListener`

#### gotUserListMembers

    public void gotUserListMembers(PagableResponseList<User> users)

Specified by:
  `gotUserListMembers` in interface `TwitterListener`

#### gotSavedSearches

    public void gotSavedSearches(ResponseList<SavedSearch> savedSearches)

Specified by:
  `gotSavedSearches` in interface `TwitterListener`

#### gotSavedSearch

    public void gotSavedSearch(SavedSearch savedSearch)

Specified by:
  `gotSavedSearch` in interface `TwitterListener`

#### createdSavedSearch

    public void createdSavedSearch(SavedSearch savedSearch)

Specified by:
  `createdSavedSearch` in interface `TwitterListener`

#### destroyedSavedSearch

    public void destroyedSavedSearch(SavedSearch savedSearch)

Specified by:
  `destroyedSavedSearch` in interface `TwitterListener`

#### gotGeoDetails

    public void gotGeoDetails(Place place)

Specified by:
  `gotGeoDetails` in interface `TwitterListener`

#### gotReverseGeoCode

    public void gotReverseGeoCode(ResponseList<Place> places)

Specified by:
  `gotReverseGeoCode` in interface `TwitterListener`

#### searchedPlaces

    public void searchedPlaces(ResponseList<Place> places)

Specified by:
  `searchedPlaces` in interface `TwitterListener`

#### gotSimilarPlaces

    public void gotSimilarPlaces(ResponseList<Place> places)

Specified by:
  `gotSimilarPlaces` in interface `TwitterListener`

#### gotPlaceTrends

    public void gotPlaceTrends(Trends trends)

Specified by:
  `gotPlaceTrends` in interface `TwitterListener`

#### gotAvailableTrends

    public void gotAvailableTrends(ResponseList<Location> locations)

Specified by:
  `gotAvailableTrends` in interface `TwitterListener`

#### gotClosestTrends

    public void gotClosestTrends(ResponseList<Location> locations)

Specified by:
  `gotClosestTrends` in interface `TwitterListener`

#### reportedSpam

    public void reportedSpam(User reportedSpammer)

Specified by:
  `reportedSpam` in interface `TwitterListener`

#### gotOAuthRequestToken

    public void gotOAuthRequestToken(RequestToken token)

Specified by:
  `gotOAuthRequestToken` in interface `TwitterListener`

#### gotOAuthAccessToken

    public void gotOAuthAccessToken(AccessToken token)

Specified by:
  `gotOAuthAccessToken` in interface `TwitterListener`

#### gotOAuth2Token

    public void gotOAuth2Token(OAuth2Token token)

Specified by:
  `gotOAuth2Token` in interface `TwitterListener`

#### gotAPIConfiguration

    public void gotAPIConfiguration(TwitterAPIConfiguration conf)

Specified by:
  `gotAPIConfiguration` in interface `TwitterListener`

#### gotLanguages

    public void gotLanguages(ResponseList<HelpResources.Language> languages)

Specified by:
  `gotLanguages` in interface `TwitterListener`

#### gotPrivacyPolicy

    public void gotPrivacyPolicy(String privacyPolicy)

Specified by:
  `gotPrivacyPolicy` in interface `TwitterListener`

#### gotTermsOfService

    public void gotTermsOfService(String tof)

Specified by:
  `gotTermsOfService` in interface `TwitterListener`

#### gotRateLimitStatus

    public void gotRateLimitStatus(Map<String,RateLimitStatus> rateLimitStatus)

Specified by:
  `gotRateLimitStatus` in interface `TwitterListener`

#### onException

    public void onException(TwitterException te,
                            TwitterMethod method)

Specified by:
  `onException` in interface `TwitterListener`