Class UserInfo


  • public class UserInfo
    extends Object
    Public user information.
    Since:
    2115
    • Constructor Detail

      • UserInfo

        public UserInfo()
        Constructs a new UserInfo.
    • 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 String getDisplayName()
        Returns the display name.
        Returns:
        the display name
      • setDisplayName

        public void setDisplayName​(String displayName)
        Sets the display name.
        Parameters:
        displayName - display name
      • getAccountCreated

        public Instant getAccountCreated()
        Returns the date at which the account has been created.
        Returns:
        the user account creation date
      • setAccountCreated

        public void setAccountCreated​(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 String getDescription()
        Returns the public account description.
        Returns:
        the public account description
      • setDescription

        public void setDescription​(String description)
        Sets the public account description.
        Parameters:
        description - public account description
      • getLanguages

        public List<StringgetLanguages()
        Returns the list of preferred languages.
        Returns:
        the list of preferred languages
      • setLanguages

        public void setLanguages​(List<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