twitter4j
Interface TwitterListener

All Known Implementing Classes:
TwitterAdapter

public interface TwitterListener

A listner for receiving asynchronous responses from Twitter Async APIs.

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

Field Summary
static TwitterMethod ADD_LIST_MEMBER
           
static TwitterMethod AVAILABLE_TRENDS
           
static TwitterMethod BLOCKING_USERS
           
static TwitterMethod BLOCKING_USERS_IDS
           
static TwitterMethod CHECK_LIST_MEMBERSHIP
           
static TwitterMethod CHECK_LIST_SUBSCRIPTION
           
static TwitterMethod CREATE_BLOCK
           
static TwitterMethod CREATE_FAVORITE
           
static TwitterMethod CREATE_FRIENDSHIP
           
static TwitterMethod CREATE_USER_LIST
           
static TwitterMethod CURRENT_TRENDS
           
static TwitterMethod DAILY_TRENDS
           
static TwitterMethod DELETE_LIST_MEMBER
           
static TwitterMethod DESTROY_BLOCK
           
static TwitterMethod DESTROY_DIRECT_MESSAGES
           
static TwitterMethod DESTROY_FAVORITE
           
static TwitterMethod DESTROY_FRIENDSHIP
           
static TwitterMethod DESTROY_STATUS
           
static TwitterMethod DIRECT_MESSAGES
           
static TwitterMethod DISABLE_NOTIFICATION
           
static TwitterMethod DSTROY_USER_LIST
           
static TwitterMethod ENABLE_NOTIFICATION
           
static TwitterMethod EXISTS_BLOCK
           
static TwitterMethod EXISTS_FRIENDSHIP
           
static TwitterMethod FAVORITES
           
static TwitterMethod FOLLOWERS_IDS
           
static TwitterMethod FOLLOWERS_STATUSES
           
static TwitterMethod FRIENDS_IDS
           
static TwitterMethod FRIENDS_STATUSES
           
static TwitterMethod FRIENDS_TIMELINE
           
static TwitterMethod GEO_DETAILS
           
static TwitterMethod HOME_TIMELINE
           
static TwitterMethod INCOMING_FRIENDSHIP
           
static TwitterMethod LIST_MEMBERS
           
static TwitterMethod LIST_SUBSCRIBERS
           
static TwitterMethod LOCATION_TRENDS
           
static TwitterMethod LOOKUP_USERS
           
static TwitterMethod MENTIONS
           
static TwitterMethod NEAR_BY_PLACES
           
static TwitterMethod OUTGOING_FRIENDSHIPS
           
static TwitterMethod PUBLIC_TIMELINE
           
static TwitterMethod RATE_LIMIT_STATUS
           
static TwitterMethod REPORT_SPAM
           
static TwitterMethod RETWEET_STATUS
           
static TwitterMethod RETWEETED_BY_ME
           
static TwitterMethod RETWEETED_TO_ME
           
static TwitterMethod RETWEETS
           
static TwitterMethod RETWEETS_OF_ME
           
static TwitterMethod REVERSE_GEO_CODE
           
static TwitterMethod SEARCH
           
static TwitterMethod SEARCH_USERS
           
static TwitterMethod SEND_DIRECT_MESSAGE
           
static TwitterMethod SENT_DIRECT_MESSAGES
           
static TwitterMethod SHOW_FRIENDSHIP
           
static TwitterMethod SHOW_STATUS
           
static TwitterMethod SHOW_USER
           
static TwitterMethod SHOW_USER_LIST
           
static TwitterMethod SUBSCRIBE_LIST
           
static TwitterMethod SUGGESTED_USER_CATEGORIES
           
static TwitterMethod TEST
           
static TwitterMethod TRENDS
           
static TwitterMethod UNSUBSCRIBE_LIST
           
static TwitterMethod UPDATE_DELIVERY_DEVICE
           
static TwitterMethod UPDATE_PROFILE
           
