ConversationState Class
- java.
lang. Object - com.
microsoft. bot. builder. BotState - com.
microsoft. bot. builder. ConversationState
- com.
- com.
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
Constructor Details
ConversationState
public ConversationState(Storage withStorage)
Creates a new ConversationState object.
Parameters:
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:
Returns: