Package com.slack.api.model.block
Class MarkdownBlock
java.lang.Object
com.slack.api.model.block.MarkdownBlock
- All Implemented Interfaces:
LayoutBlock
https://docs.slack.dev/reference/block-kit/blocks/markdown-block
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMarkdownBlock(String text, String blockId) Creates a newMarkdownBlockinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanThe block_id is ignored in markdown blocks and will not be retained.getText()The standard markdown-formatted text.getType()The type of block.inthashCode()voidsetBlockId(String blockId) The block_id is ignored in markdown blocks and will not be retained.voidThe standard markdown-formatted text.toString()
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
MarkdownBlock
public MarkdownBlock() -
MarkdownBlock
Creates a newMarkdownBlockinstance.- Parameters:
text- The standard markdown-formatted text. Limit 12,000 characters max.blockId- The block_id is ignored in markdown blocks and will not be retained.
-
-
Method Details
-
builder
-
getType
The type of block. For a markdown block, type is always markdown.- Specified by:
getTypein interfaceLayoutBlock
-
getText
The standard markdown-formatted text. Limit 12,000 characters max. -
getBlockId
The block_id is ignored in markdown blocks and will not be retained.- Specified by:
getBlockIdin interfaceLayoutBlock
-
setText
The standard markdown-formatted text. Limit 12,000 characters max. -
setBlockId
The block_id is ignored in markdown blocks and will not be retained. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-