Class WebUser

  • All Implemented Interfaces:
    User

    public class WebUser
    extends java.lang.Object
    implements User
    • Constructor Summary

      Constructors 
      Constructor Description
      WebUser​(java.lang.Long id, java.lang.String username, java.lang.String usergroup, java.lang.Long lolID, java.lang.Long steamID, java.lang.String bnetID, java.lang.Long discordID)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> getBattleNetID()
      Gets the Battle.net ID of the user on the website if available.
      java.util.Optional<java.lang.Long> getDiscordID()
      Gets the Discord ID of the user on the website if available.
      java.lang.Long getID()
      Gets the user ID of the user on the website.
      java.util.Optional<java.lang.Long> getLoLID()
      Gets the League of Legends ID of the user on the website if available.
      java.util.Optional<java.lang.Long> getSteamID()
      Gets the Steam ID of the user on the website if available.
      java.lang.String getUserGroup()
      Gets the group of the user on the website.
      java.lang.String getUserName()
      Gets the username of the user on the website.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebUser

        public WebUser​(java.lang.Long id,
                       java.lang.String username,
                       java.lang.String usergroup,
                       java.lang.Long lolID,
                       java.lang.Long steamID,
                       java.lang.String bnetID,
                       java.lang.Long discordID)
    • Method Detail

      • getID

        public java.lang.Long getID()
        Description copied from interface: User
        Gets the user ID of the user on the website.
        Specified by:
        getID in interface User
        Returns:
        The ID of the user.
      • getUserName

        public java.lang.String getUserName()
        Description copied from interface: User
        Gets the username of the user on the website.
        Specified by:
        getUserName in interface User
        Returns:
        The name of the user.
      • getUserGroup

        public java.lang.String getUserGroup()
        Description copied from interface: User
        Gets the group of the user on the website.
        Specified by:
        getUserGroup in interface User
        Returns:
        The group of the user.
      • getLoLID

        public java.util.Optional<java.lang.Long> getLoLID()
        Description copied from interface: User
        Gets the League of Legends ID of the user on the website if available.
        Specified by:
        getLoLID in interface User
        Returns:
        The LoL ID of the user.
      • getSteamID

        public java.util.Optional<java.lang.Long> getSteamID()
        Description copied from interface: User
        Gets the Steam ID of the user on the website if available.
        Specified by:
        getSteamID in interface User
        Returns:
        The Steam ID of the user.
      • getBattleNetID

        public java.util.Optional<java.lang.String> getBattleNetID()
        Description copied from interface: User
        Gets the Battle.net ID of the user on the website if available.
        Specified by:
        getBattleNetID in interface User
        Returns:
        The Battle.net ID of the user.
      • getDiscordID

        public java.util.Optional<java.lang.Long> getDiscordID()
        Description copied from interface: User
        Gets the Discord ID of the user on the website if available.
        Specified by:
        getDiscordID in interface User
        Returns:
        The Discord ID of the user.