Enum Class Category

java.lang.Object
java.lang.Enum<Category>
com.vonage.client.messages.viber.Category
All Implemented Interfaces:
Serializable, Comparable<Category>, java.lang.constant.Constable

public enum Category extends Enum<Category>
The use of different category tags enables the business to send messages for different use cases. For Viber Service Messages the first message sent from a business to a user must be personal, informative and a targeted message - not promotional. By default, Vonage sends the transaction category to Viber Service Messages.
  • Enum Constant Details

  • Method Details

    • values

      public static Category[] 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 Category 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Category>