| Constructor and Description | 
|---|
ConversationContext(@Nullable Plugin plugin,
                   @NotNull Conversable forWhom,
                   @NotNull Map<Object,Object> initialSessionData)  | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull Map<Object,Object> | 
getAllSessionData()
Gets the underlying sessionData map. 
 | 
@NotNull Conversable | 
getForWhom()
Gets the subject of the conversation. 
 | 
@Nullable Plugin | 
getPlugin()
Gets the plugin that owns this conversation. 
 | 
@Nullable Object | 
getSessionData(@NotNull Object key)
Gets session data shared between all  
Prompt invocations. | 
void | 
setSessionData(@NotNull Object key,
              @Nullable Object value)
Sets session data shared between all  
Prompt invocations. | 
public ConversationContext(@Nullable
                           @Nullable Plugin plugin,
                           @NotNull
                           @NotNull Conversable forWhom,
                           @NotNull
                           @NotNull Map<Object,Object> initialSessionData)
plugin - The owning plugin.forWhom - The subject of the conversation.initialSessionData - Any initial values to put in the sessionData
     map.@Nullable public @Nullable Plugin getPlugin()
@NotNull public @NotNull Conversable getForWhom()
@NotNull public @NotNull Map<Object,Object> getAllSessionData()
@Nullable public @Nullable Object getSessionData(@NotNull @NotNull 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(@NotNull
                           @NotNull Object key,
                           @Nullable
                           @Nullable 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 © 2021. All rights reserved.