public enum RecipientType extends java.lang.Enum<RecipientType>
Enum Constant and Description |
---|
GROUPS
Indicator for sending messages to groups on your SMSJuice account.
|
NUMBERS
For sending messages to mobile phone numbers.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRecipientTypeValue() |
static RecipientType |
instanceFromValue(java.lang.String reciptientTypeValue)
Returns the type of recipient to send the message to.
|
static RecipientType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RecipientType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecipientType GROUPS
public static final RecipientType NUMBERS
public static RecipientType[] values()
for (RecipientType c : RecipientType.values()) System.out.println(c);
public static RecipientType 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 RecipientType instanceFromValue(java.lang.String reciptientTypeValue) throws RecipientTypeException
reciptientTypeValue
- It has to be either 'groups' OR 'numbers'.RecipientTypeException
- when anything other than 'groups' OR 'numbers' has been used to try to create the ENUM objectpublic java.lang.String getRecipientTypeValue()