|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FriendOperations
Interface defining the operations for working with a user's friends and followers.
| Method Summary | |
|---|---|
java.lang.String |
follow(long userId)
Allows the authenticated user to follow (create a friendship) with another user. |
java.lang.String |
follow(java.lang.String screenName)
Allows the authenticated user to follow (create a friendship) with another user. |
boolean |
friendshipExists(java.lang.String userA,
java.lang.String userB)
Checks for a friendship between two users. |
java.util.List<java.lang.Long> |
getFollowerIds()
Retrieves a list of IDs for the Twitter users that follow the authenticated user. |
java.util.List<java.lang.Long> |
getFollowerIds(long userId)
Retrieves a list of IDs for the Twitter users that follow the given user. |
java.util.List<java.lang.Long> |
getFollowerIds(java.lang.String screenName)
Retrieves a list of IDs for the Twitter users that follow the given user. |
java.util.List<TwitterProfile> |
getFollowers()
Retrieves a list of users that the authenticated user is being followed by |
java.util.List<TwitterProfile> |
getFollowers(long userId)
Retrieves a list of users that the given user is being followed by |
java.util.List<TwitterProfile> |
getFollowers(java.lang.String screenName)
Retrieves a list of users that the given user is being followed by |
java.util.List<java.lang.Long> |
getFriendIds()
Retrieves a list of IDs for the Twitter users that the authenticated user follows. |
java.util.List<java.lang.Long> |
getFriendIds(long userId)
Retrieves a list of IDs for the Twitter users that the given user follows. |
java.util.List<java.lang.Long> |
getFriendIds(java.lang.String screenName)
Retrieves a list of IDs for the Twitter users that the given user follows. |
java.util.List<TwitterProfile> |
getFriends()
Retrieves a list of users that the authenticated user follows. |
java.util.List<TwitterProfile> |
getFriends(long userId)
Retrieves a list of users that the given user follows. |
java.util.List<TwitterProfile> |
getFriends(java.lang.String screenName)
Retrieves a list of users that the given user follows. |
java.util.List<java.lang.Long> |
getIncomingFriendships()
Returns an array of numeric IDs for every user who has a pending request to follow the authenticating user. |
java.util.List<java.lang.Long> |
getOutgoingFriendships()
Returns an array of numeric IDs for every protected user for whom the authenticating user has a pending follow request. |
java.lang.String |
unfollow(long userId)
Allows the authenticated use to unfollow (destroy a friendship) with another user |
java.lang.String |
unfollow(java.lang.String screenName)
Allows the authenticated use to unfollow (destroy a friendship) with another user |
| Method Detail |
|---|
java.util.List<TwitterProfile> getFriends()
java.util.List<TwitterProfile> getFriends(long userId)
userId - The user's Twitter ID
java.util.List<TwitterProfile> getFriends(java.lang.String screenName)
screenName - The user's Twitter screen name
java.util.List<java.lang.Long> getFriendIds()
java.util.List<java.lang.Long> getFriendIds(long userId)
userId - the user's Twitter ID
java.util.List<java.lang.Long> getFriendIds(java.lang.String screenName)
screenName - the user's Twitter screen name
java.util.List<TwitterProfile> getFollowers()
java.util.List<TwitterProfile> getFollowers(long userId)
userId - The user's Twitter ID
java.util.List<TwitterProfile> getFollowers(java.lang.String screenName)
screenName - The user's Twitter screen name
java.util.List<java.lang.Long> getFollowerIds()
java.util.List<java.lang.Long> getFollowerIds(long userId)
userId - the user's Twitter ID
java.util.List<java.lang.Long> getFollowerIds(java.lang.String screenName)
screenName - the user's Twitter screen name
java.lang.String follow(long userId)
userId - The Twitter ID of the user to follow
java.lang.String follow(java.lang.String screenName)
screenName - The screen name of the user to follow
java.lang.String unfollow(long userId)
userId - the Twitter ID of the user to unfollow
java.lang.String unfollow(java.lang.String screenName)
screenName - the screen name of the user to unfollow
boolean friendshipExists(java.lang.String userA,
java.lang.String userB)
userA - the screen name of userAuserB - the screen name of userBjava.util.List<java.lang.Long> getIncomingFriendships()
java.util.List<java.lang.Long> getOutgoingFriendships()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||