SkillHttpClient Classe

public class SkillHttpClient
extends BotFrameworkHttpClient

Un BotFrameworkHttpClient spécialisé pour les compétences qui encapsule la génération d’ID de conversation.

Récapitulatif du constructeur

Constructeur Description
SkillHttpClient(CredentialProvider credentialProvider, SkillConversationIdFactoryBase conversationIdFactory, ChannelProvider channelProvider)

Initialise une nouvelle instance de la classe SkillHttpClient.

Résumé de la méthode

Modificateur et type Méthode et description
java.util.concurrent.CompletableFuture<TypedInvokeResponse<T>> <T>postActivity(String fromBotId, BotFrameworkSkill toSkill, URI callbackUrl, Activity activity, Class<T> type)

Transfère une activité à une compétence (bot).

java.util.concurrent.CompletableFuture<TypedInvokeResponse<T>> <T>postActivity(String originatingAudience, String fromBotId, BotFrameworkSkill toSkill, URI callbackUrl, Activity activity, Class<T> type)

Utilise la compétenceConversationIdFactory pour créer ou récupérer un ID de conversation de compétence et envoie l’activité.

Méthodes héritées de BotFrameworkHttpClient

Méthodes héritées de 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

Détails du constructeur

SkillHttpClient

public SkillHttpClient(CredentialProvider credentialProvider, SkillConversationIdFactoryBase conversationIdFactory, ChannelProvider channelProvider)

Initialise une nouvelle instance de la classe SkillHttpClient.

Paramètres:

credentialProvider - Instance de CredentialProvider.
conversationIdFactory - Instance d’une classe dérivée de SkillConversationIdFactoryBase.
channelProvider - Instance de ChannelProvider.

Détails de la méthode

<T>postActivity

public CompletableFuture> postActivity(String fromBotId, BotFrameworkSkill toSkill, URI callbackUrl, Activity activity, Class type)

Transfère une activité à une compétence (bot).

Paramètres:

fromBotId - MicrosoftAppId du bot envoyant l’activité.
toSkill - Instance de BotFrameworkSkill .
callbackUrl - URI de rappel.
activity - activité à transférer.
type - type de T

Retours:

tâche avec invokeResponse facultatif de type T.

<T>postActivity

public CompletableFuture> postActivity(String originatingAudience, String fromBotId, BotFrameworkSkill toSkill, URI callbackUrl, Activity activity, Class type)

Utilise SkillConversationIdFactory pour créer ou récupérer un ID de conversation de compétence et envoie l’activité.

Paramètres:

originatingAudience - Étendue de l’audience oauth, utilisée lors de la récupération des jetons. (ID d’application https://api.getbotframework().com ou bot.)
fromBotId - MicrosoftAppId du bot envoyant l’activité.
toSkill - Compétence pour laquelle créer l’ID de conversation.
callbackUrl - URL de rappel de l’hôte de compétence.
activity - Activité à envoyer.
type - Type de T requis en raison de l’effacement de type des génériques en Java.

Retours:

tâche avec invokeResponse.

S’applique à