|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwitter4j.TwitterResponseImpl
twitter4j.RelationshipJSONImpl
class RelationshipJSONImpl
A data class that has detailed information about a relationship between two users
Field Summary | |
---|---|
private static long |
serialVersionUID
|
private boolean |
sourceBlockingTarget
|
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
|
Constructor Summary | |
---|---|
RelationshipJSONImpl(twitter4j.internal.http.HttpResponse res)
|
|
RelationshipJSONImpl(twitter4j.internal.http.HttpResponse res,
twitter4j.internal.org.json.JSONObject json)
|
|
RelationshipJSONImpl(twitter4j.internal.org.json.JSONObject json)
|
Method Summary | |
---|---|
(package private) static ResponseList<Relationship> |
createRelationshipList(twitter4j.internal.http.HttpResponse res)
|
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 |
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()
|
Methods inherited from class twitter4j.TwitterResponseImpl |
---|
getRateLimitStatus |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface twitter4j.TwitterResponse |
---|
getRateLimitStatus |
Field Detail |
---|
private 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 long sourceUserId
private final java.lang.String sourceUserScreenName
Constructor Detail |
---|
RelationshipJSONImpl(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterException
RelationshipJSONImpl(twitter4j.internal.org.json.JSONObject json) throws TwitterException
TwitterException
RelationshipJSONImpl(twitter4j.internal.http.HttpResponse res, twitter4j.internal.org.json.JSONObject json) throws TwitterException
TwitterException
Method Detail |
---|
static ResponseList<Relationship> createRelationshipList(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterException
public long getSourceUserId()
getSourceUserId
in interface Relationship
public long getTargetUserId()
getTargetUserId
in interface Relationship
public boolean isSourceBlockingTarget()
isSourceBlockingTarget
in interface Relationship
public java.lang.String getSourceUserScreenName()
getSourceUserScreenName
in interface Relationship
public java.lang.String getTargetUserScreenName()
getTargetUserScreenName
in interface Relationship
public boolean isSourceFollowingTarget()
isSourceFollowingTarget
in interface Relationship
public boolean isTargetFollowingSource()
isTargetFollowingSource
in interface Relationship
public boolean isSourceFollowedByTarget()
isSourceFollowedByTarget
in interface Relationship
public boolean isTargetFollowedBySource()
isTargetFollowedBySource
in interface Relationship
public boolean isSourceNotificationsEnabled()
isSourceNotificationsEnabled
in interface Relationship
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |