PrivateConversationState Class
- java.
lang. Object - com.
microsoft. bot. builder. BotState - com.
microsoft. bot. builder. PrivateConversationState
- com.
- com.
public class PrivateConversationState
extends BotState
Handles persistence of a conversation state object using the conversation.Id and from.Id part of an activity.
Constructor Summary
| Constructor | Description |
|---|---|
| PrivateConversationState(Storage storage) |
Initializes a new instance of the Private |
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
PrivateConversationState
public PrivateConversationState(Storage storage)
Initializes a new instance of the PrivateConversationState class.
Parameters:
Method Details
getStorageKey
public String getStorageKey(TurnContext turnContext)
Gets the key to use when reading and writing state to and from storage.
Overrides:
PrivateConversationState.getStorageKey(TurnContext turnContext)Parameters:
Returns:
Throws: