Package org.openstreetmap.josm.data.osm
Class UserInfo
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.UserInfo
-
public class UserInfo extends java.lang.Object
Public user information.- Since:
- 2115
-
-
Field Summary
Fields Modifier and Type Field Description private java.time.Instant
accountCreated
the date this user was createdprivate java.lang.String
description
the profile descriptionprivate java.lang.String
displayName
the display nameprivate LatLon
home
the home locationprivate int
homeZoom
the zoom level for the home locationprivate int
id
the user idprivate java.util.List<java.lang.String>
languages
the list of preferred languagesprivate int
unreadMessages
the number of unread messages
-
Constructor Summary
Constructors Constructor Description UserInfo()
Constructs a newUserInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Instant
getAccountCreated()
Returns the date at which the account has been created.java.lang.String
getDescription()
Returns the public account description.java.lang.String
getDisplayName()
Returns the display name.LatLon
getHome()
Returns the user home coordinates, if set.int
getHomeZoom()
Returns the user home zoom level.int
getId()
Returns the user identifier.java.util.List<java.lang.String>
getLanguages()
Returns the list of preferred languages.int
getUnreadMessages()
Replies the number of unread messagesvoid
setAccountCreated(java.time.Instant accountCreated)
Sets the date at which the account has been created.void
setDescription(java.lang.String description)
Sets the public account description.void
setDisplayName(java.lang.String displayName)
Sets the display name.void
setHome(LatLon home)
Sets the user home coordinates.void
setHomeZoom(int homeZoom)
Sets the user home zoom level.void
setId(int id)
Sets the user identifier.void
setLanguages(java.util.List<java.lang.String> languages)
Sets the list of preferred languages.void
setUnreadMessages(int unreadMessages)
Sets the number of unread messages
-
-
-
Field Detail
-
id
private int id
the user id
-
displayName
private java.lang.String displayName
the display name
-
accountCreated
private java.time.Instant accountCreated
the date this user was created
-
homeZoom
private int homeZoom
the zoom level for the home location
-
description
private java.lang.String description
the profile description
-
languages
private java.util.List<java.lang.String> languages
the list of preferred languages
-
unreadMessages
private int unreadMessages
the number of unread messages
-
-
Constructor Detail
-
UserInfo
public UserInfo()
Constructs a newUserInfo
.
-
-
Method Detail
-
getId
public int getId()
Returns the user identifier.- Returns:
- the user identifier
-
setId
public void setId(int id)
Sets the user identifier.- Parameters:
id
- the user identifier
-
getDisplayName
public java.lang.String getDisplayName()
Returns the display name.- Returns:
- the display name
-
setDisplayName
public void setDisplayName(java.lang.String displayName)
Sets the display name.- Parameters:
displayName
- display name
-
getAccountCreated
public java.time.Instant getAccountCreated()
Returns the date at which the account has been created.- Returns:
- the user account creation date
-
setAccountCreated
public void setAccountCreated(java.time.Instant accountCreated)
Sets the date at which the account has been created.- Parameters:
accountCreated
- user account creation date
-
getHome
public LatLon getHome()
Returns the user home coordinates, if set.- Returns:
- the user home lat/lon or null
-
setHome
public void setHome(LatLon home)
Sets the user home coordinates.- Parameters:
home
- user home lat/lon or null
-
getDescription
public java.lang.String getDescription()
Returns the public account description.- Returns:
- the public account description
-
setDescription
public void setDescription(java.lang.String description)
Sets the public account description.- Parameters:
description
- public account description
-
getLanguages
public java.util.List<java.lang.String> getLanguages()
Returns the list of preferred languages.- Returns:
- the list of preferred languages
-
setLanguages
public void setLanguages(java.util.List<java.lang.String> languages)
Sets the list of preferred languages.- Parameters:
languages
- list of preferred languages
-
getHomeZoom
public int getHomeZoom()
Returns the user home zoom level.- Returns:
- the user home zoom level
-
setHomeZoom
public void setHomeZoom(int homeZoom)
Sets the user home zoom level.- Parameters:
homeZoom
- user home zoom level
-
getUnreadMessages
public final int getUnreadMessages()
Replies the number of unread messages- Returns:
- the number of unread messages
- Since:
- 6349
-
setUnreadMessages
public final void setUnreadMessages(int unreadMessages)
Sets the number of unread messages- Parameters:
unreadMessages
- the number of unread messages- Since:
- 6349
-
-