-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MicrosoftTeamsUserIdentifierModel.cs
43 lines (36 loc) · 2.05 KB
/
MicrosoftTeamsUserIdentifierModel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.Messaging.EventGrid.SystemEvents
{
/// <summary> A Microsoft Teams user. </summary>
public partial class MicrosoftTeamsUserIdentifierModel
{
/// <summary> Initializes a new instance of <see cref="MicrosoftTeamsUserIdentifierModel"/>. </summary>
/// <param name="userId"> The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user. </param>
/// <exception cref="ArgumentNullException"> <paramref name="userId"/> is null. </exception>
internal MicrosoftTeamsUserIdentifierModel(string userId)
{
Argument.AssertNotNull(userId, nameof(userId));
UserId = userId;
}
/// <summary> Initializes a new instance of <see cref="MicrosoftTeamsUserIdentifierModel"/>. </summary>
/// <param name="userId"> The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user. </param>
/// <param name="isAnonymous"> True if the Microsoft Teams user is anonymous. By default false if missing. </param>
/// <param name="cloud"> The cloud that the Microsoft Teams user belongs to. By default 'public' if missing. </param>
internal MicrosoftTeamsUserIdentifierModel(string userId, bool? isAnonymous, CommunicationCloudEnvironmentModel? cloud)
{
UserId = userId;
IsAnonymous = isAnonymous;
Cloud = cloud;
}
/// <summary> The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user. </summary>
public string UserId { get; }
/// <summary> True if the Microsoft Teams user is anonymous. By default false if missing. </summary>
public bool? IsAnonymous { get; }
/// <summary> The cloud that the Microsoft Teams user belongs to. By default 'public' if missing. </summary>
public CommunicationCloudEnvironmentModel? Cloud { get; }
}
}