public class MessageEvent extends Object implements Event
- 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
| Modifier and Type | Class and Description |
|---|---|
static class |
MessageEvent.Edited |
| Constructor and Description |
|---|
MessageEvent() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<Attachment> |
getAttachments() |
List<LayoutBlock> |
getBlocks() |
String |
getChannel() |
String |
getChannelType() |
String |
getClientMsgId() |
MessageEvent.Edited |
getEdited() |
String |
getEventTs() |
String |
getParentUserId() |
String |
getText() |
String |
getThreadTs() |
String |
getTs() |
String |
getType() |
String |
getUser() |
int |
hashCode() |
void |
setAttachments(List<Attachment> attachments) |
void |
setBlocks(List<LayoutBlock> blocks) |
void |
setChannel(String channel) |
void |
setChannelType(String channelType) |
void |
setClientMsgId(String clientMsgId) |
void |
setEdited(MessageEvent.Edited edited) |
void |
setEventTs(String eventTs) |
void |
setParentUserId(String parentUserId) |
void |
setText(String text) |
void |
setThreadTs(String threadTs) |
void |
setTs(String ts) |
void |
setUser(String user) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSubtypepublic static final String TYPE_NAME
public String getClientMsgId()
public String getChannel()
public String getUser()
public String getText()
public List<LayoutBlock> getBlocks()
public List<Attachment> getAttachments()
public String getTs()
public String getParentUserId()
public String getThreadTs()
public String getEventTs()
public String getChannelType()
public MessageEvent.Edited getEdited()
public void setClientMsgId(String clientMsgId)
public void setChannel(String channel)
public void setUser(String user)
public void setText(String text)
public void setBlocks(List<LayoutBlock> blocks)
public void setAttachments(List<Attachment> attachments)
public void setTs(String ts)
public void setParentUserId(String parentUserId)
public void setThreadTs(String threadTs)
public void setEventTs(String eventTs)
public void setChannelType(String channelType)
public void setEdited(MessageEvent.Edited edited)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.