public class SiteStreamsAdapter extends java.lang.Object implements SiteStreamsListener
| Constructor and Description |
|---|
SiteStreamsAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onBlock(long forUser,
User source,
User blockedUser) |
void |
onDeletionNotice(long forUser,
long directMessageId,
long userId) |
void |
onDeletionNotice(long forUser,
StatusDeletionNotice statusDeletionNotice) |
void |
onDirectMessage(long forUser,
DirectMessage directMessage) |
void |
onDisconnectionNotice(java.lang.String screenName)
callback method for
StreamController.removeUsers(long[]) |
void |
onException(java.lang.Exception ex) |
void |
onFavorite(long forUser,
User source,
User target,
Status favoritedStatus) |
void |
onFavoritedRetweet(User source,
User target,
Status favoritedStatus) |
void |
onFollow(long forUser,
User source,
User followedUser) |
void |
onFriendList(long forUser,
long[] friendIds) |
void |
onMute(long forUser,
User source,
User target) |
void |
onQuotedTweet(User source,
User target,
Status quotingTweet) |
void |
onRetweetedRetweet(User source,
User target,
Status retweetedStatus) |
void |
onStatus(long forUser,
Status status) |
void |
onUnblock(long forUser,
User source,
User unblockedUser) |
void |
onUnfavorite(long forUser,
User source,
User target,
Status unfavoritedStatus) |
void |
onUnfollow(long forUser,
User source,
User followedUser) |
void |
onUnmute(long forUser,
User source,
User target) |
void |
onUserDeletion(long forUser,
long deletedUser) |
void |
onUserListCreation(long forUser,
User listOwner,
UserList list) |
void |
onUserListDeletion(long forUser,
User listOwner,
UserList list) |
void |
onUserListMemberAddition(long forUser,
User addedUser,
User listOwner,
UserList list) |
void |
onUserListMemberDeletion(long forUser,
User deletedUser,
User listOwner,
UserList list) |
void |
onUserListSubscription(long forUser,
User subscriber,
User listOwner,
UserList list) |
void |
onUserListUnsubscription(long forUser,
User subscriber,
User listOwner,
UserList list) |
void |
onUserListUpdate(long forUser,
User listOwner,
UserList list) |
void |
onUserProfileUpdate(long forUser,
User updatedUser) |
void |
onUserSuspension(long forUser,
long suspendedUser) |
public void onStatus(long forUser,
Status status)
onStatus in interface SiteStreamsListenerpublic void onDeletionNotice(long forUser,
StatusDeletionNotice statusDeletionNotice)
onDeletionNotice in interface SiteStreamsListenerpublic void onFriendList(long forUser,
long[] friendIds)
onFriendList in interface SiteStreamsListenerforUser - the user id to whom sent the eventfriendIds - friend idspublic void onFavorite(long forUser,
User source,
User target,
Status favoritedStatus)
onFavorite in interface SiteStreamsListenerforUser - the user id to whom sent the eventsource - source user of the eventtarget - target user of the eventfavoritedStatus - the status favoritedpublic void onUnfavorite(long forUser,
User source,
User target,
Status unfavoritedStatus)
onUnfavorite in interface SiteStreamsListenerforUser - the user id to whom sent the eventsource - source user of the eventtarget - target user of the eventunfavoritedStatus - the status unfavoritedpublic void onFollow(long forUser,
User source,
User followedUser)
onFollow in interface SiteStreamsListenerforUser - the user id to whom sent the eventsource - source user of the eventfollowedUser - user followedpublic void onUnfollow(long forUser,
User source,
User followedUser)
onUnfollow in interface SiteStreamsListenerforUser - the user id to whom sent the eventsource - source user of the eventfollowedUser - user unfollowedpublic void onDirectMessage(long forUser,
DirectMessage directMessage)
onDirectMessage in interface SiteStreamsListenerforUser - the user id to whom sent the eventdirectMessage - direct message receivedpublic void onDeletionNotice(long forUser,
long directMessageId,
long userId)
onDeletionNotice in interface SiteStreamsListenerpublic void onUserListMemberAddition(long forUser,
User addedUser,
User listOwner,
UserList list)
onUserListMemberAddition in interface SiteStreamsListenerforUser - the user id to whom sent the eventaddedUser - member addedlistOwner - owner of the listlist - the listpublic void onUserListMemberDeletion(long forUser,
User deletedUser,
User listOwner,
UserList list)
onUserListMemberDeletion in interface SiteStreamsListenerforUser - the user id to whom sent the eventdeletedUser - member deletedlistOwner - owner of the listlist - the listpublic void onUserListSubscription(long forUser,
User subscriber,
User listOwner,
UserList list)
onUserListSubscription in interface SiteStreamsListenerforUser - the user id to whom sent the eventsubscriber - member subscribedlistOwner - owner of the listlist - the listpublic void onUserListUnsubscription(long forUser,
User subscriber,
User listOwner,
UserList list)
onUserListUnsubscription in interface SiteStreamsListenerforUser - the user id to whom sent the eventsubscriber - user subscribedlistOwner - owner of the listlist - the listpublic void onUserListCreation(long forUser,
User listOwner,
UserList list)
onUserListCreation in interface SiteStreamsListenerforUser - the user id to whom sent the eventlistOwner - owner of the listlist - the listpublic void onUserListUpdate(long forUser,
User listOwner,
UserList list)
onUserListUpdate in interface SiteStreamsListenerforUser - the user id to whom sent the eventlistOwner - owner of the listlist - the listpublic void onUserListDeletion(long forUser,
User listOwner,
UserList list)
onUserListDeletion in interface SiteStreamsListenerforUser - the user id to whom sent the eventlistOwner - owner of the listlist - the listpublic void onUserProfileUpdate(long forUser,
User updatedUser)
onUserProfileUpdate in interface SiteStreamsListenerforUser - the user id to whom sent the eventupdatedUser - updated userpublic void onUserSuspension(long forUser,
long suspendedUser)
onUserSuspension in interface SiteStreamsListenerforUser - the user id to whom sent the eventsuspendedUser - suspended user idpublic void onUserDeletion(long forUser,
long deletedUser)
onUserDeletion in interface SiteStreamsListenerforUser - the user id to whom sent the eventdeletedUser - deleted user idpublic void onBlock(long forUser,
User source,
User blockedUser)
onBlock in interface SiteStreamsListenerforUser - the user id to whom sent the eventsource - the user user blockedblockedUser - the user got blockedpublic void onUnblock(long forUser,
User source,
User unblockedUser)
onUnblock in interface SiteStreamsListenerforUser - the user id to whom sent the eventsource - the user unblockedunblockedUser - the user got unblockedpublic void onRetweetedRetweet(User source, User target, Status retweetedStatus)
onRetweetedRetweet in interface SiteStreamsListenersource - source user of the eventtarget - target user of the eventretweetedStatus - status retweeted retweetpublic void onFavoritedRetweet(User source, User target, Status favoritedStatus)
onFavoritedRetweet in interface SiteStreamsListenersource - source user of the eventtarget - target user of the eventfavoritedStatus - status favorited retweetpublic void onQuotedTweet(User source, User target, Status quotingTweet)
onQuotedTweet in interface SiteStreamsListenersource - source user of the eventtarget - target user of the eventquotingTweet - status favorited retweetpublic void onMute(long forUser,
User source,
User target)
onMute in interface SiteStreamsListenersource - source user of the eventtarget - target user of the eventpublic void onUnmute(long forUser,
User source,
User target)
onUnmute in interface SiteStreamsListenersource - source user of the eventtarget - target user of the eventpublic void onDisconnectionNotice(java.lang.String screenName)
SiteStreamsListenerStreamController.removeUsers(long[])onDisconnectionNotice in interface SiteStreamsListenerscreenName - noticepublic void onException(java.lang.Exception ex)
onException in interface SiteStreamsListeneronException in interface StreamListener