Class MarkdownTextObject
java.lang.Object
com.slack.api.model.block.composition.TextObject
com.slack.api.model.block.composition.MarkdownTextObject
- All Implemented Interfaces:
ContextBlockElement
https://docs.slack.dev/messaging/migrating-outmoded-message-compositions-to-blocks
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMarkdownTextObject(String text, Boolean verbatim) Creates a newMarkdownTextObjectinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleangetText()getType()The documentation of the Slack API states that the verbatim field is optional.inthashCode()voidvoidsetVerbatim(Boolean verbatim) The documentation of the Slack API states that the verbatim field is optional.toString()
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
MarkdownTextObject
public MarkdownTextObject() -
MarkdownTextObject
Creates a newMarkdownTextObjectinstance.- Parameters:
text-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)
-
-
Method Details
-
builder
-
getType
-
getText
- Specified by:
getTextin classTextObject
-
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
-
setVerbatim
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) -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-