public interface NotificationMethods
Modifier and Type | Method and Description |
---|---|
User |
disableNotification(long 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(long 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(long 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(long userId) throws TwitterException
userId
- Specifies the ID of the user to disable device notifications.TwitterException
- when Twitter service or network is unavailable