DialogInstance Class
- java.
lang. Object - com.
microsoft. bot. dialogs. DialogInstance
- com.
public class DialogInstance
Contains state information associated with a Dialog on a dialog stack.
Constructor Summary
| Constructor | Description |
|---|---|
| DialogInstance() |
Creates a Dialog |
| DialogInstance(String withId, Map<String,Object> withState) |
Creates a Dialog |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getId()
Gets the ID of the dialog. |
| int |
getStackIndex()
Gets stack index. |
| java.util.Map<java.lang.String,java.lang.Object> |
getState()
Gets the instance's persisted state. |
| java.lang.String |
getVersion()
Gets version string. |
| void |
setId(String withId)
Sets the ID of the dialog. |
| void |
setStackIndex(int withStackIndex)
Sets stack index. |
| void |
setState(Map<String,Object> withState)
Sets the instance's persisted state. |
| void |
setVersion(String withVersion)
Sets version string. |
Methods inherited from java.lang.Object
Constructor Details
DialogInstance
public DialogInstance()
Creates a DialogInstance with id and state.
DialogInstance
public DialogInstance(String withId, Map
Creates a DialogInstance with id and state.
Parameters:
Method Details
getId
public String getId()
Gets the ID of the dialog.
Returns:
getStackIndex
public int getStackIndex()
Gets stack index. Positive values are indexes within the current DC and negative values are indexes in the parent DC.
Returns:
getState
public Map
Gets the instance's persisted state.
Returns:
getVersion
public String getVersion()
Gets version string.
Returns:
setId
public void setId(String withId)
Sets the ID of the dialog.
Parameters:
setStackIndex
public void setStackIndex(int withStackIndex)
Sets stack index. Positive values are indexes within the current DC and negative values are indexes in the parent DC.
Parameters:
setState
public void setState(Map
Sets the instance's persisted state.
Parameters:
setVersion
public void setVersion(String withVersion)
Sets version string.
Parameters: