Package com.slack.api.model.block
Class RichTextBlock
java.lang.Object
com.slack.api.model.block.RichTextBlock
- All Implemented Interfaces:
LayoutBlock
public class RichTextBlock extends Object implements LayoutBlock
https://api.slack.com/changelog/2019-09-what-they-see-is-what-you-get-and-more-and-less
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RichTextBlock.RichTextBlockBuilder
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RichTextBlock()
RichTextBlock(List<BlockElement> elements, String blockId)
-
Method Summary
Modifier and Type Method Description static RichTextBlock.RichTextBlockBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getBlockId()
Returns the block_id string; the value can be null if the object is manually crafted.List<BlockElement>
getElements()
String
getType()
Determines the type of layout block, e.g.int
hashCode()
void
setBlockId(String blockId)
void
setElements(List<BlockElement> elements)
String
toString()
-
Field Details
-
TYPE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
RichTextBlock
public RichTextBlock() -
RichTextBlock
-
-
Method Details
-
builder
-
getType
Description copied from interface:LayoutBlock
Determines the type of layout block, e.g. section, divider, context, actions and image.- Specified by:
getType
in interfaceLayoutBlock
-
getElements
-
getBlockId
Description copied from interface:LayoutBlock
Returns the block_id string; the value can be null if the object is manually crafted.- Specified by:
getBlockId
in interfaceLayoutBlock
-
setElements
-
setBlockId
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-