twitter4j
Class TwitterResponseImpl
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rateLimitStatus
private transient RateLimitStatus rateLimitStatus
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
accessLevel
private transient int accessLevel
TwitterResponseImpl
public TwitterResponseImpl()
TwitterResponseImpl
public TwitterResponseImpl(twitter4j.internal.http.HttpResponse res)
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?