public interface SiteStreamsListener extends StreamListener
| 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 line)
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 unfollowedUser) |
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 addedMember,
User listOwner,
UserList list) |
void |
onUserListMemberDeletion(long forUser,
User deletedMember,
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) |
void onStatus(long forUser,
Status status)
void onDeletionNotice(long forUser,
StatusDeletionNotice statusDeletionNotice)
void onFriendList(long forUser,
long[] friendIds)
forUser - the user id to whom sent the eventfriendIds - friend idsvoid onFavorite(long forUser,
User source,
User target,
Status favoritedStatus)
forUser - the user id to whom sent the eventsource - source user of the eventtarget - target user of the eventfavoritedStatus - the status favoritedvoid onUnfavorite(long forUser,
User source,
User target,
Status unfavoritedStatus)
forUser - the user id to whom sent the eventsource - source user of the eventtarget - target user of the eventunfavoritedStatus - the status unfavoritedvoid onFollow(long forUser,
User source,
User followedUser)
forUser - the user id to whom sent the eventsource - source user of the eventfollowedUser - user followedvoid onUnfollow(long forUser,
User source,
User unfollowedUser)
forUser - the user id to whom sent the eventsource - source user of the eventunfollowedUser - user unfollowedvoid onDirectMessage(long forUser,
DirectMessage directMessage)
forUser - the user id to whom sent the eventdirectMessage - direct message receivedvoid onDeletionNotice(long forUser,
long directMessageId,
long userId)
void onUserListMemberAddition(long forUser,
User addedMember,
User listOwner,
UserList list)
forUser - the user id to whom sent the eventaddedMember - member addedlistOwner - owner of the listlist - the listvoid onUserListMemberDeletion(long forUser,
User deletedMember,
User listOwner,
UserList list)
forUser - the user id to whom sent the eventdeletedMember - member deletedlistOwner - owner of the listlist - the listvoid onUserListSubscription(long forUser,
User subscriber,
User listOwner,
UserList list)
forUser - the user id to whom sent the eventsubscriber - member subscribedlistOwner - owner of the listlist - the listvoid onUserListUnsubscription(long forUser,
User subscriber,
User listOwner,
UserList list)
forUser - the user id to whom sent the eventsubscriber - user subscribedlistOwner - owner of the listlist - the listvoid onUserListCreation(long forUser,
User listOwner,
UserList list)
forUser - the user id to whom sent the eventlistOwner - owner of the listlist - the listvoid onUserListUpdate(long forUser,
User listOwner,
UserList list)
forUser - the user id to whom sent the eventlistOwner - owner of the listlist - the listvoid onUserListDeletion(long forUser,
User listOwner,
UserList list)
forUser - the user id to whom sent the eventlistOwner - owner of the listlist - the listvoid onUserProfileUpdate(long forUser,
User updatedUser)
forUser - the user id to whom sent the eventupdatedUser - updated uservoid onUserSuspension(long forUser,
long suspendedUser)
forUser - the user id to whom sent the eventsuspendedUser - suspended user idvoid onUserDeletion(long forUser,
long deletedUser)
forUser - the user id to whom sent the eventdeletedUser - deleted user idvoid onBlock(long forUser,
User source,
User blockedUser)
forUser - the user id to whom sent the eventsource - the user user blockedblockedUser - the user got blockedvoid onUnblock(long forUser,
User source,
User unblockedUser)
forUser - the user id to whom sent the eventsource - the user unblockedunblockedUser - the user got unblockedvoid onRetweetedRetweet(User source, User target, Status retweetedStatus)
source - source user of the eventtarget - target user of the eventretweetedStatus - status retweeted retweetvoid onFavoritedRetweet(User source, User target, Status favoritedStatus)
source - source user of the eventtarget - target user of the eventfavoritedStatus - status favorited retweetvoid onDisconnectionNotice(java.lang.String line)
StreamController.removeUsers(long[])line - noticevoid onException(java.lang.Exception ex)
onException in interface StreamListenervoid onQuotedTweet(User source, User target, Status quotingTweet)
source - source user of the eventtarget - target user of the eventquotingTweet - status favorited retweetvoid onMute(long forUser,
User source,
User target)
source - source user of the eventtarget - target user of the event