Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [#4204] Fix remaining eslint warnings - Rest of botbuilder-dialogs libraries - adaptive runtime #4239

Merged
Show file tree
Hide file tree
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 @@ -5,7 +5,14 @@ import { Configuration } from './configuration';
import { ComponentDeclarativeTypes, ResourceExplorer } from 'botbuilder-dialogs-declarative';
import { ok } from 'assert';

/**
* Class which gives access to content resources by specifying configuration and declarativeTypes.
*/
export class ConfigurationResourceExporer extends ResourceExplorer {
/**
* @param configuration Additional configuration methods.
* @param declarativeTypes Registered declarative types.
*/
constructor(configuration: Configuration, declarativeTypes: ComponentDeclarativeTypes[]) {
super({ declarativeTypes });

Expand Down
15 changes: 15 additions & 0 deletions libraries/botbuilder-dialogs-adaptive-runtime/src/coreBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,22 @@ import {
useTelemetry,
} from 'botbuilder-dialogs-adaptive';

/**
* Implements an instance of CoreBot.
*/
export class CoreBot extends ActivityHandler {
/**
* @param resourceExplorer Services to access resources.
* @param userState Stored user state.
* @param conversationState Stored conversation state.
* @param botFrameworkAuthentication Cloud environment to authenticate Bot Framework Protocol network calls within this environment.
* @param skillConversationIdFactory Methods to create unique conversation IDs for skill conversations.
* @param botTelemetryClient Bot client to telemetry.
* @param defaultLocale The default locale used to determine language-specific behavior.
* @param defaultRootDialog Default bot root dialog.
* @param memoryScopes Named root-level objects, which can exist in the dialog context or outside the turn state.
* @param pathResolvers Shortcut behavior for transform paths.
*/
constructor(
resourceExplorer: ResourceExplorer,
userState: UserState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
import { BotFrameworkAuthentication } from 'botframework-connector';
import { CloudAdapter, ConversationState, UserState, useBotState } from 'botbuilder';

/**
* An adapter that implements the Core Bot and can be hosted in different cloud environments both public and private.
*/
export class CoreBotAdapter extends CloudAdapter {
/**
* @param botFrameworkAuthentication BotFrameworkAuthentication](xref:botframework-connector.BotFrameworkAuthentication) instance.
* @param conversationState State management object for conversation state.
* @param userState Stored user state.
*/
constructor(
botFrameworkAuthentication: BotFrameworkAuthentication,
private readonly conversationState: ConversationState,
Expand Down