Record Class InviteCodeRequestDto
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.InviteCodeRequestDto
- All Implemented Interfaces:
ReflectionBasedSerialization
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thecoderecord component.private final booleanThe field for theenabledrecord component.The field for theexpirationDaterecord component.private final longThe field for therealmIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionInviteCodeRequestDto(@Nullable String code, long realmId, boolean enabled, @Nullable Long expirationDate) Creates an instance of aInviteCodeRequestDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpirationDaterecord component.final inthashCode()Returns a hash code value for this object.longrealmId()Returns the value of therealmIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
code
The field for thecoderecord component. -
realmId
The field for therealmIdrecord component. -
enabled
The field for theenabledrecord component. -
expirationDate
The field for theexpirationDaterecord component.
-
-
Constructor Details
-
InviteCodeRequestDto
public InviteCodeRequestDto(@Nullable String code, long realmId, boolean enabled, @Nullable Long expirationDate) Creates an instance of aInviteCodeRequestDtorecord class.- Parameters:
code- the value for thecoderecord componentrealmId- the value for therealmIdrecord componentenabled- the value for theenabledrecord componentexpirationDate- the value for theexpirationDaterecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
realmId
Returns the value of therealmIdrecord component.- Returns:
- the value of the
realmIdrecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
expirationDate
Returns the value of theexpirationDaterecord component.- Returns:
- the value of the
expirationDaterecord component
-