Record Class RequestMicrosoftAPIImpl.MicrosoftAuthData
java.lang.Object
java.lang.Record
pro.gravit.launcher.base.request.RequestMicrosoftAPIImpl.MicrosoftAuthData
- All Implemented Interfaces:
pro.gravit.launcher.core.api.features.AuthFeatureAPI.AuthToken
- Enclosing class:
RequestMicrosoftAPIImpl
-
Constructor Summary
ConstructorsConstructorDescriptionMicrosoftAuthData(String accessToken, String refreshToken, long expire) Creates an instance of aMicrosoftAuthDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.longexpire()Returns the value of theexpirerecord component.longfinal inthashCode()Returns a hash code value for this object.Returns the value of therefreshTokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MicrosoftAuthData
Creates an instance of aMicrosoftAuthDatarecord class.- Parameters:
accessToken- the value for theaccessTokenrecord componentrefreshToken- the value for therefreshTokenrecord componentexpire- the value for theexpirerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
refreshToken
Returns the value of therefreshTokenrecord component.- Returns:
- the value of the
refreshTokenrecord component
-
expire
public long expire()Returns the value of theexpirerecord component.- Returns:
- the value of the
expirerecord component
-