Record Class LoginState
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.LoginState
- Record Components:
state- the primary login state valueloginProgress- the login progress indicator (e.g., loading percentage)loginStatus- the login status code (e.g., success, invalid credentials)
The current login state of the game client.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLoginState(int state, int loginProgress, int loginStatus) Creates an instance of aLoginStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theloginProgressrecord component.intReturns the value of theloginStatusrecord component.intstate()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoginState
public LoginState(int state, int loginProgress, int loginStatus) Creates an instance of aLoginStaterecord class.- Parameters:
state- the value for thestaterecord componentloginProgress- the value for theloginProgressrecord componentloginStatus- the value for theloginStatusrecord 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 with thecomparemethod from their corresponding wrapper classes. -
state
-
loginProgress
public int loginProgress()Returns the value of theloginProgressrecord component.- Returns:
- the value of the
loginProgressrecord component
-
loginStatus
public int loginStatus()Returns the value of theloginStatusrecord component.- Returns:
- the value of the
loginStatusrecord component
-