File tree Expand file tree Collapse file tree 1 file changed +31
-3
lines changed
libraries/botbuilder-dialogs/botbuilder/dialogs Expand file tree Collapse file tree 1 file changed +31
-3
lines changed Original file line number Diff line number Diff line change 33
44from .dialog_turn_status import DialogTurnStatus
55
6-
76class DialogTurnResult :
7+ """
8+ Result returned to the caller of one of the various stack manipulation methods.
9+
10+ Use :meth:`DialogContext.end_dialogAsync()` to end a :class:`Dialog` and
11+ return a result to the calling context.
12+ """
813 def __init__ (self , status : DialogTurnStatus , result : object = None ):
14+ """
15+ :param status: The current status of the stack.
16+ :type status: :class:`DialogTurnStatus`
17+ :param result: The result returned by a dialog that was just ended.
18+ :type result: object
19+ """
920 self ._status = status
1021 self ._result = result
11-
22+
1223 @property
1324 def status (self ):
14- return self ._status
25+ """
26+ Gets or sets the current status of the stack.
1527
28+ :return self._status:
29+ :rtype self._status: :class:`DialogTurnStatus`
30+ """
31+ return self ._status
32+
1633 @property
1734 def result (self ):
35+ """
36+ Final result returned by a dialog that just completed.
37+
38+ .. note::
39+ This will only be populated in certain cases:
40+ * The bot calls :meth:`DialogContext.begin_dialog()` to start a new dialog and the dialog ends immediately.
41+ * The bot calls :meth:`DialogContext.continue_dialog()` and a dialog that was active ends.
42+
43+ :return self._result: Final result returned by a dialog that just completed.
44+ :rtype self._result: object
45+ """
1846 return self ._result
You can’t perform that action at this time.
0 commit comments