Record Class LauncherEvent.LicenceChanged
java.lang.Object
java.lang.Record
com.botwithus.bot.api.script.LauncherEvent.LicenceChanged
- Record Components:
link- the link:"live","reconnecting","terminal"or"closed"clientId- the client, when the change is one client's licencestate- that licence's statefailures- its consecutive failures
- All Implemented Interfaces:
LauncherEvent
- Enclosing interface:
LauncherEvent
public static record LauncherEvent.LicenceChanged(String link, Optional<String> clientId, Optional<LaunchedClient.LicenceState> state, OptionalInt failures)
extends Record
implements LauncherEvent
The licence link, or one client's licence, changed.
-
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
ConstructorsConstructorDescriptionLicenceChanged(String link, Optional<String> clientId, Optional<LaunchedClient.LicenceState> state, OptionalInt failures) Creates an instance of aLicenceChangedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()Returns the value of theclientIdrecord component.final booleanIndicates whether some other object is "equal to" this one.failures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.link()Returns the value of thelinkrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LicenceChanged
public LicenceChanged(String link, Optional<String> clientId, Optional<LaunchedClient.LicenceState> state, OptionalInt failures) Creates an instance of aLicenceChangedrecord class.
-
-
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). -
link
-
clientId
-
state
-
failures
-