File size: 1,184 Bytes
0827183
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

from .dialog_turn_status import DialogTurnStatus


class DialogTurnResult:
    """
    Result returned to the caller of one of the various stack manipulation methods.
    """

    def __init__(self, status: DialogTurnStatus, result: object = None):
        """
        :param status: The current status of the stack.
        :type status: :class:`botbuilder.dialogs.DialogTurnStatus`
        :param result: The result returned by a dialog that was just ended.
        :type result: object
        """
        self._status = status
        self._result = result

    @property
    def status(self):
        """
        Gets or sets the current status of the stack.

        :return self._status: The status of the stack.
        :rtype self._status: :class:`DialogTurnStatus`
        """
        return self._status

    @property
    def result(self):
        """
        Final result returned by a dialog that just completed.

        :return self._result: Final result returned by a dialog that just completed.
        :rtype self._result: object
        """
        return self._result