Use defined model (tested ok)

This commit is contained in:
Benoit Marty 2020-06-16 15:32:51 +02:00 committed by Valere
parent 5434c39453
commit bddd7f4005

View File

@ -32,17 +32,15 @@ internal data class SignatureUploadResponse(
* If a signature is not valid, the homeserver should set the corresponding entry in failures to a JSON object
* with the errcode property set to M_INVALID_SIGNATURE.
*/
val failures: Map<String, Map<String, @JvmSuppressWildcards Any>>? = null
val failures: Map<String, Map<String, UploadResponseFailure>>? = null
)
// TODO Not used. Remove?
@JsonClass(generateAdapter = true)
data class UploadResponseFailure(
internal data class UploadResponseFailure(
@Json(name = "status")
val status: Int,
@Json(name = "errCode")
@Json(name = "errcode")
val errCode: String,
@Json(name = "message")