Fix parsing for registration 502 errors.

This commit is contained in:
Nicholas Tinsley 2023-05-11 10:58:04 -04:00
parent 27a24262c8
commit eab932b4a0

View file

@ -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
)