ConversationState Class

public class ConversationState
extends BotState

Defines a state management object for conversation state.

Constructor Summary

Constructor Description
ConversationState(Storage withStorage)

Creates a new ConversationState object.

Method Summary

Modifier and Type Method and Description
java.lang.String getStorageKey(TurnContext turnContext)

Gets the key to use when reading and writing state to and from storage.

Methods inherited from BotState

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ConversationState

public ConversationState(Storage withStorage)

Creates a new ConversationState object.

Parameters:

withStorage - The storage layer to use.

Method Details

getStorageKey

public String getStorageKey(TurnContext turnContext)

Gets the key to use when reading and writing state to and from storage.

Overrides:

ConversationState.getStorageKey(TurnContext turnContext)

Parameters:

turnContext - The context object for this turn.

Returns:

The storage key.

Applies to