Record Class LauncherEvent.ClientStateChanged
java.lang.Object
java.lang.Record
com.botwithus.bot.api.script.LauncherEvent.ClientStateChanged
- Record Components:
clientId- the clientstate- its new statestage- the step it is at, when the service sayscode- forLaunchedClient.State.FAILED, the failure codemessage- English text about the step, for logs
- All Implemented Interfaces:
LauncherEvent
- Enclosing interface:
LauncherEvent
public static record LauncherEvent.ClientStateChanged(String clientId, LaunchedClient.State state, Optional<String> stage, Optional<String> code, Optional<String> message)
extends Record
implements LauncherEvent
A client's launch moved on.
-
Nested Class Summary
Nested classes/interfaces inherited from interface LauncherEvent
LauncherEvent.AgentUpdated, LauncherEvent.ClientExited, LauncherEvent.ClientStarted, LauncherEvent.ClientStateChanged, LauncherEvent.DataPhase, LauncherEvent.DataUpdateApplied, LauncherEvent.DataUpdateAvailable, LauncherEvent.EventsDropped, LauncherEvent.ExitReason, LauncherEvent.LicenceChanged, LauncherEvent.ServiceLost, LauncherEvent.ServiceRestored, LauncherEvent.ServiceShuttingDown -
Constructor Summary
ConstructorsConstructorDescriptionClientStateChanged(String clientId, LaunchedClient.State state, Optional<String> stage, Optional<String> code, Optional<String> message) Creates an instance of aClientStateChangedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()Returns the value of theclientIdrecord component.code()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.stage()Returns the value of thestagerecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClientStateChanged
-
-
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). -
clientId
-
state
-
stage
-
code
-
message
-