PersistedState Class
- java.
lang. Object - com.
microsoft. bot. dialogs. PersistedState
- com.
public class PersistedState
Represents the persisted data across turns.
Constructor Summary
| Constructor | Description |
|---|---|
| PersistedState() |
Constructs a Persisted |
| PersistedState(PersistedStateKeys keys, HashMap<String,Object> data) |
Initializes a new instance of the Persisted |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.util.HashMap<java.lang.String,java.lang.Object> | getConversationState() |
| java.util.HashMap<java.lang.String,java.lang.Object> | getUserState() |
| void | setConversationState(HashMap<String,Object> withConversationState) |
| void | setUserState(HashMap<String,Object> withUserState) |
Methods inherited from java.lang.Object
Constructor Details
PersistedState
public PersistedState()
Constructs a PersistedState object.
PersistedState
public PersistedState(PersistedStateKeys keys, HashMap
Initializes a new instance of the PersistedState class.
Parameters:
Method Details
getConversationState
public HashMap
Returns:
getUserState
public HashMap
Returns:
setConversationState
public void setConversationState(HashMap
Parameters:
setUserState
public void setUserState(HashMap
Parameters: