Enum Class Markdown

java.lang.Object
java.lang.Enum<Markdown>
org.togglz.slack.notification.Markdown
All Implemented Interfaces:
Serializable, Comparable<Markdown>, Constable

public enum Markdown extends Enum<Markdown>
  • Enum Constant Details

    • BOLD

      public static final Markdown BOLD
    • CODE

      public static final Markdown CODE
    • ITALIC

      public static final Markdown ITALIC
    • STRIKE

      public static final Markdown STRIKE
    • PRE

      public static final Markdown PRE
  • Method Details

    • values

      public static Markdown[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Markdown valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • format

      public String format(String text)
      https://api.slack.com/docs/message-formatting#message_formatting
    • link

      public static String link(String url, String name)
      https://api.slack.com/docs/message-formatting#linking_to_urls
    • linkName

      public static String linkName(String name)
      https://api.slack.com/docs/message-formatting#linking_to_channels_and_users
      Parameters:
      name - of user or channel