# Class PhoneVerification.Response

java.lang.Object
com.codename1.components.PhoneVerification.Response

Enclosing class:
  `PhoneVerification`

public static final class PhoneVerification.Response extends Object

The application's answer to one request. Exactly one of its methods takes effect, and later calls are ignored rather than rejected: a server wrapper that answers twice on a retry is a nuisance, not a reason to leave the screen stuck.

Either method may be called from any thread.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `failed(String message)`
  The request failed.
  `void`
  `succeeded()`
  The request succeeded: the message was sent, or the code was correct.

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### succeeded

    public void succeeded()
    The request succeeded: the message was sent, or the code was correct.

  - ### failed

    public void failed(String message)

    The request failed.

    ###### Parameters

    - `message`: what to show the user; a default is shown when null