public enum DBCMessageCategory extends java.lang.Enum<DBCMessageCategory>
DBCOutSMSPacket.setMessageCategory
field.
This field is ignored for SMS messages.
Enum Constant and Description |
---|
ALERT |
NOTIFICATION |
PROMOTION |
Modifier and Type | Method and Description |
---|---|
static DBCMessageCategory |
getMessageCategoryEnum(java.lang.String msgcategorystr)
This function converts a string to its corresponding enumerated type.
|
static DBCMessageCategory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DBCMessageCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DBCMessageCategory ALERT
public static final DBCMessageCategory PROMOTION
public static final DBCMessageCategory NOTIFICATION
public static DBCMessageCategory[] values()
for (DBCMessageCategory c : DBCMessageCategory.values()) System.out.println(c);
public static DBCMessageCategory valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static DBCMessageCategory getMessageCategoryEnum(java.lang.String msgcategorystr)
Any of the strings listed below, in either upper or lower case, can be used to obtain the message category. Integer numbers are also present. Thus, you can use any of these values in your database field to denote the category.
The function returns null if the string is blank or null or does not match any of the above values.