Record Class RequestMicrosoftAPIImpl.MojangJoinServerRequest
java.lang.Object
java.lang.Record
pro.gravit.launcher.base.request.RequestMicrosoftAPIImpl.MojangJoinServerRequest
- Enclosing class:
RequestMicrosoftAPIImpl
-
Constructor Summary
ConstructorsConstructorDescriptionMojangJoinServerRequest(String accessToken, String selectedProfile, String serverId) Creates an instance of aMojangJoinServerRequestrecord class.MojangJoinServerRequest(String accessToken, UUID uuid, String serverId) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theselectedProfilerecord component.serverId()Returns the value of theserverIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MojangJoinServerRequest
-
MojangJoinServerRequest
Creates an instance of aMojangJoinServerRequestrecord class.- Parameters:
accessToken- the value for theaccessTokenrecord componentselectedProfile- the value for theselectedProfilerecord componentserverId- the value for theserverIdrecord 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). -
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
selectedProfile
Returns the value of theselectedProfilerecord component.- Returns:
- the value of the
selectedProfilerecord component
-
serverId
Returns the value of theserverIdrecord component.- Returns:
- the value of the
serverIdrecord component
-