|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FriendshipMethodsAsync
Method Summary | |
---|---|
void |
createFriendship(int userId)
Befriends the user specified in the ID parameter as the authenticating user. |
void |
createFriendship(int userId,
boolean follow)
Befriends the user specified in the ID parameter as the authenticating user. |
void |
createFriendship(java.lang.String screenName)
Befriends the user specified in the ID parameter as the authenticating user. |
void |
createFriendship(java.lang.String screenName,
boolean follow)
Befriends the user specified in the ID parameter as the authenticating user. |
void |
destroyFriendship(int userId)
Discontinues friendship with the specified in the ID parameter as the authenticating user. |
void |
destroyFriendship(java.lang.String screenName)
Discontinues friendship with the specified in the ID parameter as the authenticating user. |
void |
existsFriendship(java.lang.String userA,
java.lang.String userB)
Tests if a friendship exists between two users. |
void |
showFriendship(int sourceId,
int targetId)
Gets the detailed relationship status between a source user and a target user This method calls http://api.twitter.com/1/friendships/show.json |
void |
showFriendship(java.lang.String sourceScreenName,
java.lang.String targetScreenName)
Gets the detailed relationship status between a source user and a target user This method calls http://api.twitter.com/1/friendships/show.json |
Method Detail |
---|
void createFriendship(java.lang.String screenName)
screenName
- the screen name of the user to be befriendedvoid createFriendship(int userId)
userId
- the ID of the user to be befriendedvoid createFriendship(java.lang.String screenName, boolean follow)
screenName
- the screen name of the user to be befriendedfollow
- Enable notifications for the target user in addition to becoming friends.void createFriendship(int userId, boolean follow)
userId
- the ID of the user to be befriendedfollow
- Enable notifications for the target user in addition to becoming friends.void destroyFriendship(java.lang.String screenName)
screenName
- the screen name of the user to be befriendedvoid destroyFriendship(int userId)
userId
- the screen name of the user to be befriendedvoid existsFriendship(java.lang.String userA, java.lang.String userB)
userA
- The ID or screen_name of the first user to test friendship for.userB
- The ID or screen_name of the second user to test friendship for.void showFriendship(java.lang.String sourceScreenName, java.lang.String targetScreenName)
sourceScreenName
- the screen name of the source usertargetScreenName
- the screen name of the target uservoid showFriendship(int sourceId, int targetId)
sourceId
- the screen ID of the source usertargetId
- the screen ID of the target user
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |