Add Javadoc
This commit is contained in:
parent
57fca80cbb
commit
678cf50dbd
|
@ -24,15 +24,36 @@ import im.vector.matrix.android.internal.util.md5
|
||||||
* This data class hold credentials user data.
|
* This data class hold credentials user data.
|
||||||
* You shouldn't have to instantiate it.
|
* You shouldn't have to instantiate it.
|
||||||
* The access token should be use to authenticate user in all server requests.
|
* The access token should be use to authenticate user in all server requests.
|
||||||
|
* Ref: https://matrix.org/docs/spec/client_server/latest#post-matrix-client-r0-login
|
||||||
*/
|
*/
|
||||||
@JsonClass(generateAdapter = true)
|
@JsonClass(generateAdapter = true)
|
||||||
data class Credentials(
|
data class Credentials(
|
||||||
|
/**
|
||||||
|
* The fully-qualified Matrix ID that has been registered.
|
||||||
|
*/
|
||||||
@Json(name = "user_id") val userId: String,
|
@Json(name = "user_id") val userId: String,
|
||||||
@Json(name = "home_server") val homeServer: String,
|
/**
|
||||||
|
* An access token for the account. This access token can then be used to authorize other requests.
|
||||||
|
*/
|
||||||
@Json(name = "access_token") val accessToken: String,
|
@Json(name = "access_token") val accessToken: String,
|
||||||
|
/**
|
||||||
|
* Not documented
|
||||||
|
*/
|
||||||
@Json(name = "refresh_token") val refreshToken: String?,
|
@Json(name = "refresh_token") val refreshToken: String?,
|
||||||
|
/**
|
||||||
|
* The server_name of the homeserver on which the account has been registered.
|
||||||
|
* @Deprecated. Clients should extract the server_name from user_id (by splitting at the first colon) if they require it. Note also that homeserver is not spelt this way.
|
||||||
|
*/
|
||||||
|
@Json(name = "home_server") val homeServer: String,
|
||||||
|
/**
|
||||||
|
* ID of the logged-in device. Will be the same as the corresponding parameter in the request, if one was specified.
|
||||||
|
*/
|
||||||
@Json(name = "device_id") val deviceId: String?,
|
@Json(name = "device_id") val deviceId: String?,
|
||||||
// Optional data that may contain info to override home server and/or identity server
|
/**
|
||||||
|
* Optional client configuration provided by the server. If present, clients SHOULD use the provided object to
|
||||||
|
* reconfigure themselves, optionally validating the URLs within.
|
||||||
|
* This object takes the same form as the one returned from .well-known autodiscovery.
|
||||||
|
*/
|
||||||
@Json(name = "well_known") val wellKnown: WellKnown? = null
|
@Json(name = "well_known") val wellKnown: WellKnown? = null
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue