Record Class NexoriSetPlayerOutcomeResult
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriSetPlayerOutcomeResult
- Record Components:
status- outcome update status.matchId- Nexori local match id from the request.playerUuid- player whose outcome was requested.outcome- outcome stored or requested for the player.message- human-readable result details.
public record NexoriSetPlayerOutcomeResult(NexoriSetPlayerOutcomeStatus status, String matchId, @Nullable UUID playerUuid, @Nullable NexoriMatchResultPlayerOutcome outcome, String message)
extends Record
Public result returned by
NexoriMinigameApi.setPlayerOutcome(String, UUID, NexoriMatchResultPlayerOutcome, String).-
Constructor Summary
ConstructorsConstructorDescriptionNexoriSetPlayerOutcomeResult(NexoriSetPlayerOutcomeStatus status, String matchId, UUID playerUuid, NexoriMatchResultPlayerOutcome outcome, String message) Creates an instance of aNexoriSetPlayerOutcomeResultrecord 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.outcome()Returns the value of theoutcomerecord 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
-
NexoriSetPlayerOutcomeResult
public NexoriSetPlayerOutcomeResult(NexoriSetPlayerOutcomeStatus status, String matchId, @Nullable UUID playerUuid, @Nullable NexoriMatchResultPlayerOutcome outcome, String message) Creates an instance of aNexoriSetPlayerOutcomeResultrecord class.- Parameters:
status- the value for thestatusrecord componentmatchId- the value for thematchIdrecord componentplayerUuid- the value for theplayerUuidrecord componentoutcome- the value for theoutcomerecord 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
-
outcome
-
message
-