Record Class NexoriSetAfkDetectionPolicyResult
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriSetAfkDetectionPolicyResult
- Record Components:
status- policy update outcome.matchId- Nexori local match id from the request.playerUuid- player override target, ornullfor match-level overrides.policy- normalized policy stored by Nexori, ornullwhen cleared or unavailable.message- human-readable result details.
public record NexoriSetAfkDetectionPolicyResult(NexoriSetAfkDetectionPolicyStatus status, String matchId, @Nullable UUID playerUuid, @Nullable NexoriAfkDetectionPolicy policy, String message)
extends Record
Public result returned by runtime AFK detection policy override APIs.
-
Constructor Summary
ConstructorsConstructorDescriptionNexoriSetAfkDetectionPolicyResult(NexoriSetAfkDetectionPolicyStatus status, String matchId, UUID playerUuid, NexoriAfkDetectionPolicy policy, String message) Creates an instance of aNexoriSetAfkDetectionPolicyResultrecord 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.message()Returns the value of themessagerecord component.Returns the value of theplayerUuidrecord component.policy()Returns the value of thepolicyrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NexoriSetAfkDetectionPolicyResult
public NexoriSetAfkDetectionPolicyResult(NexoriSetAfkDetectionPolicyStatus status, String matchId, @Nullable UUID playerUuid, @Nullable NexoriAfkDetectionPolicy policy, String message) Creates an instance of aNexoriSetAfkDetectionPolicyResultrecord class.- Parameters:
status- the value for thestatusrecord componentmatchId- the value for thematchIdrecord componentplayerUuid- the value for theplayerUuidrecord componentpolicy- the value for thepolicyrecord componentmessage- the value for themessagerecord 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). -
status
-
matchId
-
playerUuid
Returns the value of theplayerUuidrecord component.- Returns:
- the value of the
playerUuidrecord component
-
policy
-
message
-