public class UserStreamAdapter extends StatusAdapter implements UserStreamListener
Constructor and Description |
---|
UserStreamAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
onBlock(User source,
User blockedUser) |
void |
onDeletionNotice(long directMessageId,
long userId) |
void |
onDirectMessage(DirectMessage directMessage) |
void |
onException(java.lang.Exception ex) |
void |
onFavorite(User source,
User target,
Status favoritedStatus) |
void |
onFavoritedRetweet(User source,
User target,
Status favoritedStatus) |
void |
onFollow(User source,
User followedUser) |
void |
onFriendList(long[] friendIds) |
void |
onQuotedTweet(User source,
User target,
Status quotingTweet) |
void |
onRetweetedRetweet(User source,
User target,
Status retweetedStatus) |
void |
onUnblock(User source,
User unblockedUser) |
void |
onUnfavorite(User source,
User target,
Status unfavoritedStatus) |
void |
onUnfollow(User source,
User unfollowedUser) |
void |
onUserDeletion(long deletedUser) |
void |
onUserListCreation(User listOwner,
UserList list) |
void |
onUserListDeletion(User listOwner,
UserList list) |
void |
onUserListMemberAddition(User addedMember,
User listOwner,
UserList list) |
void |
onUserListMemberDeletion(User deletedMember,
User listOwner,
UserList list) |
void |
onUserListSubscription(User subscriber,
User listOwner,
UserList list) |
void |
onUserListUnsubscription(User subscriber,
User listOwner,
UserList list) |
void |
onUserListUpdate(User listOwner,
UserList list) |
void |
onUserProfileUpdate(User updatedUser) |
void |
onUserSuspension(long suspendedUser) |
onDeletionNotice, onScrubGeo, onStallWarning, onStatus, onTrackLimitationNotice
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onDeletionNotice, onScrubGeo, onStallWarning, onStatus, onTrackLimitationNotice
public void onDeletionNotice(long directMessageId, long userId)
onDeletionNotice
in interface UserStreamListener
public void onFriendList(long[] friendIds)
onFriendList
in interface UserStreamListener
friendIds
- friend idspublic void onFavorite(User source, User target, Status favoritedStatus)
onFavorite
in interface UserStreamListener
source
- source user of the eventtarget
- target user of the eventfavoritedStatus
- status favoritedpublic void onFollow(User source, User followedUser)
onFollow
in interface UserStreamListener
source
- source user of the eventfollowedUser
- user followedpublic void onUnfollow(User source, User unfollowedUser)
onUnfollow
in interface UserStreamListener
source
- source user of the eventunfollowedUser
- user unfollowedpublic void onUnfavorite(User source, User target, Status unfavoritedStatus)
onUnfavorite
in interface UserStreamListener
source
- source user of the eventtarget
- target user of the eventunfavoritedStatus
- status unfavoritedpublic void onDirectMessage(DirectMessage directMessage)
onDirectMessage
in interface UserStreamListener
directMessage
- direct messagepublic void onUserListMemberAddition(User addedMember, User listOwner, UserList list)
onUserListMemberAddition
in interface UserStreamListener
addedMember
- member addedlistOwner
- owner of the listlist
- the listpublic void onUserListMemberDeletion(User deletedMember, User listOwner, UserList list)
onUserListMemberDeletion
in interface UserStreamListener
deletedMember
- user deletedlistOwner
- owner of the listlist
- the listpublic void onUserListSubscription(User subscriber, User listOwner, UserList list)
onUserListSubscription
in interface UserStreamListener
subscriber
- the user subscribedlistOwner
- owner of the listlist
- the listpublic void onUserListUnsubscription(User subscriber, User listOwner, UserList list)
onUserListUnsubscription
in interface UserStreamListener
subscriber
- the user subscribedlistOwner
- owner of the listlist
- the listpublic void onUserListCreation(User listOwner, UserList list)
onUserListCreation
in interface UserStreamListener
listOwner
- owner of the listlist
- the listpublic void onUserListUpdate(User listOwner, UserList list)
onUserListUpdate
in interface UserStreamListener
listOwner
- owner of the listlist
- the listpublic void onUserListDeletion(User listOwner, UserList list)
onUserListDeletion
in interface UserStreamListener
listOwner
- owner of the listlist
- the listpublic void onUserProfileUpdate(User updatedUser)
onUserProfileUpdate
in interface UserStreamListener
updatedUser
- updated userpublic void onUserSuspension(long suspendedUser)
onUserSuspension
in interface UserStreamListener
suspendedUser
- suspended user idpublic void onUserDeletion(long deletedUser)
onUserDeletion
in interface UserStreamListener
deletedUser
- deleted user idpublic void onBlock(User source, User blockedUser)
onBlock
in interface UserStreamListener
source
- source user of the eventblockedUser
- the user blockedpublic void onUnblock(User source, User unblockedUser)
onUnblock
in interface UserStreamListener
source
- source user of the eventunblockedUser
- the user unblockedpublic void onRetweetedRetweet(User source, User target, Status retweetedStatus)
onRetweetedRetweet
in interface UserStreamListener
source
- source user of the eventtarget
- target user of the eventretweetedStatus
- status retweeted retweetpublic void onFavoritedRetweet(User source, User target, Status favoritedStatus)
onFavoritedRetweet
in interface UserStreamListener
source
- source user of the eventtarget
- target user of the eventfavoritedStatus
- status favorited retweetpublic void onQuotedTweet(User source, User target, Status quotingTweet)
onQuotedTweet
in interface UserStreamListener
source
- source user of the eventtarget
- target user of the eventquotingTweet
- status quoting the tweetpublic void onException(java.lang.Exception ex)
onException
in interface StreamListener
onException
in class StatusAdapter
Copyright © 2018. All Rights Reserved.