mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Fix parsing for registration 502 errors.
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
package org.whispersystems.signalservice.internal.push
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
|
||||
/**
|
||||
* Jackson parser for the response body from the server explaining a failure.
|
||||
* See also [org.whispersystems.signalservice.api.push.exceptions.ExternalServiceFailureException]
|
||||
*/
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
data class VerificationCodeFailureResponseBody(
|
||||
@JsonProperty val permanentFailure: Boolean,
|
||||
@JsonProperty val reason: String
|
||||
@JsonProperty("permanentFailure") val permanentFailure: Boolean,
|
||||
@JsonProperty("reason") val reason: String
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user