Credentials
@JsonClass(generateAdapter = true )
Content copied to clipboard
This data class hold credentials user data. You shouldn't have to instantiate it. 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
Constructors
Link copied to clipboard
fun Credentials( @Json(name = "user_id" ) userId: String, @Json(name = "access_token" ) accessToken: String, @Json(name = "refresh_token" ) refreshToken: String?, @Json(name = "home_server" ) homeServer: String?, @Json(name = "device_id" ) deviceId: String, @Json(name = "well_known" ) discoveryInformation: DiscoveryInformation? = null)
Content copied to clipboard