Enum SMSDeliveryStatus

java.lang.Object
java.lang.Enum<SMSDeliveryStatus>
io.jans.casa.plugins.authnmethod.service.SMSDeliveryStatus
All Implemented Interfaces:
Serializable, Comparable<SMSDeliveryStatus>, java.lang.constant.Constable

public enum SMSDeliveryStatus extends Enum<SMSDeliveryStatus>
Author:
jgomer
  • Enum Constant Details

    • SUCCESS

      public static final SMSDeliveryStatus SUCCESS
      The underlying Twilio API call returned a status other than UNDELIVERED or DELIVERY_FAILED. See Twilio status values.

      Recall that a success status does not guarantee the recipient actually receiving a message.

    • NO_NUMBER

      public static final SMSDeliveryStatus NO_NUMBER
      The API call received no phone number to send the message to
    • UNDELIVERED

      public static final SMSDeliveryStatus UNDELIVERED
      The underlying Twilio API call returned a status of "undelivered". See Twilio status values.
    • DELIVERY_FAILED

      public static final SMSDeliveryStatus DELIVERY_FAILED
      The underlying Twilio API call returned a status of "failed". See Twilio status values.
    • APP_SETUP_ERROR

      public static final SMSDeliveryStatus APP_SETUP_ERROR
      The message was not delivered due to a misconfiguration in the connection with the underlying Twilio service
    • PROVIDER_ERROR

      public static final SMSDeliveryStatus PROVIDER_ERROR
      The underlying Twilio API call threw an exception. This may happen in a variety of situations, for instance, providing a non-valid phone number (e.g 555-1234-AB)
  • Method Details

    • values

      public static SMSDeliveryStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SMSDeliveryStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null