MessagingExtensionAction Class
- java.
lang. Object - com.
microsoft. bot. schema. teams. TaskModuleRequest - com.
microsoft. bot. schema. teams. MessagingExtensionAction
- com.
- com.
public class MessagingExtensionAction
extends TaskModuleRequest
Messaging extension action.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| MessagingExtensionAction() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.util.List<Activity> |
getBotActivityPreview()
Gets the list of preview Activities. |
| java.lang.String |
getBotMessagePreviewAction()
Gets bot message preview action taken by user. |
| java.lang.String |
getCommandContext()
Gets the context from which the command originates. |
| java.lang.String |
getCommandId()
Gets id of the command assigned by Bot. |
|
Message |
getMessagePayload()
Gets message content sent as part of the command request. |
| void |
setBotActivityPreview(List<Activity> withBotActivityPreview)
Sets the list of preview Activities. |
| void |
setBotMessagePreviewAction(String withBotMessagePreviewAction)
Sets bot message preview action taken by user. |
| void |
setCommandContext(String withCommandContext)
Sets the context from which the command originates. |
| void |
setCommandId(String withCommandId)
Sets id of the command assigned by Bot. |
| void |
setMessagePayload(MessageActionsPayload withMessagePayload)
Sets message content sent as part of the command request. |
Methods inherited from TaskModuleRequest
Methods inherited from java.lang.Object
Constructor Details
MessagingExtensionAction
public MessagingExtensionAction()
Method Details
getBotActivityPreview
public List
Gets the list of preview Activities.
Returns:
getBotMessagePreviewAction
public String getBotMessagePreviewAction()
Gets bot message preview action taken by user. Possible values include: 'edit', 'send'
Returns:
getCommandContext
public String getCommandContext()
Gets the context from which the command originates. Possible values include: 'message', 'compose', 'commandbox'
Returns:
getCommandId
public String getCommandId()
Gets id of the command assigned by Bot.
Returns:
getMessagePayload
public MessageActionsPayload getMessagePayload()
Gets message content sent as part of the command request.
Returns:
setBotActivityPreview
public void setBotActivityPreview(List
Sets the list of preview Activities.
Parameters:
setBotMessagePreviewAction
public void setBotMessagePreviewAction(String withBotMessagePreviewAction)
Sets bot message preview action taken by user. Possible values include: 'edit', 'send'
Parameters:
setCommandContext
public void setCommandContext(String withCommandContext)
Sets the context from which the command originates. Possible values include: 'message', 'compose', 'commandbox'
Parameters:
setCommandId
public void setCommandId(String withCommandId)
Sets id of the command assigned by Bot.
Parameters:
setMessagePayload
public void setMessagePayload(MessageActionsPayload withMessagePayload)
Sets message content sent as part of the command request.
Parameters: