microsoft/teams.net

Public

mirrored from https://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
samples/migration-bot

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

core/src/Microsoft.Teams.Bot.Apps/Api/TeamsApi.cs

65lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4using Microsoft.Teams.Bot.Core;
5
6namespace Microsoft.Teams.Bot.Apps.Api;
7
8/// <summary>
9/// Provides a hierarchical API facade for Teams operations.
10/// </summary>
11/// <remarks>
12/// This class exposes Teams API operations through a structured hierarchy:
13/// <list type="bullet">
14/// <item><see cref="Conversations"/> - Conversation operations including activities and members</item>
15/// <item><see cref="Users"/> - User operations including token management and OAuth sign-in</item>
16/// <item><see cref="Teams"/> - Team-specific operations</item>
17/// <item><see cref="Meetings"/> - Meeting operations</item>
18/// <item><see cref="Batch"/> - Batch messaging operations</item>
19/// </list>
20/// </remarks>
21public class TeamsApi
22{
23 /// <summary>
24 /// Initializes a new instance of the <see cref="TeamsApi"/> class.
25 /// </summary>
26 /// <param name="conversationClient">The conversation client for conversation operations.</param>
27 /// <param name="userTokenClient">The user token client for token operations.</param>
28 /// <param name="teamsApiClient">The Teams API client for Teams-specific operations.</param>
29 internal TeamsApi(
30 ConversationClient conversationClient,
31 UserTokenClient userTokenClient,
32 TeamsApiClient teamsApiClient)
33 {
34 Conversations = new ConversationsApi(conversationClient);
35 Users = new UsersApi(userTokenClient);
36 Teams = new TeamsOperationsApi(teamsApiClient);
37 Meetings = new MeetingsApi(teamsApiClient);
38 Batch = new BatchApi(teamsApiClient);
39 }
40
41 /// <summary>
42 /// Gets the conversations API for managing conversation activities and members.
43 /// </summary>
44 public ConversationsApi Conversations { get; }
45
46 /// <summary>
47 /// Gets the users API for user token management and OAuth sign-in.
48 /// </summary>
49 public UsersApi Users { get; }
50
51 /// <summary>
52 /// Gets the Teams-specific operations API.
53 /// </summary>
54 public TeamsOperationsApi Teams { get; }
55
56 /// <summary>
57 /// Gets the meetings API for meeting operations.
58 /// </summary>
59 public MeetingsApi Meetings { get; }
60
61 /// <summary>
62 /// Gets the batch messaging API.
63 /// </summary>
64 public BatchApi Batch { get; }
65}
66