Klasse UserInfo

java.lang.Object
me.kzlyth.api.models.UserInfo

public class UserInfo extends Object
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
  • 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 player
      playerName - The current player name
      latestIp - The latest IP address
      ipArray - List of all IP addresses
      firstSeen - Timestamp when first seen
      lastSeen - Timestamp when last seen
      activeCase - The active case ID, or null if none
  • Methodendetails

    • getUuid

      @NotNull public @NotNull UUID getUuid()
      Gets the UUID of the player.
      Gibt zurück:
      The player's UUID
    • getPlayerName

      @NotNull public @NotNull String getPlayerName()
      Gets the current player name.
      Gibt zurück:
      The player's name
    • getLatestIp

      @NotNull public @NotNull String getLatestIp()
      Gets the latest IP address used by the player.
      Gibt zurück:
      The latest IP address
    • getIpArray

      @NotNull public @NotNull List<String> 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

      @Nullable public @Nullable Integer getActiveCase()
      Gets the active case ID associated with this player.
      Gibt zurück:
      The active case ID, or null if none
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object