Class User


  • public class User
    extends IdentifiableResource
    Represents a user on SRC.

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

      • getRuns

        public RunsRequest getRuns()
        Gets a new RunsRequest builder object to request all of this user's runs.
        Returns:
        a RunsRequest builder
      • getGamesModerated

        public GamesRequest getGamesModerated()
        Gets a new GamesRequest builder object to request all the games this user moderates.
        Returns:
        a GamesRequest builder
      • getPersonalBests

        public UserPBsRequest getPersonalBests()
        Gets a new UserPBsRequest builder object to request this user's personal best runs.
        Returns:
        a UserPBsRequest builder
      • getNames

        public Names getNames()
        Gets the Names for this user.
        Returns:
        a Names with this user's names
      • hasSupporterAnimation

        public boolean hasSupporterAnimation()
        Gets whether this user has the name color supporter animation enabled.
        Returns:
        whether this user has the supporter animation
      • getPronouns

        public Optional<String> getPronouns()
        Gets the user specified pronouns for this user.
        Returns:
        an Optional containing this user's pronouns
      • getWeblink

        public String getWeblink()
        Gets the link to this user on SRC.
        Returns:
        a link to this user's profile
      • getNameStyle

        public NameStyle getNameStyle()
        Gets the NameStyle for this user.
        Returns:
        a NameStyle of this user
      • getRole

        public UserRole getRole()
        Gets the role of this user across the entire site.
        Returns:
        the UserRole of this user on SRC itself
      • getSignupTime

        public Optional<Instant> getSignupTime()
        Gets the time that this user signed up on SRC.
        Returns:
        an Instant
      • getTwitchLink

        public Optional<Link> getTwitchLink()
        Gets the link to this user's Twitch account.
        Returns:
        an Optional with a Link to a Twitch account
      • getHitboxLink

        public Optional<Link> getHitboxLink()
        Gets the link to this user's Hitbox account.
        Hitbox.tv is shut down, so the returned link will not be a valid page.
        Returns:
        an Optional with a Link to a Hitbox account
      • getYoutubeLink

        public Optional<Link> getYoutubeLink()
        Gets the link to this user's YouTube channel.
        Returns:
        an Optional with a Link to a YouTube channel
      • getTwitterLink

        public Optional<Link> getTwitterLink()
        Gets the link to this user's Twitter account.
        Returns:
        an Optional with a Link to a Twitter account
      • getSpeedrunsLiveLink

        public Optional<Link> getSpeedrunsLiveLink()
        Gets the link to this user's SpeedRunsLive account.
        Returns:
        an Optional with a Link to a SpeedRunsLive account
      • getAssets

        public UserAssets getAssets()
        Gets the UserAssets for this user.
        Returns:
        a UserAssets object