twitter4j
Class AccountSettingsJSONImpl

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

 class AccountSettingsJSONImpl
extends TwitterResponseImpl
implements AccountSettings, java.io.Serializable

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

Field Summary
private  boolean GEO_ENABLED
           
private static long serialVersionUID
           
private  java.lang.String SLEEP_END_TIME
           
private  java.lang.String SLEEP_START_TIME
           
private  boolean SLEEP_TIME_ENABLED
           
private  Location[] TREND_LOCATION
           
 
Constructor Summary
(package private) AccountSettingsJSONImpl(twitter4j.internal.http.HttpResponse res, Configuration conf)
           
private AccountSettingsJSONImpl(twitter4j.internal.http.HttpResponse res, twitter4j.internal.org.json.JSONObject json)
           
(package private) AccountSettingsJSONImpl(twitter4j.internal.org.json.JSONObject json)
           
 
Method Summary
 java.lang.String getSleepEndTime()
          Returns sleep end time.
 java.lang.String getSleepStartTime()
          Returns sleep start time.
 Location[] getTrendLocations()
          Return the user's trend locations
 boolean isGeoEnabled()
          Return true if the user is enabling geo location
 boolean isSleepTimeEnabled()
          Returns true if the user enabled sleep time.
 
Methods inherited from class twitter4j.TwitterResponseImpl
getRateLimitStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface twitter4j.TwitterResponse
getRateLimitStatus
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

SLEEP_TIME_ENABLED

private final boolean SLEEP_TIME_ENABLED

SLEEP_START_TIME

private final java.lang.String SLEEP_START_TIME

SLEEP_END_TIME

private final java.lang.String SLEEP_END_TIME

TREND_LOCATION

private final Location[] TREND_LOCATION

GEO_ENABLED

private final boolean GEO_ENABLED
Constructor Detail

AccountSettingsJSONImpl

private AccountSettingsJSONImpl(twitter4j.internal.http.HttpResponse res,
                                twitter4j.internal.org.json.JSONObject json)
                         throws TwitterException
Throws:
TwitterException

AccountSettingsJSONImpl

AccountSettingsJSONImpl(twitter4j.internal.http.HttpResponse res,
                        Configuration conf)
                  throws TwitterException
Throws:
TwitterException

AccountSettingsJSONImpl

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

isSleepTimeEnabled

public boolean isSleepTimeEnabled()
Description copied from interface: AccountSettings
Returns true if the user enabled sleep time.

Specified by:
isSleepTimeEnabled in interface AccountSettings
Returns:
true if the user enabled sleep time

getSleepStartTime

public java.lang.String getSleepStartTime()
Description copied from interface: AccountSettings
Returns sleep start time.

Specified by:
getSleepStartTime in interface AccountSettings
Returns:
sleep start time

getSleepEndTime

public java.lang.String getSleepEndTime()
Description copied from interface: AccountSettings
Returns sleep end time.

Specified by:
getSleepEndTime in interface AccountSettings
Returns:
sleep end time

getTrendLocations

public Location[] getTrendLocations()
Description copied from interface: AccountSettings
Return the user's trend locations

Specified by:
getTrendLocations in interface AccountSettings
Returns:
the user's trend locations

isGeoEnabled

public boolean isGeoEnabled()
Description copied from interface: AccountSettings
Return true if the user is enabling geo location

Specified by:
isGeoEnabled in interface AccountSettings
Returns:
true if the user is enabling geo location