mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 21:48:50 +03:00
SoftLogout: parse the parameter from server response
This commit is contained in:
parent
853518fbb2
commit
5435a1739e
1 changed files with 5 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue