twitter4j
Interface Relationship

All Superinterfaces:
java.io.Serializable, TwitterResponse
All Known Implementing Classes:
RelationshipJSONImpl

public interface Relationship
extends TwitterResponse, java.io.Serializable

A data interface that has detailed information about a relationship between two users

Since:
Twitter4J 2.1.0
Author:
Perry Sakkaris - psakkaris at gmail.com
See Also:
REST API DOCUMENTATION

Method Summary
 int getSourceUserId()
          Returns the source user id
 java.lang.String getSourceUserScreenName()
          Returns the source user screen name
 int getTargetUserId()
          Returns the target user id
 java.lang.String getTargetUserScreenName()
          Returns the target user screen name
 boolean isSourceBlockingTarget()
          Returns if the source user is blocking the target user
 boolean isSourceFollowedByTarget()
          Checks if source user is being followed by target user
 boolean isSourceFollowingTarget()
          Checks if source user is following target user
 boolean isSourceNotificationsEnabled()
          Checks if the source user has enabled notifications for updates of the target user
 boolean isTargetFollowedBySource()
          Checks if target user is being followed by source user.
This method is equivalent to isSourceFollowingTarget().
 boolean isTargetFollowingSource()
          Checks if target user is following source user.
This method is equivalent to isSourceFollowedByTarget().
 
Methods inherited from interface twitter4j.TwitterResponse
getRateLimitStatus
 

Method Detail

getSourceUserId

int getSourceUserId()
Returns the source user id

Returns:
the source user id

getTargetUserId

int getTargetUserId()
Returns the target user id

Returns:
target user id

isSourceBlockingTarget

boolean isSourceBlockingTarget()
Returns if the source user is blocking the target user

Returns:
if the source is blocking the target

getSourceUserScreenName

java.lang.String getSourceUserScreenName()
Returns the source user screen name

Returns:
returns the source user screen name

getTargetUserScreenName

java.lang.String getTargetUserScreenName()
Returns the target user screen name

Returns:
the target user screen name

isSourceFollowingTarget

boolean isSourceFollowingTarget()
Checks if source user is following target user

Returns:
true if source user is following target user

isTargetFollowingSource

boolean isTargetFollowingSource()
Checks if target user is following source user.
This method is equivalent to isSourceFollowedByTarget().

Returns:
true if target user is following source user

isSourceFollowedByTarget

boolean isSourceFollowedByTarget()
Checks if source user is being followed by target user

Returns:
true if source user is being followed by target user

isTargetFollowedBySource

boolean isTargetFollowedBySource()
Checks if target user is being followed by source user.
This method is equivalent to isSourceFollowingTarget().

Returns:
true if target user is being followed by source user

isSourceNotificationsEnabled

boolean isSourceNotificationsEnabled()
Checks if the source user has enabled notifications for updates of the target user

Returns:
true if source user enabled notifications for target user