public class SiteStreamsAdapter extends java.lang.Object implements SiteStreamsListener
Constructor and Description |
---|
SiteStreamsAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
onBlock(int forUser,
User source,
User blockedUser) |
void |
onDeletionNotice(int forUser,
int directMessageId,
int userId) |
void |
onDeletionNotice(int forUser,
StatusDeletionNotice statusDeletionNotice) |
void |
onDirectMessage(int forUser,
DirectMessage directMessage) |
void |
onException(java.lang.Exception ex) |
void |
onFavorite(int forUser,
User source,
User target,
Status favoritedStatus) |
void |
onFollow(int forUser,
User source,
User followedUser) |
void |
onFriendList(int forUser,
int[] friendIds) |
void |
onStatus(int forUser,
Status status) |
void |
onUnblock(int forUser,
User source,
User unblockedUser) |
void |
onUnfavorite(int forUser,
User source,
User target,
Status unfavoritedStatus) |
void |
onUnfollow(int forUser,
User source,
User followedUser) |
void |
onUserListCreation(int forUser,
User listOwner,
UserList list) |
void |
onUserListDeletion(int forUser,
User listOwner,
UserList list) |
void |
onUserListMemberAddition(int forUser,
User addedUser,
User listOwner,
UserList list) |
void |
onUserListMemberDeletion(int forUser,
User deletedUser,
User listOwner,
UserList list) |
void |
onUserListSubscription(int forUser,
User subscriber,
User listOwner,
UserList list) |
void |
onUserListUnsubscription(int forUser,
User subscriber,
User listOwner,
UserList list) |
void |
onUserListUpdate(int forUser,
User listOwner,
UserList list) |
void |
onUserProfileUpdate(int forUser,
User updatedUser) |
public void onStatus(int forUser, Status status)
onStatus
in interface SiteStreamsListener
public void onDeletionNotice(int forUser, StatusDeletionNotice statusDeletionNotice)
onDeletionNotice
in interface SiteStreamsListener
public void onFriendList(int forUser, int[] friendIds)
onFriendList
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onFavorite(int forUser, User source, User target, Status favoritedStatus)
onFavorite
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUnfavorite(int forUser, User source, User target, Status unfavoritedStatus)
onUnfavorite
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onFollow(int forUser, User source, User followedUser)
onFollow
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUnfollow(int forUser, User source, User followedUser)
onUnfollow
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onDirectMessage(int forUser, DirectMessage directMessage)
onDirectMessage
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onDeletionNotice(int forUser, int directMessageId, int userId)
onDeletionNotice
in interface SiteStreamsListener
public void onUserListMemberAddition(int forUser, User addedUser, User listOwner, UserList list)
onUserListMemberAddition
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserListMemberDeletion(int forUser, User deletedUser, User listOwner, UserList list)
onUserListMemberDeletion
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserListSubscription(int forUser, User subscriber, User listOwner, UserList list)
onUserListSubscription
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserListUnsubscription(int forUser, User subscriber, User listOwner, UserList list)
onUserListUnsubscription
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserListCreation(int forUser, User listOwner, UserList list)
onUserListCreation
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserListUpdate(int forUser, User listOwner, UserList list)
onUserListUpdate
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserListDeletion(int forUser, User listOwner, UserList list)
onUserListDeletion
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserProfileUpdate(int forUser, User updatedUser)
onUserProfileUpdate
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventupdatedUser
- updated userpublic void onBlock(int forUser, User source, User blockedUser)
onBlock
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUnblock(int forUser, User source, User unblockedUser)
onUnblock
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onException(java.lang.Exception ex)
onException
in interface SiteStreamsListener
onException
in interface StreamListener