Package com.slack.api.rtm.message
Class Message
- java.lang.Object
-
- com.slack.api.rtm.message.Message
-
- All Implemented Interfaces:
RTMMessage
public class Message extends Object implements RTMMessage
https://api.slack.com/events/message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessage.MessageBuilder
-
Constructor Summary
Constructors Constructor Description Message()Message(Long id, String channel, String text, List<LayoutBlock> blocks, List<Attachment> attachments)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Message.MessageBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)List<Attachment>getAttachments()List<LayoutBlock>getBlocks()StringgetChannel()LonggetId()StringgetText()StringgetType()inthashCode()voidsetAttachments(List<Attachment> attachments)voidsetBlocks(List<LayoutBlock> blocks)voidsetChannel(String channel)voidsetId(Long id)voidsetText(String text)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.slack.api.rtm.message.RTMMessage
toJSONString
-
-
-
-
Field Detail
-
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Message
public Message()
-
Message
public Message(Long id, String channel, String text, List<LayoutBlock> blocks, List<Attachment> attachments)
-
-
Method Detail
-
builder
public static Message.MessageBuilder builder()
-
getId
public Long getId()
-
getType
public String getType()
-
getChannel
public String getChannel()
-
getText
public String getText()
-
getBlocks
public List<LayoutBlock> getBlocks()
-
getAttachments
public List<Attachment> getAttachments()
-
setId
public void setId(Long id)
-
setChannel
public void setChannel(String channel)
-
setText
public void setText(String text)
-
setBlocks
public void setBlocks(List<LayoutBlock> blocks)
-
setAttachments
public void setAttachments(List<Attachment> attachments)
-
canEqual
protected boolean canEqual(Object other)
-
-