Record Class NexoriSetPlayerAfkDetectionPolicyRequest
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriSetPlayerAfkDetectionPolicyRequest
- Record Components:
matchId- Nexori local match id.playerUuid- player receiving the policy override.policy- policy to store for the player.
public record NexoriSetPlayerAfkDetectionPolicyRequest(String matchId, UUID playerUuid, NexoriAfkDetectionPolicy policy)
extends Record
Request to override the AFK detection policy for one player inside one active match runtime.
-
Constructor Summary
ConstructorsConstructorDescriptionNexoriSetPlayerAfkDetectionPolicyRequest(String matchId, UUID playerUuid, NexoriAfkDetectionPolicy policy) Creates an instance of aNexoriSetPlayerAfkDetectionPolicyRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.matchId()Returns the value of thematchIdrecord component.Returns the value of theplayerUuidrecord component.policy()Returns the value of thepolicyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NexoriSetPlayerAfkDetectionPolicyRequest
public NexoriSetPlayerAfkDetectionPolicyRequest(String matchId, UUID playerUuid, NexoriAfkDetectionPolicy policy) Creates an instance of aNexoriSetPlayerAfkDetectionPolicyRequestrecord class.- Parameters:
matchId- the value for thematchIdrecord componentplayerUuid- the value for theplayerUuidrecord componentpolicy- the value for thepolicyrecord 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). -
matchId
-
playerUuid
Returns the value of theplayerUuidrecord component.- Returns:
- the value of the
playerUuidrecord component
-
policy
-