Fix parsing for registration 502 errors.
This commit is contained in:
parent
27a24262c8
commit
eab932b4a0
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue