twitter4j
Class AccountTotalsJSONImpl

java.lang.Object
  extended by twitter4j.TwitterResponseImpl
      extended by twitter4j.AccountTotalsJSONImpl
All Implemented Interfaces:
java.io.Serializable, AccountTotals, TwitterResponse

 class AccountTotalsJSONImpl
extends TwitterResponseImpl
implements AccountTotals, java.io.Serializable

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

Field Summary
private  int favorites
           
private  int followers
           
private  int friends
           
private static long serialVersionUID
           
private  int updates
           
 
Constructor Summary
(package private) AccountTotalsJSONImpl(twitter4j.internal.http.HttpResponse res)
           
private AccountTotalsJSONImpl(twitter4j.internal.http.HttpResponse res, twitter4j.internal.org.json.JSONObject json)
           
(package private) AccountTotalsJSONImpl(twitter4j.internal.org.json.JSONObject json)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getFavorites()
          Returns the number of total favorites.
 int getFollowers()
          Returns the number of total followers.
 int getFriends()
          Returns the number of total friends.
 int getUpdates()
          Returns the number of total updates.
 int hashCode()
           
 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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

updates

private final int updates

followers

private final int followers

favorites

private final int favorites

friends

private final int friends
Constructor Detail

AccountTotalsJSONImpl

private AccountTotalsJSONImpl(twitter4j.internal.http.HttpResponse res,
                              twitter4j.internal.org.json.JSONObject json)

AccountTotalsJSONImpl

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

AccountTotalsJSONImpl

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

getUpdates

public int getUpdates()
Description copied from interface: AccountTotals
Returns the number of total updates.

Specified by:
getUpdates in interface AccountTotals
Returns:
the number of total updates

getFollowers

public int getFollowers()
Description copied from interface: AccountTotals
Returns the number of total followers.

Specified by:
getFollowers in interface AccountTotals
Returns:
the number of total followers

getFavorites

public int getFavorites()
Description copied from interface: AccountTotals
Returns the number of total favorites.

Specified by:
getFavorites in interface AccountTotals
Returns:
the number of total favorites

getFriends

public int getFriends()
Description copied from interface: AccountTotals
Returns the number of total friends.

Specified by:
getFriends in interface AccountTotals
Returns:
the number of total friends

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