Record Class NexoriSubmitFinalMatchResultResult
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriSubmitFinalMatchResultResult
- Record Components:
matchStatus- local final result acceptance status.backendReportStatus- backend reporting status, separate from local completion.resultId- local result id when completion was accepted.message- human-readable result details.
public record NexoriSubmitFinalMatchResultResult(NexoriMatchCompletionStatus matchStatus, NexoriBackendReportStatus backendReportStatus, String resultId, String message)
extends Record
Result returned after Nexori attempts final local match completion and optional backend reporting.
matchStatus() describes whether Nexori accepted the result locally.
backendReportStatus() describes what happened to the optional backend result report.
-
Constructor Summary
ConstructorsConstructorDescriptionNexoriSubmitFinalMatchResultResult(NexoriMatchCompletionStatus matchStatus, NexoriBackendReportStatus backendReportStatus, String resultId, String message) Creates an instance of aNexoriSubmitFinalMatchResultResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackendReportStatusrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thematchStatusrecord component.message()Returns the value of themessagerecord component.resultId()Returns the value of theresultIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NexoriSubmitFinalMatchResultResult
public NexoriSubmitFinalMatchResultResult(NexoriMatchCompletionStatus matchStatus, NexoriBackendReportStatus backendReportStatus, String resultId, String message) Creates an instance of aNexoriSubmitFinalMatchResultResultrecord class.- Parameters:
matchStatus- the value for thematchStatusrecord componentbackendReportStatus- the value for thebackendReportStatusrecord componentresultId- the value for theresultIdrecord 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). -
matchStatus
Returns the value of thematchStatusrecord component.- Returns:
- the value of the
matchStatusrecord component
-
backendReportStatus
Returns the value of thebackendReportStatusrecord component.- Returns:
- the value of the
backendReportStatusrecord component
-
resultId
-
message
-