Package ch.ethz.geco.g4j.impl
Class WebUser
- java.lang.Object
-
- ch.ethz.geco.g4j.impl.WebUser
-
-
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.
-
-
-
Method Detail
-
getID
public java.lang.Long getID()
Description copied from interface:User
Gets the user ID of the user on the website.
-
getUserName
public java.lang.String getUserName()
Description copied from interface:User
Gets the username of the user on the website.- Specified by:
getUserName
in interfaceUser
- 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 interfaceUser
- 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.
-
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 interfaceUser
- 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 interfaceUser
- 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 interfaceUser
- Returns:
- The Discord ID of the user.
-
-