twitter4j.api
Interface NotificationMethods

All Known Implementing Classes:
Twitter

public interface NotificationMethods

Author:
Joern Huxhorn - jhuxhorn at googlemail.com

Method Summary
 User disableNotification(int userId)
          Disables notifications for updates from the specified user to the authenticating user.
 User disableNotification(java.lang.String screenName)
          Disables notifications for updates from the specified user to the authenticating user.
 User enableNotification(int userId)
          Enables notifications for updates from the specified user to the authenticating user.
 User enableNotification(java.lang.String screenName)
          Enables notifications for updates from the specified user to the authenticating user.
 

Method Detail

enableNotification

User enableNotification(java.lang.String screenName)
                        throws TwitterException
Enables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
This method calls http://api.twitter.com/1/notifications/follow/[id].json

Parameters:
screenName - Specifies the screen name of the user to follow with device updates.
Returns:
User
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: notifications follow

enableNotification

User enableNotification(int userId)
                        throws TwitterException
Enables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
This method calls http://api.twitter.com/1/notifications/follow/[id].json

Parameters:
userId - Specifies the ID of the user to follow with device updates.
Returns:
User
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: notifications follow

disableNotification

User disableNotification(java.lang.String screenName)
                         throws TwitterException
Disables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
This method calls http://api.twitter.com/1/notifications/leave/[id].json

Parameters:
screenName - Specifies the screen name of the user to disable device notifications.
Returns:
User
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: notifications leave

disableNotification

User disableNotification(int userId)
                         throws TwitterException
Disables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
This method calls http://api.twitter.com/1/notifications/leave/[id].json

Parameters:
userId - Specifies the ID of the user to disable device notifications.
Returns:
User
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: notifications leave