Skip to content

Commit 53210e1

Browse files
authored
Merge pull request #837 from microsoft/anclear/teamDetails
add member_count and channel_count to TeamDetails
2 parents 61fe14f + 975e22f commit 53210e1

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,19 +1478,27 @@ class TeamDetails(Model):
14781478
:type name: str
14791479
:param aad_group_id: Azure Active Directory (AAD) Group Id for the team.
14801480
:type aad_group_id: str
1481+
:param channel_count: The count of channels in the team.
1482+
:type chanel_count: int
1483+
:param member_count: The count of members in the team.
1484+
:type member_count: int
14811485
"""
14821486

14831487
_attribute_map = {
14841488
"id": {"key": "id", "type": "str"},
14851489
"name": {"key": "name", "type": "str"},
14861490
"aad_group_id": {"key": "aadGroupId", "type": "str"},
1491+
"channel_count": {"key": "channelCount", "type": "int"},
1492+
"member_count": {"key": "memberCount", "type": "int"},
14871493
}
14881494

14891495
def __init__(self, **kwargs):
14901496
super(TeamDetails, self).__init__(**kwargs)
14911497
self.id = kwargs.get("id", None)
14921498
self.name = kwargs.get("name", None)
14931499
self.aad_group_id = kwargs.get("aad_group_id", None)
1500+
self.channel_count = kwargs.get("channel_count", None)
1501+
self.member_count = kwargs.get("member_count", None)
14941502

14951503

14961504
class TeamInfo(Model):

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,21 +1736,36 @@ class TeamDetails(Model):
17361736
:type name: str
17371737
:param aad_group_id: Azure Active Directory (AAD) Group Id for the team.
17381738
:type aad_group_id: str
1739+
:param channel_count: The count of channels in the team.
1740+
:type channel_count: int
1741+
:param member_count: The count of members in the team.
1742+
:type member_count: int
17391743
"""
17401744

17411745
_attribute_map = {
17421746
"id": {"key": "id", "type": "str"},
17431747
"name": {"key": "name", "type": "str"},
17441748
"aad_group_id": {"key": "aadGroupId", "type": "str"},
1749+
"channel_count": {"key": "channelCount", "type": "int"},
1750+
"member_count": {"key": "memberCount", "type": "int"},
17451751
}
17461752

17471753
def __init__(
1748-
self, *, id: str = None, name: str = None, aad_group_id: str = None, **kwargs
1754+
self,
1755+
*,
1756+
id: str = None,
1757+
name: str = None,
1758+
aad_group_id: str = None,
1759+
member_count: int = None,
1760+
channel_count: int = None,
1761+
**kwargs
17491762
) -> None:
17501763
super(TeamDetails, self).__init__(**kwargs)
17511764
self.id = id
17521765
self.name = name
17531766
self.aad_group_id = aad_group_id
1767+
self.channel_count = channel_count
1768+
self.member_count = member_count
17541769

17551770

17561771
class TeamInfo(Model):

0 commit comments

Comments
 (0)