public class SiteStreamsAdapter extends 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(String screenName)
callback method for
StreamController.removeUsers(long[]) |
void |
onException(Exception ex) |
void |
onFavorite(long forUser,
User source,
User target,
Status favoritedStatus) |
void |
onFollow(long forUser,
User source,
User followedUser) |
void |
onFriendList(long forUser,
long[] friendIds) |
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 |
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) |
public void onStatus(long forUser, Status status)
onStatus
in interface SiteStreamsListener
public void onDeletionNotice(long forUser, StatusDeletionNotice statusDeletionNotice)
onDeletionNotice
in interface SiteStreamsListener
public void onFriendList(long forUser, long[] friendIds)
onFriendList
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onFavorite(long forUser, User source, User target, Status favoritedStatus)
onFavorite
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUnfavorite(long forUser, User source, User target, Status unfavoritedStatus)
onUnfavorite
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onFollow(long forUser, User source, User followedUser)
onFollow
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUnfollow(long forUser, User source, User followedUser)
onUnfollow
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onDirectMessage(long forUser, DirectMessage directMessage)
onDirectMessage
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onDeletionNotice(long forUser, long directMessageId, long userId)
onDeletionNotice
in interface SiteStreamsListener
public void onUserListMemberAddition(long forUser, User addedUser, User listOwner, UserList list)
onUserListMemberAddition
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserListMemberDeletion(long forUser, User deletedUser, User listOwner, UserList list)
onUserListMemberDeletion
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserListSubscription(long forUser, User subscriber, User listOwner, UserList list)
onUserListSubscription
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserListUnsubscription(long forUser, User subscriber, User listOwner, UserList list)
onUserListUnsubscription
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserListCreation(long forUser, User listOwner, UserList list)
onUserListCreation
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserListUpdate(long forUser, User listOwner, UserList list)
onUserListUpdate
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserListDeletion(long forUser, User listOwner, UserList list)
onUserListDeletion
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUserProfileUpdate(long forUser, User updatedUser)
onUserProfileUpdate
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventupdatedUser
- updated userpublic void onBlock(long forUser, User source, User blockedUser)
onBlock
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onUnblock(long forUser, User source, User unblockedUser)
onUnblock
in interface SiteStreamsListener
forUser
- the user id to whom sent the eventpublic void onDisconnectionNotice(String screenName)
SiteStreamsListener
StreamController.removeUsers(long[])
onDisconnectionNotice
in interface SiteStreamsListener
public void onException(Exception ex)
onException
in interface SiteStreamsListener
Copyright © 2013. All Rights Reserved.