Package org.openstreetmap.josm.data.osm
Class UserInfo
java.lang.Object
org.openstreetmap.josm.data.osm.UserInfo
Public user information.
- Since:
- 2115
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Instantthe date this user was createdprivate Stringthe profile descriptionprivate Stringthe display nameprivate LatLonthe home locationprivate intthe zoom level for the home locationprivate intthe user idthe list of preferred languagesprivate intthe number of unread messages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the date at which the account has been created.Returns the public account description.Returns the display name.getHome()Returns the user home coordinates, if set.intReturns the user home zoom level.intgetId()Returns the user identifier.Returns the list of preferred languages.final intReplies the number of unread messagesvoidsetAccountCreated(Instant accountCreated) Sets the date at which the account has been created.voidsetDescription(String description) Sets the public account description.voidsetDisplayName(String displayName) Sets the display name.voidSets the user home coordinates.voidsetHomeZoom(int homeZoom) Sets the user home zoom level.voidsetId(int id) Sets the user identifier.voidsetLanguages(List<String> languages) Sets the list of preferred languages.final voidsetUnreadMessages(int unreadMessages) Sets the number of unread messages
-
Field Details
-
id
the user id -
displayName
the display name -
accountCreated
the date this user was created -
home
the home location -
homeZoom
the zoom level for the home location -
description
the profile description -
languages
the list of preferred languages -
unreadMessages
the number of unread messages
-
-
Constructor Details
-
UserInfo
public UserInfo()Constructs a newUserInfo.
-
-
Method Details
-
getId
Returns the user identifier.- Returns:
- the user identifier
-
setId
Sets the user identifier.- Parameters:
id- the user identifier
-
getDisplayName
Returns the display name.- Returns:
- the display name
-
setDisplayName
Sets the display name.- Parameters:
displayName- display name
-
getAccountCreated
Returns the date at which the account has been created.- Returns:
- the user account creation date
-
setAccountCreated
Sets the date at which the account has been created.- Parameters:
accountCreated- user account creation date
-
getHome
Returns the user home coordinates, if set.- Returns:
- the user home lat/lon or null
-
setHome
Sets the user home coordinates.- Parameters:
home- user home lat/lon or null
-
getDescription
Returns the public account description.- Returns:
- the public account description
-
setDescription
Sets the public account description.- Parameters:
description- public account description
-
getLanguages
Returns the list of preferred languages.- Returns:
- the list of preferred languages
-
setLanguages
Sets the list of preferred languages.- Parameters:
languages- list of preferred languages
-
getHomeZoom
Returns the user home zoom level.- Returns:
- the user home zoom level
-
setHomeZoom
Sets the user home zoom level.- Parameters:
homeZoom- user home zoom level
-
getUnreadMessages
Replies the number of unread messages- Returns:
- the number of unread messages
- Since:
- 6349
-
setUnreadMessages
Sets the number of unread messages- Parameters:
unreadMessages- the number of unread messages- Since:
- 6349
-