File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed
libraries/botbuilder-dialogs/botbuilder/dialogs Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
from .dialog_turn_status import DialogTurnStatus
5
5
6
-
7
6
class DialogTurnResult :
7
+ """
8
+ Result returned to the caller of one of the various stack manipulation methods.
9
+ """
8
10
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
+ """
9
17
self ._status = status
10
18
self ._result = result
11
-
19
+
12
20
@property
13
21
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
+ """
14
29
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.
15
37
38
+ :return self._result:
39
+ :rtype self._result: object
40
+ """
16
41
@property
17
42
def result (self ):
18
43
return self ._result
You can’t perform that action at this time.
0 commit comments