microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
core/src/Microsoft.Teams.Bot.Apps/Api/UsersApi.cs
32lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using Microsoft.Teams.Bot.Core; |
| 5 | |
| 6 | namespace Microsoft.Teams.Bot.Apps.Api; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// Provides user-related operations. |
| 10 | /// </summary> |
| 11 | /// <remarks> |
| 12 | /// This class serves as a container for user-specific sub-APIs: |
| 13 | /// <list type="bullet"> |
| 14 | /// <item><see cref="Token"/> - User token operations (OAuth SSO)</item> |
| 15 | /// </list> |
| 16 | /// </remarks> |
| 17 | public class UsersApi |
| 18 | { |
| 19 | /// <summary> |
| 20 | /// Initializes a new instance of the <see cref="UsersApi"/> class. |
| 21 | /// </summary> |
| 22 | /// <param name="userTokenClient">The user token client for token operations.</param> |
| 23 | internal UsersApi(UserTokenClient userTokenClient) |
| 24 | { |
| 25 | Token = new UserTokenApi(userTokenClient); |
| 26 | } |
| 27 | |
| 28 | /// <summary> |
| 29 | /// Gets the token API for user token operations (OAuth SSO). |
| 30 | /// </summary> |
| 31 | public UserTokenApi Token { get; } |
| 32 | } |