MessageActionsPayload Class
- java.
lang. Object - com.
microsoft. bot. schema. teams. MessageActionsPayload
- com.
public class MessageActionsPayload
Represents the individual message within a chat or channel where a message actions is taken.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| MessageActionsPayload() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getAttachmentLayout()
Gets how the attachment(s) are displayed in the message. |
|
java.util.List<Message |
getAttachments()
Gets attachments in the message - card, image, file, etc. |
|
Message |
getBody()
Gets plaintext/HTML representation of the content of the message. |
| java.lang.String |
getCreatedDateTime()
Gets timestamp of when the message was created. |
| java.lang.Boolean |
getDeleted()
Indicates whether a message has been soft deleted. |
|
Message |
getFrom()
Gets sender of the message. |
| java.lang.String |
getId()
Gets unique id of the message. |
| java.lang.String |
getImportance()
Gets the importance of the message. |
| java.lang.String |
getLastModifiedDateTime()
Gets timestamp of when the message was edited or updated. |
| java.lang.String |
getLinkToMessage()
Gets the link back to the message. |
| java.lang.String |
getLocale()
Gets locale of the message set by the client. |
|
java.util.List<Message |
getMentions()
Gets list of entities mentioned in the message. |
| java.lang.String |
getMessageType()
Gets type of message - automatically set to message. |
|
java.util.List<Message |
getReactions()
Gets reactions for the message. |
| java.lang.String |
getReplyToId()
Gets id of the parent/root message of the thread. |
| java.lang.String |
getSubject()
Gets subject line of the message. |
| java.lang.String |
getSummary()
Gets summary text of the message that could be used for notifications. |
| void |
setAttachmentLayout(String withAttachmentLayout)
Sets how the attachment(s) are displayed in the message. |
| void |
setAttachments(List<MessageActionsPayloadAttachment> withAttachments)
Sets attachments in the message - card, image, file, etc. |
| void |
setBody(MessageActionsPayloadBody withBody)
Sets plaintext/HTML representation of the content of the message. |
| void |
setCreatedDateTime(String withCreatedDateTime)
Sets timestamp of when the message was created. |
| void |
setDeleted(Boolean withDeleted)
Indicates whether a message has been soft deleted. |
| void |
setFrom(MessageActionsPayloadFrom withFrom)
Sets sender of the message. |
| void |
setId(String withId)
Sets unique id of the message. |
| void |
setImportance(String withImportance)
Sets the importance of the message. |
| void |
setLastModifiedDateTime(String withLastModifiedDateTime)
Sets timestamp of when the message was edited or updated. |
| void |
setLinkToMessage(String withLinkToMessage)
Sets link back to the message. |
| void |
setLocale(String withLocale)
Sets locale of the message set by the client. |
| void |
setMentions(List<MessageActionsPayloadMention> withMentions)
Sets list of entities mentioned in the message. |
| void |
setMessageType(String withMessageType)
Sets type of message. |
| void |
setReactions(List<MessageActionsPayloadReaction> withReactions)
Sets reactions for the message. |
| void |
setReplyToId(String withReplyToId)
Sets id of the parent/root message of the thread. |
| void |
setSubject(String withSubject)
Sets subject line of the message. |
| void |
setSummary(String withSummary)
Sets summary text of the message that could be used for notifications. |
Methods inherited from java.lang.Object
Constructor Details
MessageActionsPayload
public MessageActionsPayload()
Method Details
getAttachmentLayout
public String getAttachmentLayout()
Gets how the attachment(s) are displayed in the message.
Returns:
getAttachments
public List
Gets attachments in the message - card, image, file, etc.
Returns:
getBody
public MessageActionsPayloadBody getBody()
Gets plaintext/HTML representation of the content of the message.
Returns:
getCreatedDateTime
public String getCreatedDateTime()
Gets timestamp of when the message was created.
Returns:
getDeleted
public Boolean getDeleted()
Indicates whether a message has been soft deleted.
Returns:
getFrom
public MessageActionsPayloadFrom getFrom()
Gets sender of the message.
Returns:
getId
public String getId()
Gets unique id of the message.
Returns:
getImportance
public String getImportance()
Gets the importance of the message.
Returns:
getLastModifiedDateTime
public String getLastModifiedDateTime()
Gets timestamp of when the message was edited or updated.
Returns:
getLinkToMessage
public String getLinkToMessage()
Gets the link back to the message.
Returns:
getLocale
public String getLocale()
Gets locale of the message set by the client.
Returns:
getMentions
public List
Gets list of entities mentioned in the message.
Returns:
getMessageType
public String getMessageType()
Gets type of message - automatically set to message.
Returns:
getReactions
public List
Gets reactions for the message.
Returns:
getReplyToId
public String getReplyToId()
Gets id of the parent/root message of the thread.
Returns:
getSubject
public String getSubject()
Gets subject line of the message.
Returns:
getSummary
public String getSummary()
Gets summary text of the message that could be used for notifications.
Returns:
setAttachmentLayout
public void setAttachmentLayout(String withAttachmentLayout)
Sets how the attachment(s) are displayed in the message.
Parameters:
setAttachments
public void setAttachments(List
Sets attachments in the message - card, image, file, etc.
Parameters:
setBody
public void setBody(MessageActionsPayloadBody withBody)
Sets plaintext/HTML representation of the content of the message.
Parameters:
setCreatedDateTime
public void setCreatedDateTime(String withCreatedDateTime)
Sets timestamp of when the message was created.
Parameters:
setDeleted
public void setDeleted(Boolean withDeleted)
Indicates whether a message has been soft deleted.
Parameters:
setFrom
public void setFrom(MessageActionsPayloadFrom withFrom)
Sets sender of the message.
Parameters:
setId
public void setId(String withId)
Sets unique id of the message.
Parameters:
setImportance
public void setImportance(String withImportance)
Sets the importance of the message.
Parameters:
setLastModifiedDateTime
public void setLastModifiedDateTime(String withLastModifiedDateTime)
Sets timestamp of when the message was edited or updated.
Parameters:
setLinkToMessage
public void setLinkToMessage(String withLinkToMessage)
Sets link back to the message.
Parameters:
setLocale
public void setLocale(String withLocale)
Sets locale of the message set by the client.
Parameters:
setMentions
public void setMentions(List
Sets list of entities mentioned in the message.
Parameters:
setMessageType
public void setMessageType(String withMessageType)
Sets type of message.
Parameters:
setReactions
public void setReactions(List
Sets reactions for the message.
Parameters:
setReplyToId
public void setReplyToId(String withReplyToId)
Sets id of the parent/root message of the thread.
Parameters:
setSubject
public void setSubject(String withSubject)
Sets subject line of the message.
Parameters:
setSummary
public void setSummary(String withSummary)
Sets summary text of the message that could be used for notifications.
Parameters: