Package crow.game.login.proto
Record Class LoginSuccess
java.lang.Object
java.lang.Record
crow.game.login.proto.LoginSuccess
- Record Components:
login1- ???login2- ???accountID- The account identifier.gender- The gender of the user.servers- The list of available servers.
public record LoginSuccess(int login1, int login2, int accountID, byte gender, List<CharServer> servers)
extends Record
The response for a login request from a client.
-
Constructor Summary
ConstructorsConstructorDescriptionLoginSuccess(int login1, int login2, int accountID, byte gender, List<CharServer> servers) Creates an instance of aLoginSuccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaccountIDrecord component.final booleanIndicates whether some other object is "equal to" this one.bytegender()Returns the value of thegenderrecord component.final inthashCode()Returns a hash code value for this object.intlogin1()Returns the value of thelogin1record component.intlogin2()Returns the value of thelogin2record component.servers()Returns the value of theserversrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoginSuccess
Creates an instance of aLoginSuccessrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
login1
public int login1()Returns the value of thelogin1record component.- Returns:
- the value of the
login1record component
-
login2
public int login2()Returns the value of thelogin2record component.- Returns:
- the value of the
login2record component
-
accountID
public int accountID()Returns the value of theaccountIDrecord component.- Returns:
- the value of the
accountIDrecord component
-
gender
public byte gender()Returns the value of thegenderrecord component.- Returns:
- the value of the
genderrecord component
-
servers
Returns the value of theserversrecord component.- Returns:
- the value of the
serversrecord component
-