Package com.slack.api.model.event
Class MessageEvent
- java.lang.Object
-
- com.slack.api.model.event.MessageEvent
-
- All Implemented Interfaces:
Event
,Serializable
public class MessageEvent extends Object implements Event
A message is delivered from several sources:- They are sent via the Real Time Messaging API when a message is sent to a channel to which you subscribe. This message should immediately be displayed in the client. - They are returned via calls to channels.history, im.history or groups.history - They are returned as latest property on channel, group and im objects.
https://api.slack.com/events/message
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MessageEvent.Edited
-
Constructor Summary
Constructors Constructor Description MessageEvent()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.slack.api.model.event.Event
getSubtype
-
-
-
-
Field Detail
-
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getClientMsgId
public String getClientMsgId()
-
getTeam
public String getTeam()
-
getChannel
public String getChannel()
-
getUser
public String getUser()
-
getBotId
public String getBotId()
-
getBotProfile
public BotProfile getBotProfile()
-
getText
public String getText()
-
getBlocks
public List<LayoutBlock> getBlocks()
-
getAttachments
public List<Attachment> getAttachments()
-
getTs
public String getTs()
-
getParentUserId
public String getParentUserId()
-
getThreadTs
public String getThreadTs()
-
getEventTs
public String getEventTs()
-
getChannelType
public String getChannelType()
-
getEdited
public MessageEvent.Edited getEdited()
-
setClientMsgId
public void setClientMsgId(String clientMsgId)
-
setTeam
public void setTeam(String team)
-
setChannel
public void setChannel(String channel)
-
setUser
public void setUser(String user)
-
setBotId
public void setBotId(String botId)
-
setBotProfile
public void setBotProfile(BotProfile botProfile)
-
setText
public void setText(String text)
-
setBlocks
public void setBlocks(List<LayoutBlock> blocks)
-
setAttachments
public void setAttachments(List<Attachment> attachments)
-
setTs
public void setTs(String ts)
-
setParentUserId
public void setParentUserId(String parentUserId)
-
setThreadTs
public void setThreadTs(String threadTs)
-
setEventTs
public void setEventTs(String eventTs)
-
setChannelType
public void setChannelType(String channelType)
-
setEdited
public void setEdited(MessageEvent.Edited edited)
-
canEqual
protected boolean canEqual(Object other)
-
-