8000 emolsh/api-ref-docs-dialogturnresult · TheCompuGuru/botbuilder-python@a136b9a · GitHub
[go: up one dir, main page]

Skip to content

Commit a136b9a

Browse files
author
Emily Olshefski
committed
emolsh/api-ref-docs-dialogturnresult
1 parent 0731f78 commit a136b9a

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

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

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,41 @@
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+
"""
810
def __init__(self, status: DialogTurnStatus, result: object = None):
11+
"""
12+
:param status: The current status of the stack.
13+
:type status: :class:`DialogTurnStatus`
14+
:param result: The result returned by a dialog that was just ended.
15+
:type result: object
16+
"""
917
self._status = status
1018
self._result = result
11-
19+
1220
@property
1321
def status(self):
22+
"""
23+
Gets or sets the current status of the stack.
24+
25+
:return self._status:
26+
:rtype self._status: :class:`DialogTurnStatus`
27+
28+
"""
1429
return self._status
30+
31+
"""
32+
Final result returned by a dialog that just completed.
33+
..remarks:
34+
This will only be populated in certain cases:
35+
- The bot calls `DialogContext.begin_dialog()` to start a new dialog and the dialog ends immediately.
36+
- The bot calls `DialogContext.continue_dialog()` and a dialog that was active ends.
1537
38+
:return self._result:
39+
:rtype self._result: object
40+
"""
1641
@property
1742
def result(self):
1843
return self._result

0 commit comments

Comments
 (0)
0