public class ConversationContext
extends java.lang.Object
Prompt
 invocations.| Constructor | Description | 
|---|---|
| ConversationContext(Plugin plugin,
                   Conversable forWhom,
                   java.util.Map<java.lang.Object,java.lang.Object> initialSessionData) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| java.util.Map<java.lang.Object,java.lang.Object> | getAllSessionData() | Gets the entire sessionData map. | 
| Conversable | getForWhom() | Gets the subject of the conversation. | 
| Plugin | getPlugin() | Gets the plugin that owns this conversation. | 
| java.lang.Object | getSessionData(java.lang.Object key) | Gets session data shared between all  Promptinvocations. | 
| void | setSessionData(java.lang.Object key,
              java.lang.Object value) | Sets session data shared between all  Promptinvocations. | 
public ConversationContext(Plugin plugin, Conversable forWhom, java.util.Map<java.lang.Object,java.lang.Object> initialSessionData)
plugin - The owning plugin.forWhom - The subject of the conversation.initialSessionData - Any initial values to put in the sessionData
     map.public Plugin getPlugin()
public Conversable getForWhom()
public java.util.Map<java.lang.Object,java.lang.Object> getAllSessionData()
public java.lang.Object getSessionData(java.lang.Object key)
Prompt invocations. Use
 this as a way to pass data through each Prompt as the conversation
 develops.key - The session data key.public void setSessionData(java.lang.Object key,
                           java.lang.Object value)
Prompt invocations. Use
 this as a way to pass data through each prompt as the conversation
 develops.key - The session data key.value - The session data value.Copyright © 2018. All rights reserved.