public static class Message.Text
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHtml()
Returns the html if exist.
|
java.lang.String |
getMarkdown()
Returns the markdown if exist.
|
java.lang.String |
getPlain()
Returns the plain text if exist
|
static Message.Text |
html(java.lang.String html,
java.lang.String plain)
Make a Text object for the html.
|
static Message.Text |
markdown(java.lang.String markdown,
java.lang.String html,
java.lang.String plain)
Make a Text object for the markdown.
|
static Message.Text |
plain(java.lang.String plain)
Make a Text object for the plain text.
|
public static Message.Text plain(java.lang.String plain)
plain
- the plain text.public static Message.Text html(java.lang.String html, java.lang.String plain)
html
- the text with the html markup.plain
- the alternate plain text for cases that do not support html markup.public static Message.Text markdown(java.lang.String markdown, java.lang.String html, java.lang.String plain)
markdown
- the text with the markdown markup.html
- the html text for how to render the markdown. This will be optional in the future.plain
- the alternate plain text for cases that do not support markdown and html markup.public java.lang.String getMarkdown()
public java.lang.String getHtml()
public java.lang.String getPlain()