Record Class OnlineChainJavaData
java.lang.Object
java.lang.Record
com.soulfiremc.server.account.service.OnlineChainJavaData
- All Implemented Interfaces:
AccountData
,OnlineJavaDataLike
public record OnlineChainJavaData(String authToken, long tokenExpireAt, com.google.gson.JsonObject authChain)
extends Record
implements AccountData, OnlineJavaDataLike
-
Constructor Summary
ConstructorsConstructorDescriptionOnlineChainJavaData
(String authToken, long tokenExpireAt, com.google.gson.JsonObject authChain) Creates an instance of aOnlineChainJavaData
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
Returns the value of theauthChain
record component.Returns the value of theauthToken
record component.final boolean
Indicates whether some other object is "equal to" this one.static OnlineChainJavaData
final int
hashCode()
Returns a hash code value for this object.long
Returns the value of thetokenExpireAt
record component.toProto()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
OnlineChainJavaData
public OnlineChainJavaData(String authToken, long tokenExpireAt, com.google.gson.JsonObject authChain) Creates an instance of aOnlineChainJavaData
record class.- Parameters:
authToken
- the value for theauthToken
record componenttokenExpireAt
- the value for thetokenExpireAt
record componentauthChain
- the value for theauthChain
record component
-
-
Method Details
-
fromProto
-
toProto
-
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 '=='. -
authToken
Returns the value of theauthToken
record component.- Specified by:
authToken
in interfaceOnlineJavaDataLike
- Returns:
- the value of the
authToken
record component
-
tokenExpireAt
public long tokenExpireAt()Returns the value of thetokenExpireAt
record component.- Returns:
- the value of the
tokenExpireAt
record component
-
authChain
public com.google.gson.JsonObject authChain()Returns the value of theauthChain
record component.- Returns:
- the value of the
authChain
record component
-