Record Class RequestOfflineModeAPIImpl.OfflineAuthData
java.lang.Object
java.lang.Record
pro.gravit.launcher.base.request.RequestOfflineModeAPIImpl.OfflineAuthData
- All Implemented Interfaces:
pro.gravit.launcher.core.api.features.AuthFeatureAPI.AuthToken
- Enclosing class:
RequestOfflineModeAPIImpl
-
Constructor Summary
ConstructorsConstructorDescriptionOfflineAuthData(String login) Creates an instance of aOfflineAuthDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longfinal inthashCode()Returns a hash code value for this object.login()Returns the value of theloginrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OfflineAuthData
Creates an instance of aOfflineAuthDatarecord class.- Parameters:
login- the value for theloginrecord component
-
-
Method Details
-
getAccessToken
- Specified by:
getAccessTokenin interfacepro.gravit.launcher.core.api.features.AuthFeatureAPI.AuthToken
-
getRefreshToken
- Specified by:
getRefreshTokenin interfacepro.gravit.launcher.core.api.features.AuthFeatureAPI.AuthToken
-
getExpire
public long getExpire()- Specified by:
getExpirein interfacepro.gravit.launcher.core.api.features.AuthFeatureAPI.AuthToken
-
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). -
login
Returns the value of theloginrecord component.- Returns:
- the value of the
loginrecord component
-