Record Class NexoriSubmitFinalMatchResultRequest
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriSubmitFinalMatchResultRequest
- Record Components:
matchId- Nexori local match id.reason- short public reason for diagnostics.customData- optional result payload supplied by the rules mod.
public record NexoriSubmitFinalMatchResultRequest(String matchId, String reason, com.google.gson.JsonObject customData)
extends Record
Final match result request.
Player outcomes are read from the active match runtime. Rules mods should store outcomes for
every player in NexoriMatchResultRequirements.requiredPlayerUuids() before submitting
this request.
-
Constructor Summary
ConstructorsConstructorDescriptionNexoriSubmitFinalMatchResultRequest(String matchId, String reason, com.google.gson.JsonObject customData) Creates an instance of aNexoriSubmitFinalMatchResultRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObjectReturns the value of thecustomDatarecord 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.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NexoriSubmitFinalMatchResultRequest
public NexoriSubmitFinalMatchResultRequest(String matchId, String reason, com.google.gson.JsonObject customData) Creates an instance of aNexoriSubmitFinalMatchResultRequestrecord class.- Parameters:
matchId- the value for thematchIdrecord componentreason- the value for thereasonrecord componentcustomData- the value for thecustomDatarecord 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
-
reason
-
customData
public com.google.gson.JsonObject customData()Returns the value of thecustomDatarecord component.- Returns:
- the value of the
customDatarecord component
-