fursuit-tv-sdk
Toggle table of contents
0.4.1
common
Target filter
common
Switch theme
Search in API
Skip to content
fursuit-tv-sdk
fursuit-tv-sdk
/
com.furrist.rp.furtv.sdk.model
/
OAuthTokenData
OAuth
Token
Data
@
Serializable
data
class
OAuthTokenData
(
val
accessToken
:
String
,
val
expiresIn
:
Int
,
val
tokenType
:
String
,
val
scope
:
String
?
=
null
,
val
refreshToken
:
String
?
=
null
,
val
requestId
:
String
?
=
null
)
OAuth 令牌数据。
Members
Members & Extensions
Constructors
OAuth
Token
Data
Link copied to clipboard
constructor
(
accessToken
:
String
,
expiresIn
:
Int
,
tokenType
:
String
,
scope
:
String
?
=
null
,
refreshToken
:
String
?
=
null
,
requestId
:
String
?
=
null
)
Properties
access
Token
Link copied to clipboard
@
SerialName
(
value
=
"access_token"
)
val
accessToken
:
String
expires
In
Link copied to clipboard
@
SerialName
(
value
=
"expires_in"
)
val
expiresIn
:
Int
refresh
Token
Link copied to clipboard
@
SerialName
(
value
=
"refresh_token"
)
val
refreshToken
:
String
?
request
Id
Link copied to clipboard
val
requestId
:
String
?
scope
Link copied to clipboard
val
scope
:
String
?
token
Type
Link copied to clipboard
@
SerialName
(
value
=
"token_type"
)
val
tokenType
:
String
Functions
to
Token
Info
Link copied to clipboard
fun
OAuthTokenData
.
toTokenInfo
(
redirectUri
:
String
)
:
TokenInfo.OAuth
将 OAuth 令牌数据转换为 TokenInfo.OAuth。