Class UserAssets


  • public class UserAssets
    extends Object
    A collection of Links to custom icon and avatar images for a User.

    This class is immutable and thread-safe.
    • Method Detail

      • getIcon

        public Optional<Link> getIcon()
        Gets a Link to the user's custom icon.

        The icon is shown next to the username on the user's profile, on comments, and on forum posts.
        Returns:
        an Optional with a Link to an image, empty if a custom image is not set
      • getSupporterIcon

        public Optional<Link> getSupporterIcon()
        Gets a Link to the user's custom supporter icon.

        The supporter icon is a second icon next to the username.
        Returns:
        an Optional with a Link to an image, empty if a custom image is not set
      • getAvatar

        public Optional<Link> getAvatar()
        Gets a Link to the user's custom avatar.
        Returns:
        an Optional with a Link to an image, empty if a custom image is not set