public enum Markdown extends Enum<Markdown>
| Modifier and Type | Method and Description |
|---|---|
String |
format(String text)
https://api.slack.com/docs/message-formatting#message_formatting
|
static String |
link(String url,
String name)
https://api.slack.com/docs/message-formatting#linking_to_urls
|
static String |
linkName(String name)
https://api.slack.com/docs/message-formatting#linking_to_channels_and_users
|
static Markdown |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Markdown[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Markdown BOLD
public static final Markdown CODE
public static final Markdown ITALIC
public static final Markdown STRIKE
public static final Markdown PRE
public static Markdown[] values()
for (Markdown c : Markdown.values()) System.out.println(c);
public static Markdown valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String format(String text)
public static String link(String url, String name)
Copyright © 2020. All Rights Reserved.