microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
core/src/Microsoft.Teams.Bot.Apps/Schema/Team.cs
47lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Text.Json.Serialization; |
| 5 | |
| 6 | namespace Microsoft.Teams.Bot.Apps.Schema; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// Represents a team, including its identity, group association, and membership details. |
| 10 | /// </summary> |
| 11 | public class Team |
| 12 | { |
| 13 | /// <summary> |
| 14 | /// Represents the unique identifier of the team. |
| 15 | /// </summary> |
| 16 | [JsonPropertyName("id")] public string? Id { get; set; } |
| 17 | |
| 18 | /// <summary> |
| 19 | /// Azure Active Directory (AAD) Group ID associated with the team. |
| 20 | /// </summary> |
| 21 | [JsonPropertyName("aadGroupId")] public string? AadGroupId { get; set; } |
| 22 | |
| 23 | /// <summary> |
| 24 | /// Gets or sets the unique identifier of the tenant associated with this entity. |
| 25 | /// </summary> |
| 26 | [JsonPropertyName("tenantId")] public string? TenantId { get; set; } |
| 27 | |
| 28 | /// <summary> |
| 29 | /// Gets or sets the type identifier for the object represented by this instance. |
| 30 | /// </summary> |
| 31 | [JsonPropertyName("type")] public string? Type { get; set; } |
| 32 | |
| 33 | /// <summary> |
| 34 | /// Gets or sets the name associated with the object. |
| 35 | /// </summary> |
| 36 | [JsonPropertyName("name")] public string? Name { get; set; } |
| 37 | |
| 38 | /// <summary> |
| 39 | /// Number of channels in the team. |
| 40 | /// </summary> |
| 41 | [JsonPropertyName("channelCount")] public int? ChannelCount { get; set; } |
| 42 | |
| 43 | /// <summary> |
| 44 | /// Number of members in the team. |
| 45 | /// </summary> |
| 46 | [JsonPropertyName("memberCount")] public int? MemberCount { get; set; } |
| 47 | } |
| 48 | |