SoftLogout: parse the parameter from server response

This commit is contained in:
Benoit Marty 2019-12-10 11:38:08 +01:00
parent 853518fbb2
commit 5435a1739e

View file

@ -29,11 +29,14 @@ data class MatrixError(
@Json(name = "error") val message: String,
@Json(name = "consent_uri") val consentUri: String? = null,
// RESOURCE_LIMIT_EXCEEDED data
// For RESOURCE_LIMIT_EXCEEDED
@Json(name = "limit_type") val limitType: String? = null,
@Json(name = "admin_contact") val adminUri: String? = null,
// For LIMIT_EXCEEDED
@Json(name = "retry_after_ms") val retryAfterMillis: Long? = null) {
@Json(name = "retry_after_ms") val retryAfterMillis: Long? = null,
// For UNAUTHORIZED
@Json(name = "soft_logout") val isSoftLogout: Boolean? = null
) {
companion object {
const val FORBIDDEN = "M_FORBIDDEN"