Package com.whatsapp.api.utils
Class Formatter
java.lang.Object
com.whatsapp.api.utils.Formatter
custom text formatter
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Formatter
public Formatter()
-
-
Method Details
-
italic
Italic string.- Parameters:
text
- String- Returns:
- text formatted in italic. Example: "italic text"
-
bold
Bold string.- Parameters:
text
- String- Returns:
- bold formatted text. Example: "bold text"
-
strikethrough
Strikethrough string.- Parameters:
text
- String- Returns:
- strikethrough text. Example:
"strikethrough text"
-
code
Code string.- Parameters:
text
- String- Returns:
- text formatted as code. Example:
"code text"
-