Skip to content

Commit 50ac251

Browse files
authored
Merge pull request #620 from microsoft/emolsh/api-ref-docs-dialogturnresult
emolsh/api-ref-docs-dialogturnresult
2 parents 994df88 + 695bd5d commit 50ac251

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_turn_result.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,44 @@
33

44
from .dialog_turn_status import DialogTurnStatus
55

6-
76
class 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

0 commit comments

Comments
 (0)