class AccountSettingsJSONImpl extends TwitterResponseImpl implements AccountSettings, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private boolean |
ALWAYS_USE_HTTPS |
private boolean |
DISCOVERABLE_BY_EMAIL |
private boolean |
GEO_ENABLED |
private java.lang.String |
LANGUAGE |
private java.lang.String |
SCREEN_NAME |
private static long |
serialVersionUID |
private java.lang.String |
SLEEP_END_TIME |
private java.lang.String |
SLEEP_START_TIME |
private boolean |
SLEEP_TIME_ENABLED |
private TimeZone |
TIMEZONE |
private Location[] |
TREND_LOCATION |
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES
Modifier | Constructor and Description |
---|---|
(package private) |
AccountSettingsJSONImpl(HttpResponse res,
Configuration conf) |
private |
AccountSettingsJSONImpl(HttpResponse res,
JSONObject json) |
(package private) |
AccountSettingsJSONImpl(JSONObject json) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLanguage()
Returns the language used to render Twitter's UII for this user.
|
java.lang.String |
getScreenName()
Returns the user's screen name
|
java.lang.String |
getSleepEndTime()
Returns sleep end time.
|
java.lang.String |
getSleepStartTime()
Returns sleep start time.
|
TimeZone |
getTimeZone()
Returns the timezone configured for this user.
|
Location[] |
getTrendLocations()
Return the user's trend locations
|
boolean |
isAlwaysUseHttps()
Returns true if the wants to always access twitter using HTTPS.
|
boolean |
isDiscoverableByEmail()
Returns true if the user is discoverable by email.
|
boolean |
isGeoEnabled()
Return true if the user is enabling geo location
|
boolean |
isSleepTimeEnabled()
Returns true if the user enabled sleep time.
|
getAccessLevel, getRateLimitStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAccessLevel, getRateLimitStatus
private static final long serialVersionUID
private final boolean SLEEP_TIME_ENABLED
private final java.lang.String SLEEP_START_TIME
private final java.lang.String SLEEP_END_TIME
private final Location[] TREND_LOCATION
private final boolean GEO_ENABLED
private final java.lang.String LANGUAGE
private final TimeZone TIMEZONE
private final boolean ALWAYS_USE_HTTPS
private final boolean DISCOVERABLE_BY_EMAIL
private final java.lang.String SCREEN_NAME
private AccountSettingsJSONImpl(HttpResponse res, JSONObject json) throws TwitterException
TwitterException
AccountSettingsJSONImpl(HttpResponse res, Configuration conf) throws TwitterException
TwitterException
AccountSettingsJSONImpl(JSONObject json) throws TwitterException
TwitterException
public boolean isSleepTimeEnabled()
AccountSettings
isSleepTimeEnabled
in interface AccountSettings
public java.lang.String getSleepStartTime()
AccountSettings
getSleepStartTime
in interface AccountSettings
public java.lang.String getSleepEndTime()
AccountSettings
getSleepEndTime
in interface AccountSettings
public Location[] getTrendLocations()
AccountSettings
getTrendLocations
in interface AccountSettings
public boolean isGeoEnabled()
AccountSettings
isGeoEnabled
in interface AccountSettings
public boolean isDiscoverableByEmail()
AccountSettings
isDiscoverableByEmail
in interface AccountSettings
public boolean isAlwaysUseHttps()
AccountSettings
isAlwaysUseHttps
in interface AccountSettings
public java.lang.String getScreenName()
AccountSettings
getScreenName
in interface AccountSettings
public java.lang.String getLanguage()
AccountSettings
getLanguage
in interface AccountSettings
public TimeZone getTimeZone()
AccountSettings
getTimeZone
in interface AccountSettings