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, getRateLimitStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccessLevel, getRateLimitStatusprivate 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
TwitterExceptionAccountSettingsJSONImpl(HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionAccountSettingsJSONImpl(JSONObject json) throws TwitterException
TwitterExceptionpublic boolean isSleepTimeEnabled()
AccountSettingsisSleepTimeEnabled in interface AccountSettingspublic java.lang.String getSleepStartTime()
AccountSettingsgetSleepStartTime in interface AccountSettingspublic java.lang.String getSleepEndTime()
AccountSettingsgetSleepEndTime in interface AccountSettingspublic Location[] getTrendLocations()
AccountSettingsgetTrendLocations in interface AccountSettingspublic boolean isGeoEnabled()
AccountSettingsisGeoEnabled in interface AccountSettingspublic boolean isDiscoverableByEmail()
AccountSettingsisDiscoverableByEmail in interface AccountSettingspublic boolean isAlwaysUseHttps()
AccountSettingsisAlwaysUseHttps in interface AccountSettingspublic java.lang.String getScreenName()
AccountSettingsgetScreenName in interface AccountSettingspublic java.lang.String getLanguage()
AccountSettingsgetLanguage in interface AccountSettingspublic TimeZone getTimeZone()
AccountSettingsgetTimeZone in interface AccountSettings