org.whispersystems.signalservice.internal.push.VerificationCodeFailureResponseBody.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signal-service-java Show documentation
Show all versions of signal-service-java Show documentation
Signal Service communication library for Java, unofficial fork
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("permanentFailure") val permanentFailure: Boolean,
@JsonProperty("reason") val reason: String
)