static TwitterMethod UPDATE_PROFILE_BACKGROUND_IMAGE
           
static TwitterMethod UPDATE_PROFILE_COLORS
           
static TwitterMethod UPDATE_PROFILE_IMAGE
           
static TwitterMethod UPDATE_STATUS
           
static TwitterMethod UPDATE_USER_LIST
           
static TwitterMethod USER_LIST_MEMBERSHIPS
           
static TwitterMethod USER_LIST_STATUSES
           
static TwitterMethod USER_LIST_SUBSCRIPTIONS
           
static TwitterMethod USER_LISTS
           
static TwitterMethod USER_SUGGESTIONS
           
static TwitterMethod USER_TIMELINE
           
static TwitterMethod WEEKLY_TRENDS
           
 
Method Summary
 void addedUserListMember(UserList userList)
           
 void checkedUserListMembership(User users)
           
 void checkedUserListSubscription(User user)
           
 void createdBlock(User user)
           
 void createdFavorite(Status status)
           
 void createdFriendship(User user)
           
 void createdUserList(UserList userList)
           
 void deletedUserListMember(UserList userList)
           
 void destroyedBlock(User user)
           
 void destroyedDirectMessage(DirectMessage message)
           
 void destroyedFavorite(Status status)
           
 void destroyedFriendship(User user)
           
 void destroyedStatus(Status destroyedStatus)
           
 void destroyedUserList(UserList userList)
           
 void disabledNotification(User user)
           
 void enabledNotification(User user)
           
 void gotAvailableTrends(ResponseList<Location> locations)
           
 void gotBlockingUsers(ResponseList<User> blockingUsers)
           
 void gotBlockingUsersIDs(IDs blockingUsersIDs)
           
 void gotCurrentTrends(Trends trends)
           
 void gotDailyTrends(java.util.List<Trends> trendsList)
           
 void gotDirectMessages(ResponseList<DirectMessage> messages)
           
 void gotExistsBlock(boolean blockExists)
           
 void gotExistsFriendship(boolean exists)
           
 void gotFavorites(ResponseList<Status> statuses)
           
 void gotFollowersIDs(IDs ids)
           
 void gotFollowersStatuses(PagableResponseList<User> users)
           
 void gotFriendsIDs(IDs ids)
           
 void gotFriendsStatuses(PagableResponseList<User> users)
           
 void gotFriendsTimeline(ResponseList<Status> statuses)
           
 void gotGeoDetails(Place place)
           
 void gotHomeTimeline(ResponseList<Status> statuses)
           
 void gotIncomingFriendships(IDs ids)
           
 void gotLocationTrends(Trends trends)
           
 void gotMentions(ResponseList<Status> statuses)
           
 void gotNearByPlaces(ResponseList<Place> places)
           
 void gotOutgoingFriendships(IDs ids)
           
 void gotPublicTimeline(ResponseList<Status> statuses)
           
 void gotRateLimitStatus(RateLimitStatus rateLimitStatus)
           
 void gotRetweetedByMe(ResponseList<Status> statuses)
           
 void gotRetweetedToMe(ResponseList<Status> statuses)
           
 void gotRetweets(ResponseList<Status> retweets)
           
 void gotRetweetsOfMe(ResponseList<Status> statuses)
           
 void gotReverseGeoCode(ResponseList<Place> places)
           
 void gotSentDirectMessages(ResponseList<DirectMessage> messages)
           
 void gotShowFriendship(Relationship relationship)
           
 void gotShowStatus(Status status)
           
 void gotShowUserList(UserList userList)
           
 void gotSuggestedUserCategories(ResponseList<Category> category)
           
 void gotTrends(Trends trends)
           
 void gotUserDetail(User user)
           
 void gotUserListMembers(PagableResponseList<User> users)
           
 void gotUserListMemberships(PagableResponseList<UserList> userLists)
           
 void gotUserLists(PagableResponseList<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 gotWeeklyTrends(java.util.List<Trends> trendsList)
           
 void lookedupUsers(ResponseList<User> users)
           
 void onException(TwitterException te, TwitterMethod method)
           
 void reportedSpam(User reportedSpammer)
           
 void retweetedStatus(Status retweetedStatus)
           
 void searched(QueryResult queryResult)
           
 void searchedUser(ResponseList<User> userList)
           
 void sentDirectMessage(DirectMessage message)
           
 void subscribedUserList(UserList userList)
           
 void tested(boolean test)
           
 void unsubscribedUserList(UserList userList)
           
 void updatedDeliveryDevice(User user)
           
 void updatedProfile(User user)
           
 void updatedProfileBackgroundImage(User user)
           
 void updatedProfileColors(User user)
           
 void updatedProfileImage(User user)
           
 void updatedStatus(Status status)
           
 void updatedUserList(UserList userList)
           
 

Field Detail

SEARCH

static final TwitterMethod SEARCH

TRENDS

static final TwitterMethod TRENDS

CURRENT_TRENDS

static final TwitterMethod CURRENT_TRENDS

DAILY_TRENDS

static final TwitterMethod DAILY_TRENDS

WEEKLY_TRENDS

static final TwitterMethod WEEKLY_TRENDS

PUBLIC_TIMELINE

static final TwitterMethod PUBLIC_TIMELINE

HOME_TIMELINE

static final TwitterMethod HOME_TIMELINE

FRIENDS_TIMELINE

static final TwitterMethod FRIENDS_TIMELINE

USER_TIMELINE

static final TwitterMethod USER_TIMELINE

MENTIONS

static final TwitterMethod MENTIONS

RETWEETED_BY_ME

static final TwitterMethod RETWEETED_BY_ME

RETWEETED_TO_ME

static final TwitterMethod RETWEETED_TO_ME

RETWEETS_OF_ME

static final TwitterMethod RETWEETS_OF_ME

SHOW_STATUS

static final TwitterMethod SHOW_STATUS

UPDATE_STATUS

static final TwitterMethod UPDATE_STATUS

DESTROY_STATUS

static final TwitterMethod DESTROY_STATUS

RETWEET_STATUS

static final TwitterMethod RETWEET_STATUS

RETWEETS

static final TwitterMethod RETWEETS

SHOW_USER

static final TwitterMethod SHOW_USER

LOOKUP_USERS

static final TwitterMethod LOOKUP_USERS

SEARCH_USERS

static final TwitterMethod SEARCH_USERS

SUGGESTED_USER_CATEGORIES

static final TwitterMethod SUGGESTED_USER_CATEGORIES

USER_SUGGESTIONS

static final TwitterMethod USER_SUGGESTIONS

FRIENDS_STATUSES

static final TwitterMethod FRIENDS_STATUSES

FOLLOWERS_STATUSES

static final TwitterMethod FOLLOWERS_STATUSES

CREATE_USER_LIST

static final TwitterMethod CREATE_USER_LIST

UPDATE_USER_LIST

static final TwitterMethod UPDATE_USER_LIST

USER_LISTS

static final TwitterMethod USER_LISTS

SHOW_USER_LIST

static final TwitterMethod SHOW_USER_LIST

DSTROY_USER_LIST

static final TwitterMethod DSTROY_USER_LIST

USER_LIST_STATUSES

static final TwitterMethod USER_LIST_STATUSES

USER_LIST_MEMBERSHIPS

static final TwitterMethod USER_LIST_MEMBERSHIPS

USER_LIST_SUBSCRIPTIONS

static final TwitterMethod USER_LIST_SUBSCRIPTIONS

LIST_MEMBERS

static final TwitterMethod LIST_MEMBERS

ADD_LIST_MEMBER

static final TwitterMethod ADD_LIST_MEMBER

DELETE_LIST_MEMBER

static final TwitterMethod DELETE_LIST_MEMBER

CHECK_LIST_MEMBERSHIP

static final TwitterMethod CHECK_LIST_MEMBERSHIP

LIST_SUBSCRIBERS

static final TwitterMethod LIST_SUBSCRIBERS

SUBSCRIBE_LIST

static final TwitterMethod SUBSCRIBE_LIST

UNSUBSCRIBE_LIST

static final TwitterMethod UNSUBSCRIBE_LIST

CHECK_LIST_SUBSCRIPTION

static final TwitterMethod CHECK_LIST_SUBSCRIPTION

DIRECT_MESSAGES

static final TwitterMethod DIRECT_MESSAGES

SENT_DIRECT_MESSAGES

static final TwitterMethod SENT_DIRECT_MESSAGES

SEND_DIRECT_MESSAGE

static final TwitterMethod SEND_DIRECT_MESSAGE

DESTROY_DIRECT_MESSAGES

static final TwitterMethod DESTROY_DIRECT_MESSAGES

CREATE_FRIENDSHIP

static final TwitterMethod CREATE_FRIENDSHIP

DESTROY_FRIENDSHIP

static final TwitterMethod DESTROY_FRIENDSHIP

EXISTS_FRIENDSHIP

static final TwitterMethod EXISTS_FRIENDSHIP

SHOW_FRIENDSHIP

static final TwitterMethod SHOW_FRIENDSHIP

INCOMING_FRIENDSHIP

static final TwitterMethod INCOMING_FRIENDSHIP

OUTGOING_FRIENDSHIPS

static final TwitterMethod OUTGOING_FRIENDSHIPS

FRIENDS_IDS

static final TwitterMethod FRIENDS_IDS

FOLLOWERS_IDS

static final TwitterMethod FOLLOWERS_IDS

RATE_LIMIT_STATUS

static final TwitterMethod RATE_LIMIT_STATUS

UPDATE_DELIVERY_DEVICE

static final TwitterMethod UPDATE_DELIVERY_DEVICE

UPDATE_PROFILE_COLORS

static final TwitterMethod UPDATE_PROFILE_COLORS

UPDATE_PROFILE_IMAGE

static final TwitterMethod UPDATE_PROFILE_IMAGE

UPDATE_PROFILE_BACKGROUND_IMAGE

static final TwitterMethod UPDATE_PROFILE_BACKGROUND_IMAGE

UPDATE_PROFILE

static final TwitterMethod UPDATE_PROFILE

FAVORITES

static final TwitterMethod FAVORITES

CREATE_FAVORITE

static final TwitterMethod CREATE_FAVORITE

DESTROY_FAVORITE

static final TwitterMethod DESTROY_FAVORITE

ENABLE_NOTIFICATION

static final TwitterMethod ENABLE_NOTIFICATION

DISABLE_NOTIFICATION

static final TwitterMethod DISABLE_NOTIFICATION

CREATE_BLOCK

static final TwitterMethod CREATE_BLOCK

DESTROY_BLOCK

static final TwitterMethod DESTROY_BLOCK

EXISTS_BLOCK

static final TwitterMethod EXISTS_BLOCK

BLOCKING_USERS

static final TwitterMethod BLOCKING_USERS

BLOCKING_USERS_IDS

static final TwitterMethod BLOCKING_USERS_IDS

REPORT_SPAM

static final TwitterMethod REPORT_SPAM

AVAILABLE_TRENDS

static final TwitterMethod AVAILABLE_TRENDS

LOCATION_TRENDS

static final TwitterMethod LOCATION_TRENDS

NEAR_BY_PLACES

static final TwitterMethod NEAR_BY_PLACES

REVERSE_GEO_CODE

static final TwitterMethod REVERSE_GEO_CODE

GEO_DETAILS

static final TwitterMethod GEO_DETAILS

TEST

static final TwitterMethod TEST
Method Detail

searched

void searched(QueryResult queryResult)

gotTrends

void gotTrends(Trends trends)
Since:
Twitter4J 2.0.2

gotCurrentTrends

void gotCurrentTrends(Trends trends)
Since:
Twitter4J 2.0.2

gotDailyTrends

void gotDailyTrends(java.util.List<Trends> trendsList)
Since:
Twitter4J 2.0.2

gotWeeklyTrends

void gotWeeklyTrends(java.util.List<Trends> trendsList)
Since:
Twitter4J 2.0.2

gotPublicTimeline

void gotPublicTimeline(ResponseList<Status> statuses)

gotHomeTimeline

void gotHomeTimeline(ResponseList<Status> statuses)
Since:
Twitter4J 2.0.10

gotFriendsTimeline

void gotFriendsTimeline(ResponseList<Status> statuses)

gotUserTimeline

void gotUserTimeline(ResponseList<Status> statuses)

gotMentions

void gotMentions(ResponseList<Status> statuses)
Since:
Twitter4J 2.0.1

gotRetweetedByMe

void gotRetweetedByMe(ResponseList<Status> statuses)
Since:
Twitter4J 2.0.10

gotRetweetedToMe

void gotRetweetedToMe(ResponseList<Status> statuses)
Since:
Twitter4J 2.0.10

gotRetweetsOfMe

void gotRetweetsOfMe(ResponseList<Status> statuses)
Since:
Twitter4J 2.0.10

gotShowStatus

void gotShowStatus(Status status)
Since:
Twitter4J 2.0.1

updatedStatus

void updatedStatus(Status status)

destroyedStatus

void destroyedStatus(Status destroyedStatus)

retweetedStatus

void retweetedStatus(Status retweetedStatus)
Since:
Twitter4J 2.0.10

gotRetweets

void gotRetweets(ResponseList<Status> retweets)
Since:
Twitter4J 2.1.0

gotUserDetail

void gotUserDetail(User user)

lookedupUsers

void lookedupUsers(ResponseList<User> users)
Since:
Twitter4J 2.1.1

searchedUser

void searchedUser(ResponseList<User> userList)
Since:
Twitter4J 2.1.0

gotSuggestedUserCategories

void gotSuggestedUserCategories(ResponseList<Category> category)
Since:
Twitter4J 2.1.1

gotUserSuggestions

void gotUserSuggestions(ResponseList<User> users)
Since:
Twitter4J 2.1.1

gotFriendsStatuses

void gotFriendsStatuses(PagableResponseList<User> users)

gotFollowersStatuses

void gotFollowersStatuses(PagableResponseList<User> users)

createdUserList

void createdUserList(UserList userList)
Since:
Twitter4J 2.1.0

updatedUserList

void updatedUserList(UserList userList)
Since:
Twitter4J 2.1.0

gotUserLists

void gotUserLists(PagableResponseList<UserList> userLists)
Since:
Twitter4J 2.1.0

gotShowUserList

void gotShowUserList(UserList userList)
Since:
Twitter4J 2.1.0

destroyedUserList

void destroyedUserList(UserList userList)
Since:
Twitter4J 2.1.0

gotUserListStatuses

void gotUserListStatuses(ResponseList<Status> statuses)
Since:
Twitter4J 2.1.0

gotUserListMemberships

void gotUserListMemberships(PagableResponseList<UserList> userLists)
Since:
Twitter4J 2.1.0

gotUserListSubscriptions

void gotUserListSubscriptions(PagableResponseList<UserList> userLists)
Since:
Twitter4J 2.1.0

gotUserListMembers

void gotUserListMembers(PagableResponseList<User> users)
Since:
Twitter4J 2.1.0

addedUserListMember

void addedUserListMember(UserList userList)
Since:
Twitter4J 2.1.0

deletedUserListMember

void deletedUserListMember(UserList userList)
Since:
Twitter4J 2.1.0

checkedUserListMembership

void checkedUserListMembership(User users)
Since:
Twitter4J 2.1.0

gotUserListSubscribers

void gotUserListSubscribers(PagableResponseList<User> users)
Since:
Twitter4J 2.1.0

subscribedUserList

void subscribedUserList(UserList userList)
Since:
Twitter4J 2.1.0

unsubscribedUserList

void unsubscribedUserList(UserList userList)
Since:
Twitter4J 2.1.0

checkedUserListSubscription

void checkedUserListSubscription(User user)
Since:
Twitter4J 2.1.0

gotDirectMessages

void gotDirectMessages(ResponseList<DirectMessage> messages)

gotSentDirectMessages

void gotSentDirectMessages(ResponseList<DirectMessage> messages)

sentDirectMessage

void sentDirectMessage(DirectMessage message)

destroyedDirectMessage

void destroyedDirectMessage(DirectMessage message)
Since:
Twitter4J 2.0.1

createdFriendship

void createdFriendship(User user)
Since:
Twitter4J 2.0.1

destroyedFriendship

void destroyedFriendship(User user)
Since:
Twitter4J 2.0.1

gotExistsFriendship

void gotExistsFriendship(boolean exists)
Since:
Twitter4J 2.0.1

gotShowFriendship

void gotShowFriendship(Relationship relationship)
Since:
Twitter4J 2.1.0

gotIncomingFriendships

void gotIncomingFriendships(IDs ids)
Since:
Twitter4J 2.1.2

gotOutgoingFriendships

void gotOutgoingFriendships(IDs ids)
Since:
Twitter4J 2.1.2

gotFriendsIDs

void gotFriendsIDs(IDs ids)

gotFollowersIDs

void gotFollowersIDs(IDs ids)

gotRateLimitStatus

void gotRateLimitStatus(RateLimitStatus rateLimitStatus)

updatedDeliveryDevice

void updatedDeliveryDevice(User user)

updatedProfileColors

void updatedProfileColors(User user)

updatedProfileImage

void updatedProfileImage(User user)
Since:
Twitter4J 2.1.0

updatedProfileBackgroundImage

void updatedProfileBackgroundImage(User user)
Since:
Twitter4J 2.1.0

updatedProfile

void updatedProfile(User user)
Since:
Twitter4J 2.0.2

gotFavorites

void gotFavorites(ResponseList<Status> statuses)

createdFavorite

void createdFavorite(Status status)

destroyedFavorite

void destroyedFavorite(Status status)

enabledNotification

void enabledNotification(User user)
Since:
Twitter4J 2.0.1

disabledNotification

void disabledNotification(User user)
Since:
Twitter4J 2.0.1

createdBlock

void createdBlock(User user)
Since:
Twitter4J 2.0.1

destroyedBlock

void destroyedBlock(User user)
Since:
Twitter4J 2.0.1

gotExistsBlock

void gotExistsBlock(boolean blockExists)
Since:
Twitter4J 2.0.4

gotBlockingUsers

void gotBlockingUsers(ResponseList<User> blockingUsers)
Since:
Twitter4J 2.0.4

gotBlockingUsersIDs

void gotBlockingUsersIDs(IDs blockingUsersIDs)
Since:
Twitter4J 2.0.4

reportedSpam

void reportedSpam(User reportedSpammer)

gotAvailableTrends

void gotAvailableTrends(ResponseList<Location> locations)
Parameters:
locations - the locations
Since:
Twitter4J 2.1.1

gotLocationTrends

void gotLocationTrends(Trends trends)
Parameters:
trends - trends
Since:
Twitter4J 2.1.1

gotNearByPlaces

void gotNearByPlaces(ResponseList<Place> places)

gotReverseGeoCode

void gotReverseGeoCode(ResponseList<Place> places)

gotGeoDetails

void gotGeoDetails(Place place)

tested

void tested(boolean test)

onException

void onException(TwitterException te,
                 TwitterMethod method)
Parameters:
te - TwitterException
method -