public class TwitterAdapter extends java.lang.Object implements TwitterListener
AsyncTwitter
,
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
Constructor and Description |
---|
TwitterAdapter() |
public void searched(QueryResult result)
searched
in interface TwitterListener
public void gotTrends(Trends trends)
gotTrends
in interface TwitterListener
public void gotCurrentTrends(Trends trends)
gotCurrentTrends
in interface TwitterListener
public void gotDailyTrends(java.util.List<Trends> trendsList)
gotDailyTrends
in interface TwitterListener
public void gotWeeklyTrends(java.util.List<Trends> trendsList)
gotWeeklyTrends
in interface TwitterListener
public void gotPublicTimeline(ResponseList<Status> statuses)
gotPublicTimeline
in interface TwitterListener
public void gotHomeTimeline(ResponseList<Status> statuses)
gotHomeTimeline
in interface TwitterListener
public void gotFriendsTimeline(ResponseList<Status> statuses)
gotFriendsTimeline
in interface TwitterListener
public void gotUserTimeline(ResponseList<Status> statuses)
gotUserTimeline
in interface TwitterListener
public void gotMentions(ResponseList<Status> statuses)
gotMentions
in interface TwitterListener
public void gotRetweetedByMe(ResponseList<Status> statuses)
gotRetweetedByMe
in interface TwitterListener
public void gotRetweetedToMe(ResponseList<Status> statuses)
gotRetweetedToMe
in interface TwitterListener
public void gotRetweetsOfMe(ResponseList<Status> statuses)
gotRetweetsOfMe
in interface TwitterListener
public void gotRetweetedByUser(ResponseList<Status> statuses)
gotRetweetedByUser
in interface TwitterListener
public void gotRetweetedToUser(ResponseList<Status> statuses)
gotRetweetedToUser
in interface TwitterListener
public void gotShowStatus(Status statuses)
gotShowStatus
in interface TwitterListener
public void updatedStatus(Status statuses)
updatedStatus
in interface TwitterListener
public void destroyedStatus(Status destroyedStatus)
destroyedStatus
in interface TwitterListener
public void retweetedStatus(Status retweetedStatus)
retweetedStatus
in interface TwitterListener
public void gotRetweets(ResponseList<Status> retweets)
gotRetweets
in interface TwitterListener
public void gotRetweetedBy(ResponseList<User> users)
gotRetweetedBy
in interface TwitterListener
public void gotRetweetedByIDs(IDs ids)
gotRetweetedByIDs
in interface TwitterListener
public void gotUserDetail(User user)
gotUserDetail
in interface TwitterListener
public void lookedupUsers(ResponseList<User> users)
lookedupUsers
in interface TwitterListener
public void searchedUser(ResponseList<User> userList)
searchedUser
in interface TwitterListener
public void gotSuggestedUserCategories(ResponseList<Category> categories)
gotSuggestedUserCategories
in interface TwitterListener
public void gotUserSuggestions(ResponseList<User> users)
gotUserSuggestions
in interface TwitterListener
public void gotMemberSuggestions(ResponseList<User> users)
gotMemberSuggestions
in interface TwitterListener
public void gotProfileImage(ProfileImage image)
gotProfileImage
in interface TwitterListener
public void gotFriendsStatuses(PagableResponseList<User> users)
gotFriendsStatuses
in interface TwitterListener
public void gotFollowersStatuses(PagableResponseList<User> users)
gotFollowersStatuses
in interface TwitterListener
public void createdUserList(UserList userList)
createdUserList
in interface TwitterListener
public void updatedUserList(UserList userList)
updatedUserList
in interface TwitterListener
public void gotUserLists(PagableResponseList<UserList> userLists)
gotUserLists
in interface TwitterListener
public void gotShowUserList(UserList userList)
gotShowUserList
in interface TwitterListener
public void destroyedUserList(UserList userList)
destroyedUserList
in interface TwitterListener
public void gotUserListStatuses(ResponseList<Status> statuses)
gotUserListStatuses
in interface TwitterListener
public void gotUserListMemberships(PagableResponseList<UserList> userLists)
gotUserListMemberships
in interface TwitterListener
public void gotUserListSubscriptions(PagableResponseList<UserList> userLists)
gotUserListSubscriptions
in interface TwitterListener
public void gotAllUserLists(ResponseList<UserList> lists)
gotAllUserLists
in interface TwitterListener
public void gotUserListMembers(PagableResponseList<User> users)
gotUserListMembers
in interface TwitterListener
public void addedUserListMember(UserList userList)
addedUserListMember
in interface TwitterListener
public void addedUserListMembers(UserList userList)
addedUserListMembers
in interface TwitterListener
public void deletedUserListMember(UserList userList)
deletedUserListMember
in interface TwitterListener
public void checkedUserListMembership(User user)
checkedUserListMembership
in interface TwitterListener
public void gotUserListSubscribers(PagableResponseList<User> users)
gotUserListSubscribers
in interface TwitterListener
public void subscribedUserList(UserList userList)
subscribedUserList
in interface TwitterListener
public void unsubscribedUserList(UserList userList)
unsubscribedUserList
in interface TwitterListener
public void checkedUserListSubscription(User user)
checkedUserListSubscription
in interface TwitterListener
public void gotDirectMessages(ResponseList<DirectMessage> messages)
gotDirectMessages
in interface TwitterListener
public void gotSentDirectMessages(ResponseList<DirectMessage> messages)
gotSentDirectMessages
in interface TwitterListener
public void sentDirectMessage(DirectMessage message)
sentDirectMessage
in interface TwitterListener
public void destroyedDirectMessage(DirectMessage message)
destroyedDirectMessage
in interface TwitterListener
public void gotDirectMessage(DirectMessage message)
gotDirectMessage
in interface TwitterListener
public void createdFriendship(User user)
createdFriendship
in interface TwitterListener
public void destroyedFriendship(User user)
destroyedFriendship
in interface TwitterListener
public void gotExistsFriendship(boolean exists)
gotExistsFriendship
in interface TwitterListener
public void gotShowFriendship(Relationship relationship)
gotShowFriendship
in interface TwitterListener
public void gotIncomingFriendships(IDs ids)
gotIncomingFriendships
in interface TwitterListener
public void gotOutgoingFriendships(IDs ids)
gotOutgoingFriendships
in interface TwitterListener
public void lookedUpFriendships(ResponseList<Friendship> friendships)
lookedUpFriendships
in interface TwitterListener
public void updatedFriendship(Relationship relationship)
updatedFriendship
in interface TwitterListener
public void gotFriendsIDs(IDs ids)
gotFriendsIDs
in interface TwitterListener
public void gotFollowersIDs(IDs ids)
gotFollowersIDs
in interface TwitterListener
public void verifiedCredentials(User user)
verifiedCredentials
in interface TwitterListener
public void gotRateLimitStatus(RateLimitStatus status)
gotRateLimitStatus
in interface TwitterListener
public void updatedProfileColors(User user)
updatedProfileColors
in interface TwitterListener
public void gotAccountTotals(AccountTotals totals)
gotAccountTotals
in interface TwitterListener
totals
- account totalspublic void gotAccountSettings(AccountSettings settings)
gotAccountSettings
in interface TwitterListener
settings
- account settingspublic void updatedProfileImage(User user)
updatedProfileImage
in interface TwitterListener
public void updatedProfileBackgroundImage(User user)
updatedProfileBackgroundImage
in interface TwitterListener
public void updatedProfile(User user)
updatedProfile
in interface TwitterListener
public void gotFavorites(ResponseList<Status> statuses)
gotFavorites
in interface TwitterListener
public void createdFavorite(Status status)
createdFavorite
in interface TwitterListener
public void destroyedFavorite(Status status)
destroyedFavorite
in interface TwitterListener
public void enabledNotification(User user)
enabledNotification
in interface TwitterListener
public void disabledNotification(User user)
disabledNotification
in interface TwitterListener
public void createdBlock(User user)
createdBlock
in interface TwitterListener
public void destroyedBlock(User user)
destroyedBlock
in interface TwitterListener
public void gotExistsBlock(boolean blockExists)
gotExistsBlock
in interface TwitterListener
public void gotBlockingUsers(ResponseList<User> blockingUsers)
gotBlockingUsers
in interface TwitterListener
public void gotBlockingUsersIDs(IDs blockingUsersIDs)
gotBlockingUsersIDs
in interface TwitterListener
public void reportedSpam(User reportedSpammer)
reportedSpam
in interface TwitterListener
public void gotAvailableTrends(ResponseList<Location> locations)
gotAvailableTrends
in interface TwitterListener
locations
- the locationspublic void gotLocationTrends(Trends trends)
gotLocationTrends
in interface TwitterListener
trends
- trendspublic void searchedPlaces(ResponseList<Place> places)
searchedPlaces
in interface TwitterListener
public void gotSimilarPlaces(SimilarPlaces places)
gotSimilarPlaces
in interface TwitterListener
public void gotNearByPlaces(ResponseList<Place> places)
gotNearByPlaces
in interface TwitterListener
public void gotReverseGeoCode(ResponseList<Place> places)
gotReverseGeoCode
in interface TwitterListener
public void gotGeoDetails(Place place)
gotGeoDetails
in interface TwitterListener
public void createdPlace(Place place)
createdPlace
in interface TwitterListener
public void gotTermsOfService(java.lang.String tof)
gotTermsOfService
in interface TwitterListener
public void gotPrivacyPolicy(java.lang.String privacyPolicy)
gotPrivacyPolicy
in interface TwitterListener
public void gotRelatedResults(RelatedResults relatedResults)
gotRelatedResults
in interface TwitterListener
public void tested(boolean test)
tested
in interface TwitterListener
public void onException(TwitterException ex, TwitterMethod method)
onException
in interface TwitterListener
ex
- TwitterExceptionmethod
-