Record Class NexoriCloseMatchAdmissionResult
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriCloseMatchAdmissionResult
- Record Components:
status- close request outcome.matchId- Nexori local match id from the request.closedLocally- whether Nexori changed local admission state during this call.message- human-readable result details.
public record NexoriCloseMatchAdmissionResult(NexoriCloseMatchAdmissionStatus status, String matchId, boolean closedLocally, String message)
extends Record
Result returned by
NexoriMinigameApi.closeMatchAdmission(NexoriCloseMatchAdmissionRequest).-
Constructor Summary
ConstructorsConstructorDescriptionNexoriCloseMatchAdmissionResult(NexoriCloseMatchAdmissionStatus status, String matchId, boolean closedLocally, String message) Creates an instance of aNexoriCloseMatchAdmissionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theclosedLocallyrecord 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.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NexoriCloseMatchAdmissionResult
public NexoriCloseMatchAdmissionResult(NexoriCloseMatchAdmissionStatus status, String matchId, boolean closedLocally, String message) Creates an instance of aNexoriCloseMatchAdmissionResultrecord class.- Parameters:
status- the value for thestatusrecord componentmatchId- the value for thematchIdrecord componentclosedLocally- the value for theclosedLocallyrecord 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
-
closedLocally
public boolean closedLocally()Returns the value of theclosedLocallyrecord component.- Returns:
- the value of the
closedLocallyrecord component
-
message
-