Record Class GSAuthApi.LookupResult
java.lang.Object
java.lang.Record
com.gamersafer.minecraft.auth.common.api.GSAuthApi.LookupResult
- Enclosing class:
- GSAuthApi
-
Constructor Summary
ConstructorsConstructorDescriptionLookupResult(String guildMemberId, UUID playerUuid, String playerName, String playerHostAddress, boolean success) Creates an instance of aLookupResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theguildMemberIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theplayerHostAddressrecord component.Returns the value of theplayerNamerecord component.Returns the value of theplayerUuidrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LookupResult
public LookupResult(String guildMemberId, UUID playerUuid, String playerName, String playerHostAddress, boolean success) Creates an instance of aLookupResultrecord class.- Parameters:
guildMemberId- the value for theguildMemberIdrecord componentplayerUuid- the value for theplayerUuidrecord componentplayerName- the value for theplayerNamerecord componentplayerHostAddress- the value for theplayerHostAddressrecord componentsuccess- the value for thesuccessrecord component
-
-
Method Details
-
getUserIdentity
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
guildMemberId
Returns the value of theguildMemberIdrecord component.- Returns:
- the value of the
guildMemberIdrecord component
-
playerUuid
Returns the value of theplayerUuidrecord component.- Returns:
- the value of the
playerUuidrecord component
-
playerName
Returns the value of theplayerNamerecord component.- Returns:
- the value of the
playerNamerecord component
-
playerHostAddress
Returns the value of theplayerHostAddressrecord component.- Returns:
- the value of the
playerHostAddressrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-