MessagingExtensionActionResponse Class

  • java.lang.Object
    • com.microsoft.bot.schema.teams.MessagingExtensionActionResponse

public class MessagingExtensionActionResponse

Response of messaging extension action.

Constructor Summary

Constructor Description
MessagingExtensionActionResponse()

Method Summary

Modifier and Type Method and Description
CacheInfo getCacheInfo()

Gets the CacheInfo for this MessagingExtensionActionResponse.

MessagingExtensionResult getComposeExtension()

Gets the extension result.

TaskModuleResponseBase getTask()

Gets the Adaptive card to appear in the task module.

void setCacheInfo(CacheInfo withCacheInfo)

Sets the CacheInfo for this MessagingExtensionActionResponse.

void setComposeExtension(MessagingExtensionResult withComposeExtension)

Sets the extension result.

void setTask(TaskModuleResponseBase withTask)

Sets the Adaptive card to appear in the task module.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

MessagingExtensionActionResponse

public MessagingExtensionActionResponse()

Method Details

getCacheInfo

public CacheInfo getCacheInfo()

Gets the CacheInfo for this MessagingExtensionActionResponse.

Returns:

CacheInfo

getComposeExtension

public MessagingExtensionResult getComposeExtension()

Gets the extension result.

Returns:

The extension result.

getTask

public TaskModuleResponseBase getTask()

Gets the Adaptive card to appear in the task module.

Returns:

The task card.

setCacheInfo

public void setCacheInfo(CacheInfo withCacheInfo)

Sets the CacheInfo for this MessagingExtensionActionResponse.

Parameters:

withCacheInfo - CacheInfo

setComposeExtension

public void setComposeExtension(MessagingExtensionResult withComposeExtension)

Sets the extension result.

Parameters:

withComposeExtension - The extension result.

setTask

public void setTask(TaskModuleResponseBase withTask)

Sets the Adaptive card to appear in the task module.

Parameters:

withTask - The task card.

Applies to