Package com.twilio.converter
Class Promoter
- java.lang.Object
-
- com.twilio.converter.Promoter
-
public class Promoter extends Object
-
-
Constructor Summary
Constructors Constructor Description Promoter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Enum<?>>
TenumFromString(String value, T[] values)Convert a string to a enum type.static <T> List<T>listOfOne(T one)Create a list from a single element.static PhoneNumberphoneNumberFromString(String pn)Create a @see com.twilio.types.PhoneNumber from a stringstatic TwimltwimlFromString(String twiml)Create a @see com.twilio.types.Twiml from a stringstatic URIuriFromString(String url)Create a @see java.net.URI from a string
-
-
-
Method Detail
-
uriFromString
public static URI uriFromString(String url)
Create a @see java.net.URI from a string- Parameters:
url- url to convert- Returns:
- built @see java.net.URI
-
phoneNumberFromString
public static PhoneNumber phoneNumberFromString(String pn)
Create a @see com.twilio.types.PhoneNumber from a string- Parameters:
pn- PhoneNumber to convert- Returns:
- built @see com.twilio.types.PhoneNumber
-
twimlFromString
public static Twiml twimlFromString(String twiml)
Create a @see com.twilio.types.Twiml from a string- Parameters:
twiml- Twiml to convert- Returns:
- built @see com.twilio.types.Twiml
-
listOfOne
public static <T> List<T> listOfOne(T one)
Create a list from a single element.- Type Parameters:
T- type of the element- Parameters:
one- the single element- Returns:
- List containing the single element
-
-