BotFrameworkClient Class

  • java.lang.Object
    • com.microsoft.bot.builder.skills.BotFrameworkClient

public abstract class BotFrameworkClient

A Bot Framework client.

Constructor Summary

Constructor Description
BotFrameworkClient()

Method Summary

Modifier and Type Method and Description
abstract java.util.concurrent.CompletableFuture<TypedInvokeResponse<T>> <T>postActivity(String fromBotId, String toBotId, URI toUri, URI serviceUri, String conversationId, Activity activity, Class<T> type)

Forwards an activity to a skill (bot).

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

BotFrameworkClient

public BotFrameworkClient()

Method Details

<T>postActivity

public abstract CompletableFuture> postActivity(String fromBotId, String toBotId, URI toUri, URI serviceUri, String conversationId, Activity activity, Class type)

Forwards an activity to a skill (bot). NOTE: Forwarding an activity to a skill will flush UserState and ConversationState changes so that skill has accurate state.

Parameters:

fromBotId - The MicrosoftAppId of the bot sending the activity.
toBotId - The MicrosoftAppId of the bot receiving the activity.
toUri - The URL of the bot receiving the activity.
serviceUri - The callback Url for the skill host.
conversationId - A conversation ID to use for the conversation with the skill.
activity - The Activity to send to forward.
type - The type for the response body to contain, can't really use <T> due to type erasure in Java.

Returns:

task with optional invokeResponse.

Applies to