public class UserInfo extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
accountCreated
the date this user was created
|
private java.lang.String |
description
the profile description
|
private java.lang.String |
displayName
the display name
|
private LatLon |
home
the home location
|
private int |
homeZoom
the zoom level for the home location
|
private int |
id
the user id
|
private java.util.List<java.lang.String> |
languages
the list of preferred languages
|
private int |
unreadMessages
the number of unread messages
|
Constructor and Description |
---|
UserInfo()
Constructs a new
UserInfo . |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
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 messages
|
void |
setAccountCreated(java.util.Date 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
|
private int id
private java.lang.String displayName
private java.util.Date accountCreated
private int homeZoom
private java.lang.String description
private java.util.List<java.lang.String> languages
private int unreadMessages
public UserInfo()
UserInfo
.public int getId()
public void setId(int id)
id
- the user identifierpublic java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName
- display namepublic java.util.Date getAccountCreated()
public void setAccountCreated(java.util.Date accountCreated)
accountCreated
- user account creation datepublic LatLon getHome()
public void setHome(LatLon home)
home
- user home lat/lon or nullpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- public account descriptionpublic java.util.List<java.lang.String> getLanguages()
public void setLanguages(java.util.List<java.lang.String> languages)
languages
- list of preferred languagespublic int getHomeZoom()
public void setHomeZoom(int homeZoom)
homeZoom
- user home zoom levelpublic final int getUnreadMessages()
public final void setUnreadMessages(int unreadMessages)
unreadMessages
- the number of unread messages