|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockOperations
Interface defining the operations for blocking and unblocking users
Method Summary | |
---|---|
TwitterProfile |
block(long userId)
Blocks a user. |
TwitterProfile |
block(java.lang.String screenName)
Blocks a user. |
java.util.List<java.lang.Long> |
getBlockedUserIds()
Retrieves a list of user IDs for the users that the authenticating user has blocked. |
java.util.List<TwitterProfile> |
getBlockedUsers()
Retrieves a list of users that the authenticating user has blocked. |
java.util.List<TwitterProfile> |
getBlockedUsers(int page,
int pageSize)
Retrieves a list of users that the authenticating user has blocked. |
boolean |
isBlocking(long userId)
Determines if the user has blocked a specific user. |
boolean |
isBlocking(java.lang.String screenName)
Determines if the user has blocked a specific user. |
TwitterProfile |
unblock(long userId)
Unblocks a user. |
TwitterProfile |
unblock(java.lang.String screenName)
Unblocks a user. |
Method Detail |
---|
TwitterProfile block(long userId)
userId
- the ID of the user to block.
TwitterProfile
of the blocked user.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.TwitterProfile block(java.lang.String screenName)
screenName
- the screen name of the user to block.
TwitterProfile
of the blocked user.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.TwitterProfile unblock(long userId)
userId
- the ID of the user to unblock.
TwitterProfile
of the unblocked user.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.TwitterProfile unblock(java.lang.String screenName)
screenName
- the screen name of the user to unblock.
TwitterProfile
of the unblocked user.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.java.util.List<TwitterProfile> getBlockedUsers()
TwitterProfile
s for the users that are blocked.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.java.util.List<TwitterProfile> getBlockedUsers(int page, int pageSize)
page
- the page of blocked users to returnpageSize
- the number of users per page
TwitterProfile
s for the users that are blocked.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.java.util.List<java.lang.Long> getBlockedUserIds()
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.boolean isBlocking(long userId)
userId
- the ID of the user to check for a block.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.boolean isBlocking(java.lang.String screenName)
screenName
- the screen name of the user to check for a block.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |