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 class
Message.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.MessageBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
List<Attachment>
getAttachments()
List<LayoutBlock>
getBlocks()
String
getChannel()
Long
getId()
String
getText()
String
getType()
int
hashCode()
void
setAttachments(List<Attachment> attachments)
void
setBlocks(List<LayoutBlock> blocks)
void
setChannel(String channel)
void
setId(Long id)
void
setText(String text)
String
toString()
-
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)
-
-