|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttwitter4j.TwitterResponseImpl
twitter4j.RelationshipJSONImpl
final 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 int |
sourceUserId
|
private java.lang.String |
sourceUserScreenName
|
private int |
targetUserId
|
private java.lang.String |
targetUserScreenName
|
| Constructor Summary | |
|---|---|
RelationshipJSONImpl(HttpResponse res)
|
|
RelationshipJSONImpl(twitter4j.org.json.JSONObject json)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
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 |
int |
hashCode()
|
private void |
init(twitter4j.org.json.JSONObject json)
|
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, setRateLimitStatus |
| 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 int targetUserId
private java.lang.String targetUserScreenName
private boolean sourceBlockingTarget
private boolean sourceNotificationsEnabled
private boolean sourceFollowingTarget
private boolean sourceFollowedByTarget
private int sourceUserId
private java.lang.String sourceUserScreenName
private static final long serialVersionUID
| Constructor Detail |
|---|
RelationshipJSONImpl(HttpResponse res)
throws TwitterException
TwitterException
RelationshipJSONImpl(twitter4j.org.json.JSONObject json)
throws TwitterException
TwitterException| Method Detail |
|---|
private void init(twitter4j.org.json.JSONObject json)
throws TwitterException
TwitterExceptionpublic int getSourceUserId()
getSourceUserId in interface Relationshippublic int 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 isSourceNotificationsEnabled()
isSourceNotificationsEnabled 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||