public interface NotificationMethods
Modifier and Type | Method and Description |
---|---|
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.
|
User enableNotification(java.lang.String screenName) throws TwitterException
screenName
- Specifies the screen name of the user to follow with device updates.TwitterException
- when Twitter service or network is unavailableUser enableNotification(int userId) throws TwitterException
userId
- Specifies the ID of the user to follow with device updates.TwitterException
- when Twitter service or network is unavailableUser disableNotification(java.lang.String screenName) throws TwitterException
screenName
- Specifies the screen name of the user to disable device notifications.TwitterException
- when Twitter service or network is unavailableUser disableNotification(int userId) throws TwitterException
userId
- Specifies the ID of the user to disable device notifications.TwitterException
- when Twitter service or network is unavailable