8000 Adding tab response (#1537) · yosshy/botbuilder-python@8b02292 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b02292

Browse files
authored
Adding tab response (microsoft#1537)
* Some teams models ported * Teams AH changes and schema updates * Adding unit tests and bug fixing * fixing formatting * Fixed returning Not Implemented on base methods * Fix for TabRequest serializer * Fixed suggestions on teams schema * fixed serialization for TabSubmitData * TabResponse
1 parent 4533425 commit 8b02292

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

libraries/botbuilder-schema/botbuilder/schema/teams/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
from ._models_py3 import TabResponseCard
6868
from ._models_py3 import TabResponseCards
6969
from ._models_py3 import TabResponsePayload
70+
from ._models_py3 import TabResponse
7071
from ._models_py3 import TabSubmit
7172
from ._models_py3 import TabSubmitData
7273
from ._models_py3 import TabSuggestedActions
@@ -139,6 +140,7 @@
139140
"TabResponseCard",
140141
"TabResponseCards",
141142
"TabResponsePayload",
143+
"TabResponse",
142144
"TabSubmit",
143145
"TabSubmitData",
144146
"TabSuggestedActions",

libraries/botbuilder-schema/botbuilder/schema/teams/_models_py3.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2218,6 +2218,27 @@ def _custom_init(self):
22182218
return
22192219

22202220

2221+
class TabResponse(Model):
2222+
"""
2223+
Envelope for Card Tab Response Payload.
2224+
2225+
:param tab: Possible values include: 'continue', 'auth' or 'silentAuth'
2226+
:type type: ~botframework.connector.teams.models.TabResponsePayload
2227+
"""
2228+
2229+
_attribute_map = {
2230+
"tab": {"key": "tab", "type": "TabResponsePayload"},
2231+
}
2232+
2233+
def __init__(self, *, tab=None, **kwargs) -> None:
2234+
super(TabResponse, self).__init__(**kwargs)
2235+
self.tab = tab
2236+
self._custom_init()
2237+
2238+
def _custom_init(self):
2239+
return
2240+
2241+
22212242
class TabSumit(Model):
22222243
"""
22232244
Invoke ('tab/submit') request value payload.

0 commit comments

Comments
 (0)
0