Class 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 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 Summary

      Constructors 
      Constructor Description
      UserInfo()
      Constructs a new UserInfo.
    • 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 messages
      void 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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 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