Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

[CloudAdapter] Port CloudAdapter to Java #1296

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
31eef7d
Move InvokeResponse and TypedInvokeResponse to bot-schema
Batta32 Jul 14, 2021
0f8a03a
Relocate BotFrameworkClient to bot-connector
Batta32 Jul 14, 2021
f4ad8ab
Add Skill handle of CloudAdapter
Batta32 Jul 14, 2021
99b6908
Add Authentication configuration for CloudAdapter
Batta32 Jul 14, 2021
fe8cd7c
Add main classes of CloudAdapter and CloudAdapterBase
Batta32 Jul 14, 2021
9df6bef
Update necessary classes due to CloudAdapter and relocation of changes
Batta32 Jul 14, 2021
18c72cb
Add package-info
Batta32 Jul 14, 2021
683ed68
Add mockito in pom
Batta32 Jul 14, 2021
9ae6d8d
Add CloudAdapter tests
Batta32 Jul 14, 2021
2613e99
Add getCloudAdapter in BotDependencyConfiguration returning a new Clo…
Batta32 Jul 14, 2021
3229e97
Merge branch 'main' into internal/feature/southworks/cloudadapter/base
Batta32 Jul 14, 2021
d6f9afc
Added a Rest Controller for CloudAdapter
ldardick Aug 12, 2021
a896619
Fixed an incorrect recursive call causing a stack overflow
ldardick Aug 12, 2021
667aa8b
Fixed string comparison
ldardick Aug 12, 2021
ffc0df8
Fixed return types for CompleatableFuture
ldardick Aug 12, 2021
0132fcf
Added CloudAdapterWithInspection
ldardick Aug 12, 2021
196cc60
Fixed incorrect type reference in CloudAdapterWithErrorHandler
ldardick Aug 11, 2021
d1b9035
Add UserTokenAccess client and rewire OAuthPrompt (Mirror C# PR MS5213)
matiasroldan6 Aug 10, 2021
541de51
Add evaluation for instanceof UserTokenProvider in methods
matiasroldan6 Aug 11, 2021
ff85f8a
Add properties check in signOutUser
matiasroldan6 Aug 12, 2021
9d360b2
Add UserTokenAccessTests
matiasroldan6 Aug 13, 2021
90ed734
Roll back imports reorder
matiasroldan6 Aug 17, 2021
9ab6e89
Remove unused imports
matiasroldan6 Aug 17, 2021
a33f04c
Removed unused import
ldardick Aug 17, 2021
7a0f861
Fixed turn state key reference
ldardick Aug 17, 2021
546cb29
Change key to String in UserTokenAccessTests
matiasroldan6 Aug 17, 2021
1c3f5c7
Add sendMessageToTeamsChannel overload with CloudAdapter support
matiasroldan6 Aug 18, 2021
248cc89
Added test cases for ParameterizedBotFrameworkAuthentication
FedericoBernal Aug 5, 2021
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 @@ -6,6 +6,7 @@
import com.microsoft.bot.connector.Async;
import com.microsoft.bot.connector.authentication.ClaimsIdentity;
import com.microsoft.bot.schema.Activity;
import com.microsoft.bot.schema.ConversationParameters;
import com.microsoft.bot.schema.ConversationReference;
import com.microsoft.bot.schema.ResourceResponse;

Expand Down Expand Up @@ -374,4 +375,36 @@ public CompletableFuture<Void> continueConversation(
) {
return Async.completeExceptionally(new NotImplementedException("continueConversation"));
}

/**
* Creates a conversation on the specified channel.
*
* <p>
* To start a conversation, your bot must know its account information
* and the user's account information on that channel.
* Most _channels only support initiating a direct message (non-group) conversation.
* The adapter attempts to create a new conversation on the channel, and
* then sends a conversationUpdate activity through its middleware pipeline
* to the callback method.
* If the conversation is established with the
* specified users, the ID of the activity's {@link Activity#conversation}
* will contain the ID of the new conversation.
* </p>
* @param botAppId The application ID of the bot.
* @param channelId The ID for the channel.
* @param serviceUrl The channel's service URL endpoint.
* @param audience The audience for the connector.
* @param conversationParameters The conversation information to use to create the conversation.
* @param callback The method to call for the resulting bot turn.
* @return A task that represents the work queued to execute.
*/
public CompletableFuture<Void> createConversation(
String botAppId,
String channelId,
String serviceUrl,
String audience,
ConversationParameters conversationParameters, BotCallbackHandler callback
) {
return Async.completeExceptionally(new NotImplementedException("createConversation"));
}
}
Loading