Record Class AuthFeatureAPI.AuthResponse
java.lang.Object
java.lang.Record
pro.gravit.launcher.core.api.features.AuthFeatureAPI.AuthResponse
- Enclosing interface:
AuthFeatureAPI
public static record AuthFeatureAPI.AuthResponse(SelfUser user, AuthFeatureAPI.AuthToken authToken)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAuthResponse(SelfUser user, AuthFeatureAPI.AuthToken authToken) Creates an instance of aAuthResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
AuthResponse
Creates an instance of aAuthResponserecord class.- Parameters:
user- the value for theuserrecord componentauthToken- the value for theauthTokenrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
authToken
Returns the value of theauthTokenrecord component.- Returns:
- the value of the
authTokenrecord component
-