Package me.kzlyth.api.models
Klasse UserInfo
java.lang.Object
me.kzlyth.api.models.UserInfo
Represents user information retrieved from the database.
This model contains public user data that can be accessed through the API.
Example:
UserInfo user = api.getUser(uuid).join();
if (user != null) {
String playerName = user.getPlayerName();
String latestIp = user.getLatestIp();
List<String> ipArray = user.getIpArray();
}
- Seit:
- 1.2.3
- Autor:
- Zenith-Studios
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung@Nullable IntegerGets the active case ID associated with this player.longGets the timestamp when the player was first seen.Gets the list of all IP addresses associated with this player.longGets the timestamp when the player was last seen.@NotNull StringGets the latest IP address used by the player.@NotNull StringGets the current player name.@NotNull UUIDgetUuid()Gets the UUID of the player.toString()
-
Konstruktordetails
-
UserInfo
public UserInfo(@NotNull @NotNull UUID uuid, @NotNull @NotNull String playerName, @NotNull @NotNull String latestIp, @NotNull @NotNull List<String> ipArray, long firstSeen, long lastSeen, @Nullable @Nullable Integer activeCase) Constructs a new UserInfo object.- Parameter:
uuid- The UUID of the playerplayerName- The current player namelatestIp- The latest IP addressipArray- List of all IP addressesfirstSeen- Timestamp when first seenlastSeen- Timestamp when last seenactiveCase- The active case ID, or null if none
-
-
Methodendetails
-
getUuid
Gets the UUID of the player.- Gibt zurück:
- The player's UUID
-
getPlayerName
Gets the current player name.- Gibt zurück:
- The player's name
-
getLatestIp
Gets the latest IP address used by the player.- Gibt zurück:
- The latest IP address
-
getIpArray
Gets the list of all IP addresses associated with this player.- Gibt zurück:
- A list of IP addresses
-
getFirstSeen
public long getFirstSeen()Gets the timestamp when the player was first seen.- Gibt zurück:
- Timestamp in milliseconds since epoch
-
getLastSeen
public long getLastSeen()Gets the timestamp when the player was last seen.- Gibt zurück:
- Timestamp in milliseconds since epoch
-
getActiveCase
Gets the active case ID associated with this player.- Gibt zurück:
- The active case ID, or
nullif none
-
toString
-