Spaces:
Build error
Build error
Validify-testbot-1
/
botbuilder-python
/libraries
/botbuilder-dialogs
/botbuilder
/dialogs
/dialog_turn_result.py
| # 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 | |
| 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 | |
| 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 | |