Record Class JoinServerRequest
java.lang.Object
java.lang.Record
com.zenith.feature.api.sessionserver.model.JoinServerRequest
-
Constructor Summary
ConstructorsConstructorDescriptionJoinServerRequest(UUID selectedProfile, String accessToken, String serverId) Creates an instance of aJoinServerRequestrecord class. -
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
-
JoinServerRequest
Creates an instance of aJoinServerRequestrecord class.- Parameters:
selectedProfile- the value for theselectedProfilerecord componentaccessToken- the value for theaccessTokenrecord 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). -
selectedProfile
Returns the value of theselectedProfilerecord component.- Returns:
- the value of the
selectedProfilerecord component
-
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
serverId
Returns the value of theserverIdrecord component.- Returns:
- the value of the
serverIdrecord component
-