Class MarkdownTextObject

  • All Implemented Interfaces:
    ContextBlockElement

    public class MarkdownTextObject
    extends TextObject
    https://api.slack.com/reference/messaging/composition-objects#text
    • Constructor Detail

      • MarkdownTextObject

        public MarkdownTextObject()
      • MarkdownTextObject

        public MarkdownTextObject​(String text,
                                  Boolean verbatim)
    • Method Detail

      • getType

        public String getType()
      • getVerbatim

        public Boolean getVerbatim()
        The documentation of the Slack API states that the verbatim field is optional. The API examples always render the emoji field (as true, but that is its default value) -- so that is not helpful. I picked the Boolean because basically you have 3 possible states: - true - false - not present (and therefore not rendered in the resulting JSON sent to the Slack API)
      • setText

        public void setText​(String text)
      • setVerbatim

        public void setVerbatim​(Boolean verbatim)
        The documentation of the Slack API states that the verbatim field is optional. The API examples always render the emoji field (as true, but that is its default value) -- so that is not helpful. I picked the Boolean because basically you have 3 possible states: - true - false - not present (and therefore not rendered in the resulting JSON sent to the Slack API)
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object