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 aOnlineChainJavaDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObjectReturns the value of theauthChainrecord component.Returns the value of theauthTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.static OnlineChainJavaDatafinal inthashCode()Returns a hash code value for this object.longReturns the value of thetokenExpireAtrecord component.toProto()final StringtoString()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 aOnlineChainJavaDatarecord class.- Parameters:
authToken- the value for theauthTokenrecord componenttokenExpireAt- the value for thetokenExpireAtrecord componentauthChain- the value for theauthChainrecord component
-
-
Method Details
-
fromProto
-
toProto
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
authToken
Returns the value of theauthTokenrecord component.- Specified by:
authTokenin interfaceOnlineJavaDataLike- Returns:
- the value of the
authTokenrecord component
-
tokenExpireAt
public long tokenExpireAt()Returns the value of thetokenExpireAtrecord component.- Returns:
- the value of the
tokenExpireAtrecord component
-
authChain
public com.google.gson.JsonObject authChain()Returns the value of theauthChainrecord component.- Returns:
- the value of the
authChainrecord component
-