twitter4j.api
Interface NotificationMethodsAsync

All Known Implementing Classes:
AsyncTwitter

public interface NotificationMethodsAsync

Author:
Joern Huxhorn - jhuxhorn at googlemail.com

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

Method Detail

enableNotification

void enableNotification(java.lang.String screenName)
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

Parameters:
screenName - Specifies the screen name of the user to follow with device updates.
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: notifications%C2%A0follow

enableNotification

void enableNotification(int userId)
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

Parameters:
userId - Specifies the ID of the user to follow with device updates.
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: notifications%C2%A0follow

disableNotification

void disableNotification(java.lang.String screenName)
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

Parameters:
screenName - Specifies the screen name of the user to disable device notifications.
Since:
Twitter4J 2.0.1
See Also:
Twitter API Wiki / Twitter REST API Method: notifications%C2%A0leave

disableNotification

void disableNotification(int userId)
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

Parameters:
userId - Specifies the ID of the user to disable device notifications.
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: notifications%C2%A0leave