This is where application specific logic for interacting with the users would be + * added. For this sample, the {@link #onMessageActivity(TurnContext)} echos the text + * back to the user. The {@link #onMembersAdded(List, TurnContext)} will send a greeting + * to new conversation participants.
+ */ +@Component +public class TeamsMessagingExtensionsSearchBot extends TeamsActivityHandler { + private String appId; + private String appPassword; + + public TeamsMessagingExtensionsSearchBot(Configuration configuration) { + appId = configuration.getProperty("MicrosoftAppId"); + appPassword = configuration.getProperty("MicrosoftAppPassword"); + } + + @Override + protected CompletableFutureThis is where application specific logic for interacting with the users would be + * added. For this sample, the {@link #onMessageActivity(TurnContext)} echos the text + * back to the user. The {@link #onMembersAdded(List, TurnContext)} will send a greeting + * to new conversation participants.
+ */ +@Component +public class TeamsMessagingExtensionsActionBot extends TeamsActivityHandler { + private String appId; + private String appPassword; + + public TeamsMessagingExtensionsActionBot(Configuration configuration) { + appId = configuration.getProperty("MicrosoftAppId"); + appPassword = configuration.getProperty("MicrosoftAppPassword"); + } + + @Override + protected CompletableFutureThis is where application specific logic for interacting with the users would be + * added. For this sample, the {@link #onMessageActivity(TurnContext)} echos the text + * back to the user. The {@link #onMembersAdded(List, TurnContext)} will send a greeting + * to new conversation participants.
+ */ +@Component +public class TeamsMessagingExtensionsSearchAuthConfigBot extends TeamsActivityHandler { + private String appId; + private String appPassword; + + public TeamsMessagingExtensionsSearchAuthConfigBot(Configuration configuration) { + appId = configuration.getProperty("MicrosoftAppId"); + appPassword = configuration.getProperty("MicrosoftAppPassword"); + } + + @Override + protected CompletableFutureThis is where application specific logic for interacting with the users would be + * added. For this sample, the {@link #onMessageActivity(TurnContext)} echos the text + * back to the user. The {@link #onMembersAdded(List, TurnContext)} will send a greeting + * to new conversation participants.
+ */ +@Component +public class TeamsMessagingExtensionsActionPreviewBot extends TeamsActivityHandler { + private String appId; + private String appPassword; + + public TeamsMessagingExtensionsActionPreviewBot(Configuration configuration) { + appId = configuration.getProperty("MicrosoftAppId"); + appPassword = configuration.getProperty("MicrosoftAppPassword"); + } + + @Override + protected CompletableFuture