Class UserPropertiesV2
- java.lang.Object
-
- org.onebusaway.users.model.properties.UserPropertiesV2
-
- All Implemented Interfaces:
Serializable,UserProperties
public class UserPropertiesV2 extends Object implements Serializable, UserProperties
DO NO RENAME OR MOVE THIS CLASS. Serialized instances of this class will be around forever. See notes inUserPropertiesfor more info.- Author:
- bdferris
- See Also:
UserProperties, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserPropertiesV2()UserPropertiesV2(UserPropertiesV2 o)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()List<Bookmark>getBookmarks()doublegetDefaultLocationLat()doublegetDefaultLocationLon()StringgetDefaultLocationName()LonggetMinApiRequestInterval()API request throttling informationMap<String,Long>getReadSituationIdsWithReadTime()Information about when a service alert situation id was read by the user.booleanhasDefaultLocationLat()booleanhasDefaultLocationLon()booleanisRememberPreferencesEnabled()voidsetBookmarks(List<Bookmark> bookmarks)voidsetDefaultLocationLat(double defaultLocationLat)voidsetDefaultLocationLon(double defaultLocationLon)voidsetDefaultLocationName(String defaultLocationName)voidsetMinApiRequestInterval(Long minApiRequestInterval)API request throttling informationvoidsetReadSituationIdsWithReadTime(Map<String,Long> readSituationIdsWithReadTime)Information about when a service alert situation id was read by the user.voidsetRememberPreferencesEnabled(boolean rememberPreferencesEnabled)
-
-
-
Constructor Detail
-
UserPropertiesV2
public UserPropertiesV2()
-
UserPropertiesV2
public UserPropertiesV2(UserPropertiesV2 o)
-
-
Method Detail
-
isRememberPreferencesEnabled
public boolean isRememberPreferencesEnabled()
-
setRememberPreferencesEnabled
public void setRememberPreferencesEnabled(boolean rememberPreferencesEnabled)
-
getDefaultLocationName
public String getDefaultLocationName()
-
setDefaultLocationName
public void setDefaultLocationName(String defaultLocationName)
-
hasDefaultLocationLat
public boolean hasDefaultLocationLat()
-
getDefaultLocationLat
public double getDefaultLocationLat()
-
setDefaultLocationLat
public void setDefaultLocationLat(double defaultLocationLat)
-
hasDefaultLocationLon
public boolean hasDefaultLocationLon()
-
getDefaultLocationLon
public double getDefaultLocationLon()
-
setDefaultLocationLon
public void setDefaultLocationLon(double defaultLocationLon)
-
getMinApiRequestInterval
public Long getMinApiRequestInterval()
API request throttling information- Returns:
- the minimum interval time (in ms) between successive API requests for this account.
-
setMinApiRequestInterval
public void setMinApiRequestInterval(Long minApiRequestInterval)
API request throttling information- Parameters:
minApiRequestInterval- minimum time interval (in ms)
-
getReadSituationIdsWithReadTime
public Map<String,Long> getReadSituationIdsWithReadTime()
Information about when a service alert situation id was read by the user.- Returns:
- a map from situation id to the time it was read (unix-time)
-
setReadSituationIdsWithReadTime
public void setReadSituationIdsWithReadTime(Map<String,Long> readSituationIdsWithReadTime)
Information about when a service alert situation id was read by the user.- Parameters:
a- map from situation id to the time it was read (unix-time)
-
clear
public void clear()
-
-