Enum Class TopUpPreset

java.lang.Object
java.lang.Enum<TopUpPreset>
com.microblink.blinkinput.entities.parsers.topup.TopUpPreset
All Implemented Interfaces:
Serializable, Comparable<TopUpPreset>, Constable

public enum TopUpPreset extends Enum<TopUpPreset>
Supported top up presets which determine top up prefix and USSD code length.
  • Enum Constant Details

    • TOP_UP_PRESET_123

      public static final TopUpPreset TOP_UP_PRESET_123
      For top ups which begin with *123* prefix and USSD code length is 14
    • TOP_UP_PRESET_103

      public static final TopUpPreset TOP_UP_PRESET_103
      For top ups which begin with *103* and USSD code length is 14
    • TOP_UP_PRESET_131

      public static final TopUpPreset TOP_UP_PRESET_131
      For top ups which begin with *131* and USSD code length is 13
    • TOP_UP_PRESET_GENERIC

      public static final TopUpPreset TOP_UP_PRESET_GENERIC
      For top ups with any prefix and USSD code length from interval [13, 16]
  • Method Details

    • values

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

      public static TopUpPreset valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null