class RelationshipJSONImpl extends TwitterResponseImpl implements Relationship, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
private boolean |
sourceBlockingTarget |
private boolean |
sourceCanDm |
private boolean |
sourceFollowedByTarget |
private boolean |
sourceFollowingTarget |
private boolean |
sourceNotificationsEnabled |
private long |
sourceUserId |
private java.lang.String |
sourceUserScreenName |
private long |
targetUserId |
private java.lang.String |
targetUserScreenName |
private boolean |
wantRetweets |
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES| Constructor and Description |
|---|
RelationshipJSONImpl(HttpResponse res,
Configuration conf) |
RelationshipJSONImpl(HttpResponse res,
JSONObject json) |
RelationshipJSONImpl(JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSourceDm()
Checks if source user can send dm to target user
|
(package private) static ResponseList<Relationship> |
createRelationshipList(HttpResponse res,
Configuration conf) |
boolean |
equals(java.lang.Object o) |
long |
getSourceUserId()
Returns the source user id
|
java.lang.String |
getSourceUserScreenName()
Returns the source user screen name
|
long |
getTargetUserId()
Returns the target user id
|
java.lang.String |
getTargetUserScreenName()
Returns the target user screen name
|
int |
hashCode() |
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 |
isSourceWantRetweets()
Checks if the retweets from the target user enabled
|
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(). |
java.lang.String |
toString() |
getAccessLevel, getRateLimitStatusclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAccessLevel, getRateLimitStatusprivate static final long serialVersionUID
private final long targetUserId
private final java.lang.String targetUserScreenName
private final boolean sourceBlockingTarget
private final boolean sourceNotificationsEnabled
private final boolean sourceFollowingTarget
private final boolean sourceFollowedByTarget
private final boolean sourceCanDm
private final long sourceUserId
private final java.lang.String sourceUserScreenName
private boolean wantRetweets
RelationshipJSONImpl(HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionRelationshipJSONImpl(JSONObject json) throws TwitterException
TwitterExceptionRelationshipJSONImpl(HttpResponse res, JSONObject json) throws TwitterException
TwitterExceptionstatic ResponseList<Relationship> createRelationshipList(HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionpublic long getSourceUserId()
getSourceUserId in interface Relationshippublic long getTargetUserId()
getTargetUserId in interface Relationshippublic boolean isSourceBlockingTarget()
isSourceBlockingTarget in interface Relationshippublic java.lang.String getSourceUserScreenName()
getSourceUserScreenName in interface Relationshippublic java.lang.String getTargetUserScreenName()
getTargetUserScreenName in interface Relationshippublic boolean isSourceFollowingTarget()
isSourceFollowingTarget in interface Relationshippublic boolean isTargetFollowingSource()
isTargetFollowingSource in interface Relationshippublic boolean isSourceFollowedByTarget()
isSourceFollowedByTarget in interface Relationshippublic boolean isTargetFollowedBySource()
isTargetFollowedBySource in interface Relationshippublic boolean canSourceDm()
canSourceDm in interface Relationshippublic boolean isSourceNotificationsEnabled()
isSourceNotificationsEnabled in interface Relationshippublic boolean isSourceWantRetweets()
isSourceWantRetweets in interface Relationshippublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object