twitter4j.api
Interface NotificationMethodsAsync

All Known Subinterfaces:
AsyncTwitter
All Known Implementing Classes:
AsyncTwitterImpl

public interface NotificationMethodsAsync

Author:
Joern Huxhorn - jhuxhorn at googlemail.com

Method Summary
 void disableNotification(long 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(long 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.json

Parameters:
screenName - Specifies the screen name of the user to follow with device updates.
Since:
Twitter4J 2.0.1
See Also:
POST notifications/follow | dev.twitter.com

enableNotification

void enableNotification(long 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.json

Parameters:
userId - Specifies the ID of the user to follow with device updates.
Since:
Twitter4J 2.1.0
See Also:
POST notifications/follow | dev.twitter.com

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.json

Parameters:
screenName - Specifies the screen name of the user to disable device notifications.
Since:
Twitter4J 2.0.1
See Also:
POST notifications/leave | dev.twitter.com

disableNotification

void disableNotification(long 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.json

Parameters:
userId - Specifies the ID of the user to disable device notifications.
Since:
Twitter4J 2.1.0
See Also:
POST notifications/leave | dev.twitter.com