|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwitter4j.TwitterSupport
twitter4j.Twitter
twitter4j.AsyncTwitter
public class AsyncTwitter
Twitter API with a series of asynchronous APIs.
With this class, you can call TwitterAPI acynchronously.
AsyncTwitter
,
TwitterListener
,
Serialized FormNested Class Summary | |
---|---|
(package private) class |
AsyncTwitter.AsyncTask
|
Nested classes/interfaces inherited from class twitter4j.Twitter |
---|
Twitter.Device |
Field Summary | |
---|---|
static int |
BLOCK
Deprecated. Use CREATED_BLOCK instead. |
static int |
CREATE
|
static int |
CREATE_FAVORITE
|
static int |
CREATE_FRIENDSHIP
|
static int |
CREATED_BLOCK
|
static int |
CURRENT_TRENDS
|
static int |
DAILY_TRENDS
|
static int |
DESTORY
Deprecated. Use DESTROY_FRIENDSHIP instead. |
static int |
DESTROY
Deprecated. Use DESTROY_FRIENDSHIP instead. |
static int |
DESTROY_DIRECT_MESSAGES
|
static int |
DESTROY_FAVORITE
|
static int |
DESTROY_FRIENDSHIP
|
static int |
DESTROY_STATUS
|
static int |
DESTROYED_BLOCK
|
static int |
DIRECT_MESSAGES
|
static int |
DISABLE_NOTIFICATION
|
private static Dispatcher |
dispatcher
|
static int |
ENABLE_NOTIFICATION
|
static int |
EXISTS
Deprecated. Use EXISTS_FRIENDSHIP instead. |
private static int |
EXISTS_BLOCK
|
static int |
EXISTS_FRIENDSHIP
|
static int |
FAVORITES
|
static int |
FEATURED
|
static int |
FOLLOW
Deprecated. Use ENABLE_NOTIFICATION instead. |
static int |
FOLLOWERS
|
static int |
FOLLOWERS_IDS
|
static int |
FRIENDS
|
static int |
FRIENDS_IDS
|
static int |
FRIENDS_TIMELINE
|
private static int |
GET_BLOCKING_USERS
|
private static int |
GET_BLOCKING_USERS_IDS
|
static int |
GET_DOWNTIME_SCHEDULE
Deprecated. not supported by Twitter API anymore |
static int |
HOME_TIMELINE
|
static int |
LEAVE
Deprecated. Use DISABLE_NOTIFICATION instead. |
static int |
MENTIONS
|
static int |
PUBLIC_TIMELINE
|
static int |
RATE_LIMIT_STATUS
|
static int |
REPLIES
Deprecated. Use DESTROY_FRIENDSHIP instead. |
static int |
RETWEET_STATUS
|
static int |
RETWEETED_BY_ME
|
static int |
RETWEETED_TO_ME
|
static int |
RETWEETS_OF_ME
|
static int |
SEARCH
|
static int |
SEND_DIRECT_MESSAGE
|
private static long |
serialVersionUID
|
static int |
SHOW
Deprecated. Use SHOW_STATUS instead. |
static int |
SHOW_STATUS
|
private boolean |
shutdown
|
static int |
TEST
|
static int |
TRENDS
|
static int |
UNBLOCK
Deprecated. Use DESTROYED_BLOCK instead. |
static int |
UPDATE
Deprecated. Use UPDATE_STATUS instead. |
static int |
UPDATE_DELIVERLY_DEVICE
|
static int |
UPDATE_LOCATION
Deprecated. Use UPDATE_PROFILE instead. |
static int |
UPDATE_PROFILE
|
static int |
UPDATE_PROFILE_COLORS
|
static int |
UPDATE_STATUS
|
static int |
USER_DETAIL
|
static int |
USER_TIMELINE
|
static int |
WEEKLY_TRENDS
|
Fields inherited from class twitter4j.Twitter |
---|
IM, NONE, SMS |
Fields inherited from class twitter4j.TwitterSupport |
---|
http, source, USE_SSL |
Constructor Summary | |
---|---|
AsyncTwitter(java.lang.String id,
java.lang.String password)
|
|
AsyncTwitter(java.lang.String id,
java.lang.String password,
java.lang.String baseURL)
|
Method Summary | |
---|---|
void |
blockAsync(java.lang.String id)
Deprecated. Use createBlockAsync(String id) instead |
void |
createAsync(java.lang.String id)
Deprecated. Use createFriendshipAsync(String id) instead |
void |
createAsync(java.lang.String id,
TwitterListener listener)
Deprecated. Use createFriendshipAsync(String id, TwitterListener listener) instead |
void |
createBlockAsync(java.lang.String id)
Blocks the user specified in the ID parameter as the authenticating user. |
void |
createBlockAsync(java.lang.String id,
TwitterListener listener)
Blocks the user specified in the ID parameter as the authenticating user. |
void |
createFavoriteAsync(int id)
Deprecated. Use createFavoriteAsync(long id, TwitterListener listener) instead. |
void |
createFavoriteAsync(int id,
TwitterListener listener)
Deprecated. Use createFavoriteAsync(long id, TwitterListener listener) instead. |
void |
createFavoriteAsync(long id)
Favorites the status specified in the ID parameter as the authenticating user. |
void |
createFavoriteAsync(long id,
TwitterListener listener)
Favorites the status specified in the ID parameter as the authenticating user. |
void |
createFriendshipAsync(java.lang.String id)
Befriends the user specified in the ID parameter as the authenticating user. |
void |
createFriendshipAsync(java.lang.String id,
boolean follow,
TwitterListener listener)
Befriends the user specified in the ID parameter as the authenticating user. |
void |
createFriendshipAsync(java.lang.String id,
TwitterListener listener)
Befriends the user specified in the ID parameter as the authenticating user. |
void |
deleteDirectMessageAsync(int id,
TwitterListener listener)
Deprecated. Use destroyDirectMessageAsync(int id, TwitterListener listener) instead |
void |
destoryStatusAsync(int statusId)
Deprecated. Use destroyStatusAsync(long statuId) instead. |
void |
destoryStatusAsync(int statusId,
TwitterListener listener)
Deprecated. Use destroyStatusAsync(long statuId) instead. |
void |
destroyAsync(java.lang.String id)
Deprecated. Use destroyFriendshipAsync(String id) instead |
void |
destroyAsync(java.lang.String id,
TwitterListener listener)
Deprecated. Use destroyFriendshipAsync(String id, TwitterListener listener) instead |
void |
destroyBlockAsync(java.lang.String id)
Un-blocks the user specified in the ID parameter as the authenticating user. |
void |
destroyBlockAsync(java.lang.String id,
TwitterListener listener)
Un-blocks the user specified in the ID parameter as the authenticating user. |
void |
destroyDirectMessageAsync(int id)
Delete specified direct message This method calls http://twitter.com/direct_messages/destroy |
void |
destroyDirectMessageAsync(int id,
TwitterListener listener)
Delete specified direct message This method calls http://twitter.com/direct_messages/destroy |
void |
destroyFavoriteAsync(int id)
Deprecated. Use destroyFavoriteAsync(long id) instead. |
void |
destroyFavoriteAsync(int id,
TwitterListener listener)
Deprecated. Use destroyFavoriteAsync(long id, TwitterListener listener) instead. |
void |
destroyFavoriteAsync(long id)
Favorites the status specified in the ID parameter as the authenticating user. |
void |
destroyFavoriteAsync(long id,
TwitterListener listener)
Favorites the status specified in the ID parameter as the authenticating user. |
void |
destroyFriendshipAsync(java.lang.String id)
Discontinues friendship with the specified in the ID parameter as the authenticating user. |
void |
destroyFriendshipAsync(java.lang.String id,
TwitterListener listener)
Discontinues friendship with the specified in the ID parameter as the authenticating user. |
void |
destroyStatusAsync(int statusId)
Deprecated. Use destroyStatusAsync(long statuId) instead. |
void |
destroyStatusAsync(int statusId,
TwitterListener listener)
Deprecated. Use destroyStatusAsync(long statuId) instead. |
void |
destroyStatusAsync(long statusId)
Destroys the status specified by the required ID parameter. |
void |
destroyStatusAsync(long statusId,
TwitterListener listener)
Destroys the status specified by the required ID parameter. |
void |
disableNotificationAsync(java.lang.String id)
Disables notifications for updates from the specified user to the authenticating user. |
void |
disableNotificationAsync(java.lang.String id,
TwitterListener listener)
Disables notifications for updates from the specified user to the authenticating user. |
void |
enableNotificationAsync(java.lang.String id)
Enables notifications for updates from the specified user to the authenticating user. |
void |
enableNotificationAsync(java.lang.String id,
TwitterListener listener)
Enables notifications for updates from the specified user to the authenticating user. |
void |
existsAsync(java.lang.String userA,
java.lang.String userB,
TwitterListener listener)
Deprecated. existsFriendshipAsync(String user_a, String user_b, TwitterListener listener) |
void |
existsBlockAsync(java.lang.String id,
TwitterListener listener)
Tests if a friendship exists between two users. |
void |
existsFriendshipAsync(java.lang.String userA,
java.lang.String userB,
TwitterListener listener)
Tests if a friendship exists between two users. |
void |
favoritesAsync(int page,
TwitterListener listener)
Deprecated. Use getFavoritesAsync(int page, TwitterListener listener) instead |
void |
favoritesAsync(java.lang.String id,
int page,
TwitterListener listener)
Deprecated. Use getFavoritesAsync(String id,int page, TwitterListener listener) instead |
void |
favoritesAsync(java.lang.String id,
TwitterListener listener)
Deprecated. Use getFavoritesAsync(String id,TwitterListener listener) instead |
void |
favoritesAsync(TwitterListener listener)
Deprecated. Use getFavoritesAsync(TwitterListener listener) instead |
void |
followAsync(java.lang.String id)
Deprecated. Use enableNotificationAsync(String id) instead |
void |
followAsync(java.lang.String id,
TwitterListener listener)
Deprecated. Use enableNotificationAsync(String id, TwitterListener listener) instead |
void |
getAuthenticatedUserAsync(TwitterListener listener)
Retrieves extended information of the authenticated user. |
void |
getBlockingUsersAsync(int page,
TwitterListener listener)
Returns a list of user objects that the authenticating user is blocking. |
void |
getBlockingUsersAsync(TwitterListener listener)
Returns a list of user objects that the authenticating user is blocking. |
void |
getBlockingUsersIDsAsync(TwitterListener listener)
Returns an array of numeric user ids the authenticating user is blocking. |
void |
getCurrentTrendsAsync(boolean excludeHashTags,
TwitterListener listener)
Returns the current top 10 trending topics on Twitter. |
void |
getCurrentTrendsAsync(TwitterListener listener)
Returns the current top 10 trending topics on Twitter. |
void |
getDailyTrendsAsync(java.util.Date date,
boolean excludeHashTags,
TwitterListener listener)
Returns the top 20 trending topics for each hour in a given day. |
void |
getDailyTrendsAsync(TwitterListener listener)
Returns the top 20 trending topics for each hour in a given day. |
void |
getDirectMessagesAsync(java.util.Date since,
TwitterListener listener)
Deprecated. using long sinceId is suggested. |
void |
getDirectMessagesAsync(int sinceId,
TwitterListener listener)
Deprecated. Use getDirectMessagesAsync(Paging paging, TwitterListener listener) instead |
void |
getDirectMessagesAsync(Paging paging,
TwitterListener listener)
Returns a list of the direct messages sent to the authenticating user. |
void |
getDirectMessagesAsync(TwitterListener listener)
Returns a list of the direct messages sent to the authenticating user. |
void |
getDirectMessagesByPageAsync(int page,
int sinceId,
TwitterListener listener)
Deprecated. Use getDirectMessagesAsync(Paging paging, TwitterListener listener) instead |
void |
getDirectMessagesByPageAsync(int page,
TwitterListener listener)
Deprecated. Use getDirectMessagesAsync(Paging paging, TwitterListener listener) instead |
private Dispatcher |
getDispatcher()
|
void |
getDowntimeScheduleAsync()
Returns the same text displayed on http://twitter.com/home when a maintenance window is scheduled, in the requested format. |
void |
getFavoritesAsync(int page,
TwitterListener listener)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. |
void |
getFavoritesAsync(java.lang.String id,
int page,
TwitterListener listener)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. |
void |
getFavoritesAsync(java.lang.String id,
TwitterListener listener)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. |
void |
getFavoritesAsync(TwitterListener listener)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. |
void |
getFeaturedAsync(TwitterListener listener)
Returns a list of the users currently featured on the site with their current statuses inline. |
void |
getFollowersAsync(int page,
TwitterListener listener)
Deprecated. Use getFollowersStatusesAsync(Paging paging, TwitterListener listener) instead |
void |
getFollowersAsync(Paging paging,
TwitterListener listener)
Returns the authenticating user's followers, each with current status inline. |
void |
getFollowersAsync(java.lang.String id,
int page,
TwitterListener listener)
Deprecated. Use getFollowersStatusesAsync(String id, Paging paging, TwitterListener listener) instead |
void |
getFollowersAsync(java.lang.String id,
Paging paging,
TwitterListener listener)
Deprecated. use getFollowersStatusesAsync(id, paging, listener) instead |
void |
getFollowersAsync(java.lang.String id,
TwitterListener listener)
Deprecated. use getFollowersStatusesAsync(id, listener) instead |
void |
getFollowersAsync(TwitterListener listener)
Deprecated. use getFollowersStatusesAsync(listener) |
void |
getFollowersIDsAsync(int userId,
long cursor,
TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by. |
void |
getFollowersIDsAsync(int userId,
Paging paging,
TwitterListener listener)
Deprecated. use getFollowersIDsAsync(int userId, long cursor, TwitterListener listener) instead |
void |
getFollowersIDsAsync(int userId,
TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by. |
void |
getFollowersIDsAsync(long cursor,
TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by. |
void |
getFollowersIDsAsync(Paging paging,
TwitterListener listener)
Deprecated. use getFollowersIDsAsync(long cursor, TwitterListener listener) instead |
void |
getFollowersIDsAsync(java.lang.String screenName,
long cursor,
TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by. |
void |
getFollowersIDsAsync(java.lang.String screenName,
Paging paging,
TwitterListener listener)
Deprecated. use getFollowersIDsAsync(String screenName, long cursor, TwitterListener listener) instead |
void |
getFollowersIDsAsync(java.lang.String screenName,
TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by. |
void |
getFollowersIDsAsync(TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is followed by. |
void |
getFollowersStatusesAsync(Paging paging,
TwitterListener listener)
Returns the authenticating user's followers, each with current status inline. |
void |
getFollowersStatusesAsync(java.lang.String id,
Paging paging,
TwitterListener listener)
Returns the authenticating user's followers, each with current status inline. |
void |
getFollowersStatusesAsync(java.lang.String id,
TwitterListener listener)
Returns the authenticating user's followers, each with current status inline. |
void |
getFollowersStatusesAsync(TwitterListener listener)
Returns the authenticating user's followers, each with current status inline. |
void |
getFriendsAsync(int page,
TwitterListener listener)
Deprecated. Use getFriendsStatusesAsync(Paging paging,TwitterListener listener) instead |
void |
getFriendsAsync(Paging paging,
TwitterListener listener)
Deprecated. use getFriendsStatusesAsync(paging,listener) instead |
void |
getFriendsAsync(java.lang.String id,
int page,
TwitterListener listener)
Deprecated. Use getFriendsStatusesAsync(String id, Paging paging, TwitterListener listener) instead |
void |
getFriendsAsync(java.lang.String id,
Paging paging,
TwitterListener listener)
Deprecated. use getFriendsStatusesAsync(id, paging, listener) instead |
void |
getFriendsAsync(java.lang.String id,
TwitterListener listener)
Deprecated. use getFriendsStatusesAsync(id, listener) instead |
void |
getFriendsAsync(TwitterListener listener)
Deprecated. use getFriendsStatusesAsync(listener) |
void |
getFriendsIDsAsync(int userId,
long cursor,
TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is following. |
void |
getFriendsIDsAsync(int userId,
Paging paging,
TwitterListener listener)
Deprecated. use getFriendsIDsAsync(int userId, long cursor, TwitterListener listener) instead |
void |
getFriendsIDsAsync(int userId,
TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is following. |
void |
getFriendsIDsAsync(long cursor,
TwitterListener listener)
Returns an array of numeric IDs for every user the authenticating user is following. |
void |
getFriendsIDsAsync(Paging paging,
TwitterListener listener)
Deprecated. use getFriendsIDsAsync(long cursor, TwitterListener listener) instead |
void |
getFriendsIDsAsync(java.lang.String screenName,
long cursor,
TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is following. |
void |
getFriendsIDsAsync(java.lang.String screenName,
Paging paging,
TwitterListener listener)
Deprecated. use getFriendsIDsAsync(String screenName, long cursor, TwitterListener listener) instead |
void |
getFriendsIDsAsync(java.lang.String screenName,
TwitterListener listener)
Returns an array of numeric IDs for every user the specified user is following. |
void |
getFriendsIDsAsync(TwitterListener listener)
Returns an array of numeric IDs for every user the authenticating user is following. |
void |
getFriendsStatusesAsync(Paging paging,
TwitterListener listener)
Returns the specified user's friends, each with current status inline. |
void |
getFriendsStatusesAsync(java.lang.String id,
Paging paging,
TwitterListener listener)
Returns the user's friends, each with current status inline. |
void |
getFriendsStatusesAsync(java.lang.String id,
TwitterListener listener)
Returns the user's friends, each with current status inline. |
void |
getFriendsStatusesAsync(TwitterListener listener)
Returns the specified user's friends, each with current status inline. |
void |
getFriendsTimelineAsync(java.util.Date since,
TwitterListener listener)
Deprecated. Use getFriendsTimelineAsync(String id, Paging paging, TwitterListener listener) instead |
void |
getFriendsTimelineAsync(int page,
TwitterListener listener)
Deprecated. Use getFriendsTimelineAsync(Paging paging, TwitterListener listener) instead |
void |
getFriendsTimelineAsync(long sinceId,
int page,
TwitterListener listener)
Deprecated. Use getFriendsTimelineAsync(Paging paging, TwitterListener listener) instead |
void |
getFriendsTimelineAsync(long sinceId,
java.lang.String id,
int page,
TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore. |
void |
getFriendsTimelineAsync(long sinceId,
TwitterListener listener)
Deprecated. Use getFriendsTimelineAsync(Paging paging, TwitterListener listener) instead |
void |
getFriendsTimelineAsync(Paging paging,
TwitterListener listener)
Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user and that user's friends. |
void |
getFriendsTimelineAsync(java.lang.String id,
java.util.Date since,
TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore. |
void |
getFriendsTimelineAsync(java.lang.String id,
int page,
TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore. |
void |
getFriendsTimelineAsync(java.lang.String id,
long sinceId,
TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore. |
void |
getFriendsTimelineAsync(java.lang.String id,
Paging paging,
TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore. |
void |
getFriendsTimelineAsync(java.lang.String id,
TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore. |
void |
getFriendsTimelineAsync(TwitterListener listener)
Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user and that user's friends. |
void |
getFriendsTimelineByPageAsync(int page,
TwitterListener listener)
Deprecated. Use getFriendsTimelineAsync(Paging paging, TwitterListener listener) instead |
void |
getFriendsTimelineByPageAsync(java.lang.String id,
int page,
TwitterListener listener)
Deprecated. The Twitter API does not support this method anymore. |
void |
getHomeTimelineAsync(Paging paging,
TwitterListener listener)
Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. |
void |
getHomeTimelineAsync(TwitterListener listener)
Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. |
void |
getMentionsAsync(Paging paging,
TwitterListener listener)
Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user. |
void |
getMentionsAsync(TwitterListener listener)
Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user. |
void |
getPublicTimelineAsync(int sinceID,
TwitterListener listener)
Deprecated. use getpublicTimelineAsync(long sinceID, TwitterListener listener) |
void |
getPublicTimelineAsync(long sinceID,
TwitterListener listener)
Returns only public statuses with an ID greater than (that is, more recent than) the specified ID. |
void |
getPublicTimelineAsync(TwitterListener listener)
This method calls http://twitter.com/statuses/public_timeline Returns the 20 most recent statuses from non-protected users who have set a custom user icon. |
void |
getRepliesAsync(int page,
TwitterListener listener)
Deprecated. Use getMentionsAsync(Paging paging, TwitterListener listener) instead |
void |
getRepliesAsync(long sinceId,
int page,
TwitterListener listener)
Deprecated. Use getMentionsAsync(Paging paging, TwitterListener listener) instead |
void |
getRepliesAsync(long sinceId,
TwitterListener listener)
Deprecated. Use getMentionsAsync(Paging paging, TwitterListener listener) instead |
void |
getRepliesAsync(TwitterListener listener)
Deprecated. Use getMentionsAsync(TwitterListener listener) instead |
void |
getRepliesByPageAsync(int page,
TwitterListener listener)
Deprecated. Use getMentionsAsync(Paging paging, TwitterListener listener) instead |
void |
getRetweetedByMeAsync(Paging paging,
TwitterListener listener)
Returns the 20 most recent retweets posted by the authenticating user. |
void |
getRetweetedByMeAsync(TwitterListener listener)
Returns the 20 most recent retweets posted by the authenticating user. |
void |
getRetweetedToMeAsync(Paging paging,
TwitterListener listener)
Returns the 20 most recent retweets posted by the authenticating user's friends. |
void |
getRetweetedToMeAsync(TwitterListener listener)
Returns the 20 most recent retweets posted by the authenticating user's friends. |
void |
getRetweetsOfMeAsync(Paging paging,
TwitterListener listener)
Returns the 20 most recent tweets of the authenticated user that have been retweeted by others. |
void |
getRetweetsOfMeAsync(TwitterListener listener)
Returns the 20 most recent tweets of the authenticated user that have been retweeted by others. |
void |
getSentDirectMessagesAsync(java.util.Date since,
TwitterListener listener)
Deprecated. using long sinceId is suggested. |
void |
getSentDirectMessagesAsync(int page,
int sinceId,
TwitterListener listener)
Deprecated. Use getSentDirectMessagesAsync(Paging paging, TwitterListener listener) instead |
void |
getSentDirectMessagesAsync(int sinceId,
TwitterListener listener)
Deprecated. Use getSentDirectMessagesAsync(Paging paging, TwitterListener listener) instead |
void |
getSentDirectMessagesAsync(Paging paging,
TwitterListener listener)
Returns a list of the direct messages sent by the authenticating user. |
void |
getSentDirectMessagesAsync(TwitterListener listener)
Returns a list of the direct messages sent by the authenticating user. |
void |
getTrendsAsync(TwitterListener listener)
Returns the top ten topics that are currently trending on Twitter. |
void |
getUserDetailAsync(java.lang.String id,
TwitterListener listener)
Deprecated. use showUserAsync(id,listener) instead |
void |
getUserTimelineAsync(int count,
java.util.Date since,
TwitterListener listener)
Deprecated. using long sinceId is suggested. |
void |
getUserTimelineAsync(int count,
long sinceId,
TwitterListener listener)
Deprecated. Use getUserTimelineAsync(Paging paging, TwitterListener listener) instead |
void |
getUserTimelineAsync(long sinceId,
TwitterListener listener)
Deprecated. Use getUserTimelineAsync(Paging paging, TwitterListener listener) instead |
void |
getUserTimelineAsync(Paging paging,
TwitterListener listener)
Returns the most recent statuses posted in the last 24 hours from the specified user id. |
void |
getUserTimelineAsync(java.lang.String id,
java.util.Date since,
TwitterListener listener)
Deprecated. using long sinceId is suggested. |
void |
getUserTimelineAsync(java.lang.String id,
int count,
java.util.Date since,
TwitterListener listener)
Deprecated. using long sinceId is suggested. |
void |
getUserTimelineAsync(java.lang.String id,
int page,
long sinceId,
TwitterListener listener)
Deprecated. Use getUserTimelineAsync(String id, Paging paging, TwitterListener listener) instead |
void |
getUserTimelineAsync(java.lang.String id,
int count,
TwitterListener listener)
Deprecated. Use getUserTimelineAsync(String id, Paging paging, TwitterListener listener) instead |
void |
getUserTimelineAsync(java.lang.String id,
long sinceId,
TwitterListener listener)
Deprecated. Use getUserTimelineAsync(String id, Paging paging, TwitterListener listener) instead |
void |
getUserTimelineAsync(java.lang.String id,
Paging paging,
TwitterListener listener)
Returns the most recent statuses posted in the last 24 hours from the specified user id. |
void |
getUserTimelineAsync(java.lang.String id,
TwitterListener listener)
Returns the most recent statuses posted in the last 24 hours from the specified user id. |
void |
getUserTimelineAsync(TwitterListener listener)
Returns the most recent statuses posted in the last 24 hours from the authenticating user. |
void |
getWeeklyTrendsAsync(java.util.Date date,
boolean excludeHashTags,
TwitterListener listener)
Returns the top 30 trending topics for each day in a given week. |
void |
getWeeklyTrendsAsync(TwitterListener listener)
Returns the top 30 trending topics for each day in a given week. |
void |
leaveAsync(java.lang.String id)
Deprecated. Use disableNotificationAsync(String id) instead |
void |
leaveAsync(java.lang.String id,
TwitterListener listener)
Deprecated. Use disableNotificationAsync(String id, TwitterListener listener) instead |
void |
rateLimitStatusAsync(TwitterListener listener)
Gets the remaining number of API requests available to the requesting user before the API limit is reached for the current hour. |
void |
retweetStatusAsync(long statusId)
Retweets a tweet. |
void |
retweetStatusAsync(long statusId,
TwitterListener listener)
Retweets a tweet. |
void |
searchAcync(Query query,
TwitterListener listener)
Returns tweets that match a specified query. |
void |
sendDirectMessageAsync(java.lang.String id,
java.lang.String text)
Sends a new direct message to the specified user from the authenticating user. |
void |
sendDirectMessageAsync(java.lang.String id,
java.lang.String text,
TwitterListener listener)
Sends a new direct message to the specified user from the authenticating user. |
void |
showAsync(int id,
TwitterListener listener)
Deprecated. Use showAsync(long id) instead. |
void |
showAsync(long id,
TwitterListener listener)
Deprecated. Use showStatusAsync(long id, TwitterListener listener) instead |
void |
showStatusAsync(long id,
TwitterListener listener)
Returns a single status, specified by the id parameter. |
void |
showUserAsync(java.lang.String id,
TwitterListener listener)
Retrieves extended information of a given user, specified by ID or screen name as per the required id parameter below. |
void |
shutdown()
Shuts down internal dispather thread. |
void |
testAsync()
Returns the string "ok" in the requested format with a 200 OK HTTP status code. |
void |
unblockAsync(java.lang.String id)
Deprecated. Use destroyBlockAsync(String id, TwitterListener listener) instead |
void |
updateAsync(java.lang.String status)
Deprecated. Use updateStatusAsync(String status) instead |
void |
updateAsync(java.lang.String status,
long inReplyToStatusId)
Deprecated. Use updateStatusAsync(String status, long inReplyToStatusId) instead |
void |
updateAsync(java.lang.String status,
long inReplyToStatusId,
TwitterListener listener)
Deprecated. Use updateStatusAsync(String status, long inReplyToStatusId, TwitterListener listener) instead |
void |
updateAsync(java.lang.String status,
TwitterListener listener)
Deprecated. Use updateStatusAsync(String status, TwitterListener listener) instead |
void |
updateDeliverlyDeviceAsync(Twitter.Device device,
TwitterListener listener)
Sets which device Twitter delivers updates to for the authenticating user. |
void |
updateLocationAsync(java.lang.String location,
TwitterListener listener)
Deprecated. Use updateProfileAsync(String name, String email, String url, String location, String description, TwitterListener listener) instead |
void |
updateProfileAsync(java.lang.String name,
java.lang.String email,
java.lang.String url,
java.lang.String location,
java.lang.String description)
Sets values that users are able to set under the "Account" tab of their settings page. |
void |
updateProfileAsync(java.lang.String name,
java.lang.String email,
java.lang.String url,
java.lang.String location,
java.lang.String description,
TwitterListener listener)
Sets values that users are able to set under the "Account" tab of their settings page. |
void |
updateProfileColorsAsync(java.lang.String profileBackgroundColor,
java.lang.String profileTextColor,
java.lang.String profileLinkColor,
java.lang.String profileSidebarFillColor,
java.lang.String profileSidebarBorderColor)
Sets one or more hex values that control the color scheme of the authenticating user's profile page on twitter.com. |
void |
updateProfileColorsAsync(java.lang.String profileBackgroundColor,
java.lang.String profileTextColor,
java.lang.String profileLinkColor,
java.lang.String profileSidebarFillColor,
java.lang.String profileSidebarBorderColor,
TwitterListener listener)
Sets one or more hex values that control the color scheme of the authenticating user's profile page on twitter.com. |
void |
updateStatusAsync(java.lang.String status)
Updates the user's status asynchronously This method calls http://twitter.com/statuses/update |
void |
updateStatusAsync(java.lang.String status,
long inReplyToStatusId)
Updates the user's status asynchronously This method calls http://twitter.com/statuses/update |
void |
updateStatusAsync(java.lang.String status,
long inReplyToStatusId,
TwitterListener listener)
Updates the user's status asynchronously This method calls http://twitter.com/statuses/update |
void |
updateStatusAsync(java.lang.String status,
TwitterListener listener)
Updates the user's status asynchronously This method calls http://twitter.com/statuses/update |
Methods inherited from class twitter4j.TwitterSupport |
---|
forceUsePost, getClientURL, getClientVersion, getPassword, getSource, getUserAgent, getUserId, isUsePostForced, setClientURL, setClientVersion, setHttpConnectionTimeout, setHttpProxy, setHttpProxyAuth, setHttpReadTimeout, setPassword, setRequestHeader, setRetryCount, setRetryIntervalSecs, setSource, setUserAgent, setUserId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private static transient Dispatcher dispatcher
private boolean shutdown
public static final int PUBLIC_TIMELINE
public static final int HOME_TIMELINE
public static final int FRIENDS_TIMELINE
public static final int USER_TIMELINE
public static final int SHOW
public static final int SHOW_STATUS
public static final int UPDATE
public static final int UPDATE_STATUS
public static final int REPLIES
public static final int MENTIONS
public static final int RETWEETED_BY_ME
public static final int RETWEETED_TO_ME
public static final int RETWEETS_OF_ME
public static final int FRIENDS
public static final int FOLLOWERS
public static final int FEATURED
public static final int USER_DETAIL
public static final int DIRECT_MESSAGES
public static final int DESTROY_DIRECT_MESSAGES
public static final int SEND_DIRECT_MESSAGE
public static final int CREATE
public static final int CREATE_FRIENDSHIP
public static final int DESTORY
public static final int DESTROY
public static final int DESTROY_FRIENDSHIP
public static final int EXISTS
public static final int EXISTS_FRIENDSHIP
public static final int FOLLOW
public static final int ENABLE_NOTIFICATION
public static final int LEAVE
public static final int DISABLE_NOTIFICATION
public static final int FAVORITES
public static final int FRIENDS_IDS
public static final int FOLLOWERS_IDS
public static final int CREATE_FAVORITE
public static final int DESTROY_FAVORITE
public static final int UPDATE_LOCATION
public static final int UPDATE_PROFILE
public static final int UPDATE_PROFILE_COLORS
public static final int RATE_LIMIT_STATUS
public static final int UPDATE_DELIVERLY_DEVICE
public static final int BLOCK
public static final int CREATED_BLOCK
public static final int UNBLOCK
public static final int DESTROYED_BLOCK
private static final int EXISTS_BLOCK
private static final int GET_BLOCKING_USERS
private static final int GET_BLOCKING_USERS_IDS
public static final int TEST
public static final int GET_DOWNTIME_SCHEDULE
public static final int DESTROY_STATUS
public static final int RETWEET_STATUS
public static final int SEARCH
public static final int TRENDS
public static final int CURRENT_TRENDS
public static final int DAILY_TRENDS
public static final int WEEKLY_TRENDS
Constructor Detail |
---|
public AsyncTwitter(java.lang.String id, java.lang.String password)
public AsyncTwitter(java.lang.String id, java.lang.String password, java.lang.String baseURL)
Method Detail |
---|
public void searchAcync(Query query, TwitterListener listener)
query
- - the search conditionlistener
- a listener object that receives the responsepublic void getTrendsAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getCurrentTrendsAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getCurrentTrendsAsync(boolean excludeHashTags, TwitterListener listener)
excludeHashTags
- Setting this to true will remove all hashtags from the trends list.listener
- a listener object that receives the responsepublic void getDailyTrendsAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getDailyTrendsAsync(java.util.Date date, boolean excludeHashTags, TwitterListener listener)
date
- Permits specifying a start date for the report.excludeHashTags
- Setting this to true will remove all hashtags from the trends list.listener
- a listener object that receives the responsepublic void getWeeklyTrendsAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getWeeklyTrendsAsync(java.util.Date date, boolean excludeHashTags, TwitterListener listener)
date
- Permits specifying a start date for the report.excludeHashTags
- Setting this to true will remove all hashtags from the trends list.listener
- a listener object that receives the responsepublic void getPublicTimelineAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getPublicTimelineAsync(int sinceID, TwitterListener listener)
sinceID
- Stringlistener
- a listener object that receives the responsepublic void getPublicTimelineAsync(long sinceID, TwitterListener listener)
sinceID
- Stringlistener
- a listener object that receives the responsepublic void getHomeTimelineAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getHomeTimelineAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getFriendsTimelineAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getFriendsTimelineAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getFriendsTimelineByPageAsync(int page, TwitterListener listener)
page
- intlistener
- a listener object that receives the responsepublic void getFriendsTimelineAsync(int page, TwitterListener listener)
page
- intlistener
- a listener object that receives the responsepublic void getFriendsTimelineAsync(long sinceId, int page, TwitterListener listener)
sinceId
- Returns only statuses with an ID greater than (that is, more recent than) the specified IDpage
- intlistener
- a listener object that receives the responsepublic void getFriendsTimelineAsync(java.lang.String id, TwitterListener listener)
id
- String user IDlistener
- a listener object that receives the responsepublic void getFriendsTimelineAsync(java.lang.String id, Paging paging, TwitterListener listener)
id
- String user IDpaging
- controls paginationlistener
- a listener object that receives the responsepublic void getFriendsTimelineByPageAsync(java.lang.String id, int page, TwitterListener listener)
id
- String user IDpage
- intlistener
- a listener object that receives the responsepublic void getFriendsTimelineAsync(java.lang.String id, int page, TwitterListener listener)
id
- String user IDpage
- intlistener
- a listener object that receives the responsepublic void getFriendsTimelineAsync(long sinceId, java.lang.String id, int page, TwitterListener listener)
sinceId
- Returns only statuses with an ID greater than (that is, more recent than) the specified IDid
- specifies the ID or screen name of the user for whom to return the friends_timelinepage
- the number of pagelistener
- a listener object that receives the responsepublic void getFriendsTimelineAsync(java.util.Date since, TwitterListener listener)
since
- Datelistener
- a listener object that receives the responsepublic void getFriendsTimelineAsync(long sinceId, TwitterListener listener)
sinceId
- Returns only statuses with an ID greater than (that is, more recent than) the specified IDlistener
- a listener object that receives the responsepublic void getFriendsTimelineAsync(java.lang.String id, java.util.Date since, TwitterListener listener)
id
- String user IDsince
- Datelistener
- a listener object that receives the responsepublic void getFriendsTimelineAsync(java.lang.String id, long sinceId, TwitterListener listener)
sinceId
- Returns only statuses with an ID greater than (that is, more recent than) the specified IDlistener
- a listener object that receives the responseid
- String user IDpublic void getUserTimelineAsync(java.lang.String id, int count, java.util.Date since, TwitterListener listener)
id
- Stringcount
- intsince
- Datelistener
- a listener object that receives the responsepublic void getUserTimelineAsync(java.lang.String id, Paging paging, TwitterListener listener)
id
- Specifies the ID or screen name of the user for whom to return the user_timeline.paging
- controls paginationlistener
- a listener object that receives the responsepublic void getUserTimelineAsync(java.lang.String id, int page, long sinceId, TwitterListener listener)
id
- Stringpage
- intsinceId
- Returns only statuses with an ID greater than (that is, more recent than) the specified IDlistener
- a listener object that receives the responsepublic void getUserTimelineAsync(java.lang.String id, java.util.Date since, TwitterListener listener)
id
- Stringsince
- Datelistener
- a listener object that receives the responsepublic void getUserTimelineAsync(java.lang.String id, int count, TwitterListener listener)
id
- Stringcount
- intlistener
- a listener object that receives the responsepublic void getUserTimelineAsync(int count, java.util.Date since, TwitterListener listener)
count
- intsince
- Datelistener
- a listener object that receives the responsepublic void getUserTimelineAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getUserTimelineAsync(int count, long sinceId, TwitterListener listener)
count
- intsinceId
- Returns only statuses with an ID greater than (that is, more recent than) the specified IDlistener
- a listener object that receives the responsepublic void getUserTimelineAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void getUserTimelineAsync(java.lang.String id, long sinceId, TwitterListener listener)
id
- StringsinceId
- Returns only statuses with an ID greater than (that is, more recent than) the specified IDlistener
- a listener object that receives the responsepublic void getUserTimelineAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getUserTimelineAsync(long sinceId, TwitterListener listener)
sinceId
- Returns only statuses with an ID greater than (that is, more recent than) the specified IDlistener
- a listener object that receives the responsepublic void getRepliesAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getMentionsAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getMentionsAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getRetweetedByMeAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getRetweetedByMeAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getRetweetedToMeAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getRetweetedToMeAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getRetweetsOfMeAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getRetweetsOfMeAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getRepliesAsync(long sinceId, TwitterListener listener)
sinceId
- Returns only statuses with an ID greater than (that is, more recent than) the specified IDlistener
- a listener object that receives the responsepublic void getRepliesByPageAsync(int page, TwitterListener listener)
page
- intlistener
- a listener object that receives the responsepublic void getRepliesAsync(int page, TwitterListener listener)
page
- intlistener
- a listener object that receives the responsepublic void getRepliesAsync(long sinceId, int page, TwitterListener listener)
sinceId
- Returns only statuses with an ID greater than (that is, more recent than) the specified IDpage
- intlistener
- a listener object that receives the responsepublic void showAsync(int id, TwitterListener listener)
id
- intlistener
- a listener object that receives the responsepublic void showAsync(long id, TwitterListener listener)
id
- intlistener
- a listener object that receives the responsepublic void showStatusAsync(long id, TwitterListener listener)
id
- intlistener
- a listener object that receives the responsepublic void updateAsync(java.lang.String status, TwitterListener listener)
status
- Stringlistener
- a listener object that receives the responsepublic void updateAsync(java.lang.String status)
status
- Stringpublic void updateStatusAsync(java.lang.String status, TwitterListener listener)
status
- Stringlistener
- a listener object that receives the responsepublic void updateStatusAsync(java.lang.String status)
status
- Stringpublic void updateAsync(java.lang.String status, long inReplyToStatusId, TwitterListener listener)
status
- StringinReplyToStatusId
- The ID of an existing status that the status to be posted is in reply to. This implicitly sets the in_reply_to_user_id attribute of the resulting status to the user ID of the message being replied to. Invalid/missing status IDs will be ignored.listener
- a listener object that receives the responsepublic void updateAsync(java.lang.String status, long inReplyToStatusId)
status
- StringinReplyToStatusId
- The ID of an existing status that the status to be posted is in reply to. This implicitly sets the in_reply_to_user_id attribute of the resulting status to the user ID of the message being replied to. Invalid/missing status IDs will be ignored.public void updateStatusAsync(java.lang.String status, long inReplyToStatusId, TwitterListener listener)
status
- StringinReplyToStatusId
- The ID of an existing status that the status to be posted is in reply to. This implicitly sets the in_reply_to_user_id attribute of the resulting status to the user ID of the message being replied to. Invalid/missing status IDs will be ignored.listener
- a listener object that receives the responsepublic void updateStatusAsync(java.lang.String status, long inReplyToStatusId)
status
- StringinReplyToStatusId
- The ID of an existing status that the status to be posted is in reply to. This implicitly sets the in_reply_to_user_id attribute of the resulting status to the user ID of the message being replied to. Invalid/missing status IDs will be ignored.public void destoryStatusAsync(int statusId)
statusId
- Stringpublic void destroyStatusAsync(int statusId)
statusId
- Stringpublic void destroyStatusAsync(long statusId)
statusId
- Stringpublic void destoryStatusAsync(int statusId, TwitterListener listener)
statusId
- Stringlistener
- a listener object that receives the responsepublic void destroyStatusAsync(int statusId, TwitterListener listener)
statusId
- Stringlistener
- a listener object that receives the responsepublic void destroyStatusAsync(long statusId, TwitterListener listener)
statusId
- Stringlistener
- a listener object that receives the responsepublic void retweetStatusAsync(long statusId, TwitterListener listener)
statusId
- The ID of the status to retweet.listener
- a listener object that receives the responsepublic void retweetStatusAsync(long statusId)
statusId
- The ID of the status to retweet.public void getUserDetailAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void showUserAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void getFriendsAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getFriendsStatusesAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getFriendsAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getFriendsStatusesAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getFriendsAsync(int page, TwitterListener listener)
page
- number of the page to retrieve friendslistener
- a listener object that receives the responsepublic void getFriendsAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void getFriendsStatusesAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void getFriendsAsync(java.lang.String id, Paging paging, TwitterListener listener)
id
- Stringpaging
- controls paginationlistener
- a listener object that receives the responsepublic void getFriendsStatusesAsync(java.lang.String id, Paging paging, TwitterListener listener)
id
- Stringpaging
- controls paginationlistener
- a listener object that receives the responsepublic void getFriendsAsync(java.lang.String id, int page, TwitterListener listener)
id
- Stringpage
- intlistener
- a listener object that receives the responsepublic void getFollowersAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getFollowersStatusesAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getFollowersAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getFollowersStatusesAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getFollowersAsync(int page, TwitterListener listener)
page
- Retrieves the next 100 followers.listener
- a listener object that receives the responsepublic void getFollowersAsync(java.lang.String id, TwitterListener listener)
id
- The ID or screen name of the user for whom to request a list of followers.listener
- a listener object that receives the responsepublic void getFollowersStatusesAsync(java.lang.String id, TwitterListener listener)
id
- The ID or screen name of the user for whom to request a list of followers.listener
- a listener object that receives the responsepublic void getFollowersAsync(java.lang.String id, Paging paging, TwitterListener listener)
id
- The ID or screen name of the user for whom to request a list of followers.paging
- controls paginationlistener
- a listener object that receives the responsepublic void getFollowersStatusesAsync(java.lang.String id, Paging paging, TwitterListener listener)
id
- The ID or screen name of the user for whom to request a list of followers.paging
- controls paginationlistener
- a listener object that receives the responsepublic void getFollowersAsync(java.lang.String id, int page, TwitterListener listener)
id
- The ID or screen name of the user for whom to request a list of followers.page
- Retrieves the next 100 followers.listener
- a listener object that receives the responsepublic void getFeaturedAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getDirectMessagesAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getDirectMessagesAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getDirectMessagesByPageAsync(int page, TwitterListener listener)
page
- intlistener
- a listener object that receives the responsepublic void getDirectMessagesByPageAsync(int page, int sinceId, TwitterListener listener)
page
- intsinceId
- Returns only direct messages with an ID greater than (that is, more recent than) the specified ID.listener
- a listener object that receives the responsepublic void getDirectMessagesAsync(int sinceId, TwitterListener listener)
sinceId
- intlistener
- a listener object that receives the responsepublic void getDirectMessagesAsync(java.util.Date since, TwitterListener listener)
since
- Datelistener
- a listener object that receives the responsepublic void getSentDirectMessagesAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getSentDirectMessagesAsync(Paging paging, TwitterListener listener)
paging
- controls paginationlistener
- a listener object that receives the responsepublic void getSentDirectMessagesAsync(java.util.Date since, TwitterListener listener)
since
- Datelistener
- a listener object that receives the responsepublic void getSentDirectMessagesAsync(int sinceId, TwitterListener listener)
sinceId
- returns only sent direct messages with an ID greater than (that is, more recent than) the specified IDlistener
- a listener object that receives the responsepublic void getSentDirectMessagesAsync(int page, int sinceId, TwitterListener listener)
page
- Retrieves the 20 next most recent direct messages.sinceId
- returns only sent direct messages with an ID greater than (that is, more recent than) the specified IDlistener
- a listener object that receives the responsepublic void sendDirectMessageAsync(java.lang.String id, java.lang.String text, TwitterListener listener)
id
- Stringtext
- Stringlistener
- a listener object that receives the responsepublic void sendDirectMessageAsync(java.lang.String id, java.lang.String text)
id
- Stringtext
- Stringpublic void deleteDirectMessageAsync(int id, TwitterListener listener)
id
- intlistener
- a listener object that receives the responsepublic void destroyDirectMessageAsync(int id, TwitterListener listener)
id
- intlistener
- a listener object that receives the responsepublic void destroyDirectMessageAsync(int id)
public void createAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void createFriendshipAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void createFriendshipAsync(java.lang.String id, boolean follow, TwitterListener listener)
id
- the ID or screen name of the user to be befriendedfollow
- Enable notifications for the target user in addition to becoming friends.listener
- a listener object that receives the responsepublic void createAsync(java.lang.String id)
id
- Stringpublic void createFriendshipAsync(java.lang.String id)
id
- Stringpublic void destroyAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void destroyAsync(java.lang.String id)
id
- Stringpublic void destroyFriendshipAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void destroyFriendshipAsync(java.lang.String id)
id
- Stringpublic void existsAsync(java.lang.String userA, java.lang.String userB, TwitterListener listener)
userA
- The ID or screen_name of the first user to test friendship for.userB
- The ID or screen_name of the second user to test friendship for.public void existsFriendshipAsync(java.lang.String userA, java.lang.String userB, TwitterListener listener)
userA
- The ID or screen_name of the first user to test friendship for.userB
- The ID or screen_name of the second user to test friendship for.public void getFriendsIDsAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getFriendsIDsAsync(Paging paging, TwitterListener listener)
listener
- a listener object that receives the responsepaging
- Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.public void getFriendsIDsAsync(long cursor, TwitterListener listener)
listener
- a listener object that receives the responsecursor
- Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.public void getFriendsIDsAsync(int userId, TwitterListener listener)
userId
- Specfies the ID of the user for whom to return the friends list.listener
- a listener object that receives the responsepublic void getFriendsIDsAsync(int userId, Paging paging, TwitterListener listener)
userId
- Specfies the ID of the user for whom to return the friends list.paging
- Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.listener
- a listener object that receives the responsepublic void getFriendsIDsAsync(int userId, long cursor, TwitterListener listener)
userId
- Specifies the ID of the user for whom to return the friends list.cursor
- Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.listener
- a listener object that receives the responsepublic void getFriendsIDsAsync(java.lang.String screenName, TwitterListener listener)
screenName
- Specfies the screen name of the user for whom to return the friends list.listener
- a listener object that receives the responsepublic void getFriendsIDsAsync(java.lang.String screenName, Paging paging, TwitterListener listener)
screenName
- Specfies the screen name of the user for whom to return the friends list.paging
- Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.listener
- a listener object that receives the responsepublic void getFriendsIDsAsync(java.lang.String screenName, long cursor, TwitterListener listener)
screenName
- Specfies the screen name of the user for whom to return the friends list.cursor
- Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.listener
- a listener object that receives the responsepublic void getFollowersIDsAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getFollowersIDsAsync(Paging paging, TwitterListener listener)
listener
- a listener object that receives the responsepaging
- Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.public void getFollowersIDsAsync(long cursor, TwitterListener listener)
cursor
- Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.listener
- a listener object that receives the responsepublic void getFollowersIDsAsync(int userId, TwitterListener listener)
userId
- Specfies the ID of the user for whom to return the followers list.listener
- a listener object that receives the responsepublic void getFollowersIDsAsync(int userId, Paging paging, TwitterListener listener)
userId
- Specfies the ID of the user for whom to return the followers list.paging
- Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.listener
- a listener object that receives the responsepublic void getFollowersIDsAsync(int userId, long cursor, TwitterListener listener)
userId
- Specfies the ID of the user for whom to return the followers list.cursor
- Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.listener
- a listener object that receives the responsepublic void getFollowersIDsAsync(java.lang.String screenName, TwitterListener listener) throws TwitterException
screenName
- Specfies the screen name of the user for whom to return the followers list.listener
- a listener object that receives the response
TwitterException
public void getFollowersIDsAsync(java.lang.String screenName, Paging paging, TwitterListener listener) throws TwitterException
screenName
- Specfies the screen name of the user for whom to return the followers list.paging
- Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.listener
- a listener object that receives the response
TwitterException
public void getFollowersIDsAsync(java.lang.String screenName, long cursor, TwitterListener listener) throws TwitterException
screenName
- Specfies the screen name of the user for whom to return the followers list.cursor
- Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.listener
- a listener object that receives the response
TwitterException
public void updateLocationAsync(java.lang.String location, TwitterListener listener)
location
- the current location of the userlistener
- a listener object that receives the responsepublic void updateProfileAsync(java.lang.String name, java.lang.String email, java.lang.String url, java.lang.String location, java.lang.String description, TwitterListener listener)
name
- Optional. Maximum of 20 characters.email
- Optional. Maximum of 40 characters. Must be a valid email address.url
- Optional. Maximum of 100 characters. Will be prepended with "http://" if not present.location
- Optional. Maximum of 30 characters. The contents are not normalized or geocoded in any way.description
- Optional. Maximum of 160 characters.listener
- a listener object that receives the responsepublic void updateProfileAsync(java.lang.String name, java.lang.String email, java.lang.String url, java.lang.String location, java.lang.String description)
name
- Optional. Maximum of 20 characters.email
- Optional. Maximum of 40 characters. Must be a valid email address.url
- Optional. Maximum of 100 characters. Will be prepended with "http://" if not present.location
- Optional. Maximum of 30 characters. The contents are not normalized or geocoded in any way.description
- Optional. Maximum of 160 characters.public void rateLimitStatusAsync(TwitterListener listener)
public void updateDeliverlyDeviceAsync(Twitter.Device device, TwitterListener listener)
device
- new Delivery device. Must be one of: IM, SMS, NONE.listener
- a listener object that receives the responsepublic void updateProfileColorsAsync(java.lang.String profileBackgroundColor, java.lang.String profileTextColor, java.lang.String profileLinkColor, java.lang.String profileSidebarFillColor, java.lang.String profileSidebarBorderColor, TwitterListener listener)
profileBackgroundColor
- optional, can be nullprofileTextColor
- optional, can be nullprofileLinkColor
- optional, can be nullprofileSidebarFillColor
- optional, can be nullprofileSidebarBorderColor
- optional, can be nulllistener
- a listener object that receives the responsepublic void updateProfileColorsAsync(java.lang.String profileBackgroundColor, java.lang.String profileTextColor, java.lang.String profileLinkColor, java.lang.String profileSidebarFillColor, java.lang.String profileSidebarBorderColor)
profileBackgroundColor
- optional, can be nullprofileTextColor
- optional, can be nullprofileLinkColor
- optional, can be nullprofileSidebarFillColor
- optional, can be nullprofileSidebarBorderColor
- optional, can be nullpublic void favoritesAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void getFavoritesAsync(TwitterListener listener)
listener
- a listener object that receives the responsepublic void favoritesAsync(int page, TwitterListener listener)
page
- number of page to retrieve favoriteslistener
- a listener object that receives the responsepublic void getFavoritesAsync(int page, TwitterListener listener)
page
- number of page to retrieve favoriteslistener
- a listener object that receives the responsepublic void favoritesAsync(java.lang.String id, TwitterListener listener)
id
- the ID or screen name of the user for whom to request a list of favorite statuseslistener
- a listener object that receives the responsepublic void getFavoritesAsync(java.lang.String id, TwitterListener listener)
id
- the ID or screen name of the user for whom to request a list of favorite statuseslistener
- a listener object that receives the responsepublic void favoritesAsync(java.lang.String id, int page, TwitterListener listener)
id
- the ID or screen name of the user for whom to request a list of favorite statuses.page
- retrieves the 20 next most recent favorite statuses.listener
- a listener object that receives the responsepublic void getFavoritesAsync(java.lang.String id, int page, TwitterListener listener)
id
- the ID or screen name of the user for whom to request a list of favorite statuses.page
- retrieves the 20 next most recent favorite statuses.listener
- a listener object that receives the responsepublic void createFavoriteAsync(int id, TwitterListener listener)
id
- the ID or screen name of the user for whom to request a list of favorite statuses.listener
- a listener object that receives the responsepublic void createFavoriteAsync(long id, TwitterListener listener)
id
- the ID or screen name of the user for whom to request a list of favorite statuses.listener
- a listener object that receives the responsepublic void createFavoriteAsync(int id)
id
- the ID or screen name of the user for whom to request a list of favorite statuses.public void createFavoriteAsync(long id)
id
- the ID or screen name of the user for whom to request a list of favorite statuses.public void destroyFavoriteAsync(int id, TwitterListener listener)
id
- the ID or screen name of the user for whom to request a list of un-favorite statuses.listener
- a listener object that receives the responsepublic void destroyFavoriteAsync(long id, TwitterListener listener)
id
- the ID or screen name of the user for whom to request a list of un-favorite statuses.listener
- a listener object that receives the responsepublic void destroyFavoriteAsync(int id)
id
- the ID or screen name of the user for whom to request a list of un-favorite statuses.public void destroyFavoriteAsync(long id)
id
- the ID or screen name of the user for whom to request a list of un-favorite statuses.public void followAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void enableNotificationAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void followAsync(java.lang.String id)
id
- Stringpublic void enableNotificationAsync(java.lang.String id)
id
- Stringpublic void leaveAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void disableNotificationAsync(java.lang.String id, TwitterListener listener)
id
- Stringlistener
- a listener object that receives the responsepublic void leaveAsync(java.lang.String id)
id
- Stringpublic void disableNotificationAsync(java.lang.String id)
id
- Stringpublic void blockAsync(java.lang.String id)
id
- the ID or screen_name of the user to blockpublic void createBlockAsync(java.lang.String id, TwitterListener listener)
id
- the ID or screen_name of the user to blocklistener
- a listener object that receives the responsepublic void createBlockAsync(java.lang.String id)
id
- the ID or screen_name of the user to blockpublic void unblockAsync(java.lang.String id)
id
- the ID or screen_name of the user to blockpublic void destroyBlockAsync(java.lang.String id, TwitterListener listener)
id
- the ID or screen_name of the user to blockpublic void destroyBlockAsync(java.lang.String id)
id
- the ID or screen_name of the user to blockpublic void existsBlockAsync(java.lang.String id, TwitterListener listener)
id
- The ID or screen_name of the potentially blocked user.public void getBlockingUsersAsync(TwitterListener listener) throws TwitterException
TwitterException
- when Twitter service or network is unavailablepublic void getBlockingUsersAsync(int page, TwitterListener listener) throws TwitterException
page
- the number of page
TwitterException
- when Twitter service or network is unavailablepublic void getBlockingUsersIDsAsync(TwitterListener listener) throws TwitterException
TwitterException
- when Twitter service or network is unavailablepublic void testAsync()
public void shutdown()
private Dispatcher getDispatcher()
public void getDowntimeScheduleAsync()
public void getAuthenticatedUserAsync(TwitterListener listener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |