Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,7 @@ public CompletableFuture<Void> continueConversation(
ConversationReference reference,
BotCallbackHandler callback
) {
CompletableFuture<Void> result = new CompletableFuture<>();
result.completeExceptionally(new NotImplementedException("continueConversation"));
return result;
return Async.completeExceptionally(new NotImplementedException("continueConversation"));
}

/**
Expand All @@ -296,8 +294,80 @@ public CompletableFuture<Void> continueConversation(
String audience,
BotCallbackHandler callback
) {
CompletableFuture<Void> result = new CompletableFuture<>();
result.completeExceptionally(new NotImplementedException("continueConversation"));
return result;
return Async.completeExceptionally(new NotImplementedException("continueConversation"));
}

/**
* Sends a proactive message to a conversation.
*
* <p>
* Call this method to proactively send a message to a conversation. Most
* channels require a user to initiate a conversation with a bot before the bot
* can send activities to the user.
* </p>
*
* @param botId The application ID of the bot. This parameter is ignored in single tenant
* the Adapters (Console, Test, etc) but is critical to the BotFrameworkAdapter
* which is multi-tenant aware.
* @param continuationActivity An Activity with the appropriate ConversationReference with
* which to continue the conversation.
* @param callback The method to call for the result bot turn.
* @return A task that represents the work queued to execute.
*/
public CompletableFuture<Void> continueConversation(
String botId,
Activity continuationActivity,
BotCallbackHandler callback
) {
return Async.completeExceptionally(new NotImplementedException("continueConversation"));
}

/**
* Sends a proactive message to a conversation.
*
* <p>
* Call this method to proactively send a message to a conversation. Most
* channels require a user to initiate a conversation with a bot before the bot
* can send activities to the user.
* </p>
*
* @param claimsIdentity A ClaimsIdentity for the conversation.
* @param continuationActivity An Activity with the appropriate ConversationReference with
* which to continue the conversation.
* @param callback The method to call for the result bot turn.
* @return A task that represents the work queued to execute.
*/
public CompletableFuture<Void> continueConversation(
ClaimsIdentity claimsIdentity,
Activity continuationActivity,
BotCallbackHandler callback
) {
return Async.completeExceptionally(new NotImplementedException("continueConversation"));
}

/**
* Sends a proactive message to a conversation.
*
* <p>
* Call this method to proactively send a message to a conversation. Most
* channels require a user to initiate a conversation with a bot before the bot
* can send activities to the user.
* </p>
*
* @param claimsIdentity A ClaimsIdentity for the conversation.
* @param continuationActivity An Activity with the appropriate ConversationReference with
* which to continue the conversation.
* @param audience A value signifying the recipient of the proactive
* message.
* @param callback The method to call for the result bot turn.
* @return A task that represents the work queued to execute.
*/
public CompletableFuture<Void> continueConversation(
ClaimsIdentity claimsIdentity,
Activity continuationActivity,
String audience,
BotCallbackHandler callback
) {
return Async.completeExceptionally(new NotImplementedException("continueConversation"));
}
}