Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BotState

Hierarchy

  • BotState

Index

Constructors

Private constructor

Properties

memory

memory: CLMemory | undefined

Static Private _instance

_instance: BotState | undefined

Methods

ClearEditingPackageAsync

  • ClearEditingPackageAsync(): Promise<void>

CreateConversationReference

  • CreateConversationReference(userName: string, userId: string, conversationId: string): Promise<void>
  • Parameters

    • userName: string
    • userId: string
    • conversationId: string

    Returns Promise<void>

EndSessionAsync

  • EndSessionAsync(): Promise<void>

GetApp

  • GetApp(): Promise<AppBase | null>

GetConversationId

  • GetConversationId(): Promise<string | null>

GetConversationReverence

  • GetConversationReverence(): Promise<Partial<ConversationReference> | null>

GetEditingPackageForApp

  • GetEditingPackageForApp(appId: string): Promise<string>

GetEditingPackages

GetInTeach

  • GetInTeach(): Promise<boolean>

GetLastActive

  • GetLastActive(): Promise<number>

GetLogDialogId

  • GetLogDialogId(): Promise<string | null>

GetMessageProcessing

GetNeedSessionEndCall

  • GetNeedSessionEndCall(): Promise<boolean>

GetSessionIdAndSetConversationId

  • GetSessionIdAndSetConversationId(conversationId: string): Promise<string | null>

GetSessionIdAsync

  • GetSessionIdAsync(): Promise<string | null>

Private GetStateAsync

InitSessionAsync

  • InitSessionAsync(sessionId: string | null, logDialogId: string | null, conversationId: string | null, sessionStartFlags: SessionStartFlags): Promise<void>

MessageProcessingPopAsync

  • MessageProcessingPopAsync(): Promise<QueuedInput | null>

SessionInfoAsync

SetApp

  • SetApp(app: AppBase | null): Promise<void>

SetConversationId

  • SetConversationId(conversationId: string | null): Promise<void>

SetConversationReference

  • SetConversationReference(conversationReference: Partial<ConversationReference> | null): Promise<void>
  • Parameters

    • conversationReference: Partial<ConversationReference> | null

    Returns Promise<void>

SetEditingPackage

  • SetEditingPackage(appId: string, packageId: string): Promise<object>

SetInTeach

  • SetInTeach(inTeach: boolean): Promise<void>

SetLastActive

  • SetLastActive(lastActive: number): Promise<void>

SetLogDialogId

  • SetLogDialogId(logDialogId: string | null): Promise<void>

SetMessageProcessing

  • SetMessageProcessing(queuedInput: QueuedInput | null): Promise<void>

SetNeedSessionEndCall

  • SetNeedSessionEndCall(needed: boolean): Promise<void>

SetSessionId

  • SetSessionId(sessionId: string | null): Promise<void>

Private SetStateAsync

  • SetStateAsync<T>(botStateType: BotStateType, value: T): Promise<void>

_SetAppAsync

  • _SetAppAsync(app: AppBase | null): Promise<void>

Static Get

Generated using TypeDoc