Class MarkdownTextObject
java.lang.Object
com.slack.api.model.block.composition.TextObject
com.slack.api.model.block.composition.MarkdownTextObject
- All Implemented Interfaces:
ContextBlockElement
public class MarkdownTextObject extends TextObject
https://api.slack.com/reference/messaging/composition-objects#text
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMarkdownTextObject.MarkdownTextObjectBuilder -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE -
Constructor Summary
Constructors Constructor Description MarkdownTextObject()MarkdownTextObject(java.lang.String text, java.lang.Boolean verbatim) -
Method Summary
Modifier and Type Method Description static MarkdownTextObject.MarkdownTextObjectBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetText()java.lang.StringgetType()java.lang.BooleangetVerbatim()The documentation of the Slack API states that the verbatim field is optional.inthashCode()voidsetText(java.lang.String text)voidsetVerbatim(java.lang.Boolean verbatim)The documentation of the Slack API states that the verbatim field is optional.java.lang.StringtoString()
-
Field Details
-
TYPE
public static final java.lang.String TYPE- See Also:
- Constant Field Values
-
-
Constructor Details
-
MarkdownTextObject
public MarkdownTextObject() -
MarkdownTextObject
public MarkdownTextObject(java.lang.String text, java.lang.Boolean verbatim)
-
-
Method Details
-
builder
-
getType
public java.lang.String getType() -
getText
public java.lang.String getText()- Specified by:
getTextin classTextObject
-
getVerbatim
public java.lang.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(java.lang.String text) -
setVerbatim
public void setVerbatim(java.lang.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) -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-