public interface BlockMethods
Modifier and Type | Method and Description |
---|---|
User |
createBlock(long userId)
Blocks the user specified in the ID parameter as the authenticating user.
|
User |
createBlock(java.lang.String screenName)
Blocks the user specified in the ID parameter as the authenticating user.
|
User |
destroyBlock(long userId)
Un-blocks the user specified in the ID parameter as the authenticating user.
|
User |
destroyBlock(java.lang.String screen_name)
Un-blocks the user specified in the ID parameter as the authenticating user.
|
boolean |
existsBlock(long userId)
Returns if the authenticating user is blocking a target user.
|
boolean |
existsBlock(java.lang.String screenName)
Returns if the authenticating user is blocking a target user.
|
ResponseList<User> |
getBlockingUsers()
Returns a list of user objects that the authenticating user is blocking.
|
ResponseList<User> |
getBlockingUsers(int page)
Returns a list of user objects that the authenticating user is blocking.
|
IDs |
getBlockingUsersIDs()
Returns an array of numeric user ids the authenticating user is blocking.
|
User createBlock(java.lang.String screenName) throws TwitterException
screenName
- the screen_name of the user to blockTwitterException
- when Twitter service or network is unavailableUser createBlock(long userId) throws TwitterException
userId
- the ID of the user to blockTwitterException
- when Twitter service or network is unavailableUser destroyBlock(java.lang.String screen_name) throws TwitterException
screen_name
- the screen_name of the user to blockTwitterException
- when Twitter service or network is unavailableUser destroyBlock(long userId) throws TwitterException
userId
- the ID of the user to blockTwitterException
- when Twitter service or network is unavailableboolean existsBlock(java.lang.String screenName) throws TwitterException
screenName
- The screen_name of the potentially blocked user.TwitterException
- when Twitter service or network is unavailableboolean existsBlock(long userId) throws TwitterException
userId
- The ID of the potentially blocked user.TwitterException
- when Twitter service or network is unavailableResponseList<User> getBlockingUsers() throws TwitterException
TwitterException
- when Twitter service or network is unavailableResponseList<User> getBlockingUsers(int page) throws TwitterException
page
- the number of pageTwitterException
- when Twitter service or network is unavailableIDs getBlockingUsersIDs() throws TwitterException
TwitterException
- when Twitter service or network is unavailable