twitter4j
Class UserStreamAdapter

java.lang.Object
  extended by twitter4j.StatusAdapter
      extended by twitter4j.UserStreamAdapter
All Implemented Interfaces:
StatusListener, StreamListener, UserStreamListener

public class UserStreamAdapter
extends StatusAdapter
implements UserStreamListener

Since:
Twitter4J 2.1.3
Author:
Rémy Rakic at gmail.com

Constructor Summary
UserStreamAdapter()
           
 
Method Summary
 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 onFollow(User source, User followedUser)
           
 void onFriendList(long[] friendIds)
           
 void onRetweet(User source, User target, Status retweetedStatus)
           
 void onUnblock(User source, User unblockedUser)
           
 void onUnfavorite(User source, User target, Status unfavoritedStatus)
           
 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)
           
 
Methods inherited from class twitter4j.StatusAdapter
onDeletionNotice, onScrubGeo, onStatus, onTrackLimitationNotice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface twitter4j.StatusListener
onDeletionNotice, onScrubGeo, onStatus, onTrackLimitationNotice
 

Constructor Detail

UserStreamAdapter

public UserStreamAdapter()
Method Detail

onDeletionNotice

public void onDeletionNotice(long directMessageId,
                             long userId)
Specified by:
onDeletionNotice in interface UserStreamListener

onFriendList

public void onFriendList(long[] friendIds)
Specified by:
onFriendList in interface UserStreamListener

onFavorite

public void onFavorite(User source,
                       User target,
                       Status favoritedStatus)
Specified by:
onFavorite in interface UserStreamListener

onFollow

public void onFollow(User source,
                     User followedUser)
Specified by:
onFollow in interface UserStreamListener

onUnfavorite

public void onUnfavorite(User source,
                         User target,
                         Status unfavoritedStatus)
Specified by:
onUnfavorite in interface UserStreamListener

onRetweet

public void onRetweet(User source,
                      User target,
                      Status retweetedStatus)
Specified by:
onRetweet in interface UserStreamListener

onDirectMessage

public void onDirectMessage(DirectMessage directMessage)
Specified by:
onDirectMessage in interface UserStreamListener

onUserListMemberAddition

public void onUserListMemberAddition(User addedMember,
                                     User listOwner,
                                     UserList list)
Specified by:
onUserListMemberAddition in interface UserStreamListener

onUserListMemberDeletion

public void onUserListMemberDeletion(User deletedMember,
                                     User listOwner,
                                     UserList list)
Specified by:
onUserListMemberDeletion in interface UserStreamListener

onUserListSubscription

public void onUserListSubscription(User subscriber,
                                   User listOwner,
                                   UserList list)
Specified by:
onUserListSubscription in interface UserStreamListener

onUserListUnsubscription

public void onUserListUnsubscription(User subscriber,
                                     User listOwner,
                                     UserList list)
Specified by:
onUserListUnsubscription in interface UserStreamListener

onUserListCreation

public void onUserListCreation(User listOwner,
                               UserList list)
Specified by:
onUserListCreation in interface UserStreamListener

onUserListUpdate

public void onUserListUpdate(User listOwner,
                             UserList list)
Specified by:
onUserListUpdate in interface UserStreamListener

onUserListDeletion

public void onUserListDeletion(User listOwner,
                               UserList list)
Specified by:
onUserListDeletion in interface UserStreamListener

onUserProfileUpdate

public void onUserProfileUpdate(User updatedUser)
Specified by:
onUserProfileUpdate in interface UserStreamListener
Parameters:
updatedUser - updated user

onBlock

public void onBlock(User source,
                    User blockedUser)
Specified by:
onBlock in interface UserStreamListener

onUnblock

public void onUnblock(User source,
                      User unblockedUser)
Specified by:
onUnblock in interface UserStreamListener

onException

public void onException(java.lang.Exception ex)
Specified by:
onException in interface StreamListener
Overrides:
onException in class StatusAdapter