WaterfallStepContext Class
- java.
lang. Object - com.
microsoft. bot. dialogs. DialogContext - com.
microsoft. bot. dialogs. WaterfallStepContext
- com.
- com.
public class WaterfallStepContext
extends DialogContext
Provides context for a step in a WaterfallDialog . The DialogContext property contains the TurnContext for the current turn.
Constructor Summary
| Constructor | Description |
|---|---|
| WaterfallStepContext(WaterfallDialog parentWaterfall, DialogContext dc, Object options, Map<String,Object> values, int index, DialogReason reason, Object result) |
Initializes a new instance of the WaterfallStepContext class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| int |
getIndex()
Gets the index of the current waterfall step being executed. |
| java.lang.Object |
getOptions()
Gets any options the waterfall dialog was called with. |
|
Dialog |
getReason()
Gets the reason the waterfall step is being executed. |
| java.lang.Object |
getResult()
Gets the result from the previous waterfall step. |
| java.util.Map<java.lang.String,java.lang.Object> |
getValues()
Gets a dictionary of values which will be persisted across all waterfall actions. |
|
java.util.concurrent.CompletableFuture<Dialog |
next(Object result)
Skips to the next step of the waterfall. |
Methods inherited from DialogContext
Methods inherited from java.lang.Object
Constructor Details
WaterfallStepContext
public WaterfallStepContext(WaterfallDialog parentWaterfall, DialogContext dc, Object options, Map
Initializes a new instance of the WaterfallStepContext class.
Parameters:
Method Details
getIndex
public int getIndex()
Gets the index of the current waterfall step being executed.
Returns:
getOptions
public Object getOptions()
Gets any options the waterfall dialog was called with.
Returns:
getReason
public DialogReason getReason()
Gets the reason the waterfall step is being executed.
Returns:
getResult
public Object getResult()
Gets the result from the previous waterfall step. The result is often the return value of a child dialog that was started in the previous step of the waterfall.
Returns:
getValues
public Map
Gets a dictionary of values which will be persisted across all waterfall actions.
Returns:
next
public CompletableFuture
Skips to the next step of the waterfall.
Parameters:
Returns: