Record Class UserAttributesResponse.BanStatus.BannedScope
java.lang.Object
java.lang.Record
com.mojang.authlib.yggdrasil.response.UserAttributesResponse.BanStatus.BannedScope
- Enclosing class:
UserAttributesResponse.BanStatus
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBannedScope(UUID banId, Instant expires, String reason, String reasonMessage) Creates an instance of aBannedScoperecord class. -
Method Summary
Modifier and TypeMethodDescriptionbanId()Returns the value of thebanIdrecord component.final booleanIndicates whether some other object is "equal to" this one.expires()Returns the value of theexpiresrecord component.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.Returns the value of thereasonMessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
banId
The field for thebanIdrecord component. -
expires
The field for theexpiresrecord component. -
reason
The field for thereasonrecord component. -
reasonMessage
The field for thereasonMessagerecord component.
-
-
Constructor Details
-
BannedScope
public BannedScope(UUID banId, @Nullable Instant expires, String reason, @Nullable String reasonMessage) Creates an instance of aBannedScoperecord class.- Parameters:
banId- the value for thebanIdrecord componentexpires- the value for theexpiresrecord componentreason- the value for thereasonrecord componentreasonMessage- the value for thereasonMessagerecord 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). -
banId
Returns the value of thebanIdrecord component.- Returns:
- the value of the
banIdrecord component
-
expires
Returns the value of theexpiresrecord component.- Returns:
- the value of the
expiresrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
reasonMessage
Returns the value of thereasonMessagerecord component.- Returns:
- the value of the
reasonMessagerecord component
-