twitter4j
Class FriendshipJSONImpl

java.lang.Object
  extended by twitter4j.FriendshipJSONImpl
All Implemented Interfaces:
java.io.Serializable, Friendship

 class FriendshipJSONImpl
extends java.lang.Object
implements Friendship

Since:
Twitter4J 2.1.9
Author:
Yusuke Yamamoto - yusuke at mac.com

Field Summary
private  boolean followedBy
           
private  boolean following
           
private  int id
           
private  java.lang.String name
           
private  java.lang.String screenName
           
private static long serialVersionUID
           
 
Constructor Summary
FriendshipJSONImpl(twitter4j.internal.http.HttpResponse res)
           
FriendshipJSONImpl(twitter4j.internal.org.json.JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Friendship> createFriendshipList(twitter4j.internal.http.HttpResponse res)
           
 boolean equals(java.lang.Object o)
           
 int getId()
           
 java.lang.String getName()
           
 java.lang.String getScreenName()
           
 int hashCode()
           
 boolean isFollowedBy()
           
 boolean isFollowing()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

id

private final int id

name

private final java.lang.String name

screenName

private final java.lang.String screenName

following

private boolean following

followedBy

private boolean followedBy
Constructor Detail

FriendshipJSONImpl

FriendshipJSONImpl(twitter4j.internal.http.HttpResponse res)
             throws TwitterException
Throws:
TwitterException

FriendshipJSONImpl

FriendshipJSONImpl(twitter4j.internal.org.json.JSONObject json)
             throws TwitterException
Throws:
TwitterException
Method Detail

createFriendshipList

static ResponseList<Friendship> createFriendshipList(twitter4j.internal.http.HttpResponse res)
                                              throws TwitterException
Throws:
TwitterException

getId

public int getId()
Specified by:
getId in interface Friendship

getName

public java.lang.String getName()
Specified by:
getName in interface Friendship

getScreenName

public java.lang.String getScreenName()
Specified by:
getScreenName in interface Friendship

isFollowing

public boolean isFollowing()
Specified by:
isFollowing in interface Friendship

isFollowedBy

public boolean isFollowedBy()
Specified by:
isFollowedBy in interface Friendship

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object