SkillHttpClient Class
- java.
lang. Object - com.
microsoft. bot. builder. skills. BotFrameworkClient - com.
microsoft. bot. integration. BotFrameworkHttpClient - com.
microsoft. bot. integration. SkillHttpClient
- com.
- com.
- com.
public class SkillHttpClient
extends BotFrameworkHttpClient
A BotFrameworkHttpClient specialized for Skills that encapsulates Conversation ID generation.
Constructor Summary
| Constructor | Description |
|---|---|
| SkillHttpClient(CredentialProvider credentialProvider, SkillConversationIdFactoryBase conversationIdFactory, ChannelProvider channelProvider) |
Initializes a new instance of the SkillHttpClient class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
java.util.concurrent.CompletableFuture<Typed |
<T>postActivity(String fromBotId, BotFrameworkSkill toSkill, URI callbackUrl, Activity activity, Class<T> type)
Forwards an activity to a skill (bot). |
|
java.util.concurrent.CompletableFuture<Typed |
<T>postActivity(String originatingAudience, String fromBotId, BotFrameworkSkill toSkill, URI callbackUrl, Activity activity, Class<T> type)
Uses the Skill |
Methods inherited from BotFrameworkHttpClient
Methods inherited from java.lang.Object
Constructor Details
SkillHttpClient
public SkillHttpClient(CredentialProvider credentialProvider, SkillConversationIdFactoryBase conversationIdFactory, ChannelProvider channelProvider)
Initializes a new instance of the SkillHttpClient class.
Parameters:
Method Details
<T>postActivity
public CompletableFuture
Forwards an activity to a skill (bot).
Parameters:
Returns:
<T>postActivity
public CompletableFuture
Uses the SkillConversationIdFactory to create or retrieve a Skill Conversation Id, and sends the activity.
Parameters:
Returns: