Record Class RequestMicrosoftAPIImpl.MicrosoftOAuthTokenResponse
java.lang.Object
java.lang.Record
pro.gravit.launcher.base.request.RequestMicrosoftAPIImpl.MicrosoftOAuthTokenResponse
- Enclosing class:
RequestMicrosoftAPIImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccess_tokenrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpires_inrecord component.foci()Returns the value of thefocirecord component.final inthashCode()Returns a hash code value for this object.Returns the value of therefresh_tokenrecord component.scope()Returns the value of thescoperecord component.Returns the value of thetoken_typerecord component.final StringtoString()Returns a string representation of this record class.user_id()Returns the value of theuser_idrecord component.
-
Constructor Details
-
MicrosoftOAuthTokenResponse
public MicrosoftOAuthTokenResponse(String token_type, long expires_in, String scope, String access_token, String refresh_token, String user_id, String foci) Creates an instance of aMicrosoftOAuthTokenResponserecord class.- Parameters:
token_type- the value for thetoken_typerecord componentexpires_in- the value for theexpires_inrecord componentscope- the value for thescoperecord componentaccess_token- the value for theaccess_tokenrecord componentrefresh_token- the value for therefresh_tokenrecord componentuser_id- the value for theuser_idrecord componentfoci- the value for thefocirecord component
-
-
Method Details
-
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. -
token_type
Returns the value of thetoken_typerecord component.- Returns:
- the value of the
token_typerecord component
-
expires_in
public long expires_in()Returns the value of theexpires_inrecord component.- Returns:
- the value of the
expires_inrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
access_token
Returns the value of theaccess_tokenrecord component.- Returns:
- the value of the
access_tokenrecord component
-
refresh_token
Returns the value of therefresh_tokenrecord component.- Returns:
- the value of the
refresh_tokenrecord component
-
user_id
Returns the value of theuser_idrecord component.- Returns:
- the value of the
user_idrecord component
-
foci
Returns the value of thefocirecord component.- Returns:
- the value of the
focirecord component
-