Record Class NexoriSetPlayerAfkResult
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriSetPlayerAfkResult
- Record Components:
status- AFK state update outcome.matchId- Nexori local match id from the request.playerUuid- player whose AFK state was requested.afk- resulting requested AFK value.message- human-readable result details.
public record NexoriSetPlayerAfkResult(NexoriSetPlayerAfkStatus status, String matchId, @Nullable UUID playerUuid, boolean afk, String message)
extends Record
Public result returned by
NexoriMinigameApi.setPlayerAfk(NexoriSetPlayerAfkRequest).-
Constructor Summary
ConstructorsConstructorDescriptionNexoriSetPlayerAfkResult(NexoriSetPlayerAfkStatus status, String matchId, UUID playerUuid, boolean afk, String message) Creates an instance of aNexoriSetPlayerAfkResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanafk()Returns the value of theafkrecord component.final 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.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NexoriSetPlayerAfkResult
public NexoriSetPlayerAfkResult(NexoriSetPlayerAfkStatus status, String matchId, @Nullable UUID playerUuid, boolean afk, String message) Creates an instance of aNexoriSetPlayerAfkResultrecord class.- Parameters:
status- the value for thestatusrecord componentmatchId- the value for thematchIdrecord componentplayerUuid- the value for theplayerUuidrecord componentafk- the value for theafkrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
status
-
matchId
-
playerUuid
Returns the value of theplayerUuidrecord component.- Returns:
- the value of the
playerUuidrecord component
-
afk
-
message
-