MessagingExtensionResponse Class

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

public class MessagingExtensionResponse

Messaging extension response.

Constructor Summary

Constructor Description
MessagingExtensionResponse()

Creates a new empty response.

MessagingExtensionResponse(MessagingExtensionResult withResult)

Creates a new response with the specified result.

Method Summary

Modifier and Type Method and Description
CacheInfo getCacheInfo()

Gets the CacheInfo for this MessagingExtensionResponse.

MessagingExtensionResult getComposeExtension()

Gets the response result.

void setCacheInfo(CacheInfo withCacheInfo)

Sets the CacheInfo for this MessagingExtensionResponse.

void setComposeExtension(MessagingExtensionResult withComposeExtension)

Sets the response result.

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

MessagingExtensionResponse

public MessagingExtensionResponse()

Creates a new empty response.

MessagingExtensionResponse

public MessagingExtensionResponse(MessagingExtensionResult withResult)

Creates a new response with the specified result.

Parameters:

withResult - The result.

Method Details

getCacheInfo

public CacheInfo getCacheInfo()

Gets the CacheInfo for this MessagingExtensionResponse.

Returns:

CacheInfo

getComposeExtension

public MessagingExtensionResult getComposeExtension()

Gets the response result.

Returns:

The result.

setCacheInfo

public void setCacheInfo(CacheInfo withCacheInfo)

Sets the CacheInfo for this MessagingExtensionResponse.

Parameters:

withCacheInfo - CacheInfo

setComposeExtension

public void setComposeExtension(MessagingExtensionResult withComposeExtension)

Sets the response result.

Parameters:

withComposeExtension - The result.

Applies to