twitter4j
Class TwitterResponseImpl

java.lang.Object
  extended by twitter4j.TwitterResponseImpl
All Implemented Interfaces:
java.io.Serializable, TwitterResponse
Direct Known Subclasses:
AccountSettingsJSONImpl, AccountTotalsJSONImpl, DirectMessageJSONImpl, IDsJSONImpl, PlaceJSONImpl, ProfileImageImpl, RelatedResultsJSONImpl, RelationshipJSONImpl, SavedSearchJSONImpl, StatusJSONImpl, TrendJSONImpl, TwitterAPIConfigurationJSONImpl, UserJSONImpl, UserListJSONImpl

abstract class TwitterResponseImpl
extends java.lang.Object
implements TwitterResponse, java.io.Serializable

Super interface of Twitter Response data interfaces which indicates that rate limit status is available.

Author:
Yusuke Yamamoto - yusuke at mac.com
See Also:
DirectMessage, Status, User

Field Summary
private  int accessLevel
           
private  RateLimitStatus rateLimitStatus
           
private static long serialVersionUID
           
 
Fields inherited from interface twitter4j.TwitterResponse
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES
 
Constructor Summary
TwitterResponseImpl()
           
TwitterResponseImpl(twitter4j.internal.http.HttpResponse res)
           
 
Method Summary
 int getAccessLevel()
          
 RateLimitStatus getRateLimitStatus()
          Returns the current rate limit status if available.
(package private) static int toAccessLevel(twitter4j.internal.http.HttpResponse res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rateLimitStatus

private transient RateLimitStatus rateLimitStatus

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

accessLevel

private transient int accessLevel
Constructor Detail

TwitterResponseImpl

public TwitterResponseImpl()

TwitterResponseImpl

public TwitterResponseImpl(twitter4j.internal.http.HttpResponse res)
Method Detail

toAccessLevel

static int toAccessLevel(twitter4j.internal.http.HttpResponse res)

getRateLimitStatus

public RateLimitStatus getRateLimitStatus()
Returns the current rate limit status if available.

Specified by:
getRateLimitStatus in interface TwitterResponse
Returns:
current rate limit status

getAccessLevel

public int getAccessLevel()

Specified by:
getAccessLevel in interface TwitterResponse
Returns:
application permission model
See Also:
Application Permission Model FAQ - How do we know what the access level of a user token is?