-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
Participant.cs
66 lines (59 loc) · 3.42 KB
/
Participant.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using System.Linq;
using Azure.Core;
namespace Azure.ResourceManager.CustomerInsights.Models
{
/// <summary> Describes a profile type participating in an interaction. </summary>
public partial class Participant
{
/// <summary> Initializes a new instance of Participant. </summary>
/// <param name="profileTypeName"> Profile type name. </param>
/// <param name="participantPropertyReferences"> The property references. </param>
/// <param name="participantName"> Participant name. </param>
/// <exception cref="ArgumentNullException"> <paramref name="profileTypeName"/>, <paramref name="participantPropertyReferences"/> or <paramref name="participantName"/> is null. </exception>
public Participant(string profileTypeName, IEnumerable<ParticipantPropertyReference> participantPropertyReferences, string participantName)
{
Argument.AssertNotNull(profileTypeName, nameof(profileTypeName));
Argument.AssertNotNull(participantPropertyReferences, nameof(participantPropertyReferences));
Argument.AssertNotNull(participantName, nameof(participantName));
ProfileTypeName = profileTypeName;
ParticipantPropertyReferences = participantPropertyReferences.ToList();
ParticipantName = participantName;
DisplayName = new ChangeTrackingDictionary<string, string>();
Description = new ChangeTrackingDictionary<string, string>();
}
/// <summary> Initializes a new instance of Participant. </summary>
/// <param name="profileTypeName"> Profile type name. </param>
/// <param name="participantPropertyReferences"> The property references. </param>
/// <param name="participantName"> Participant name. </param>
/// <param name="displayName"> Localized display name. </param>
/// <param name="description"> Localized descriptions. </param>
/// <param name="role"> The role that the participant is playing in the interaction. </param>
internal Participant(string profileTypeName, IList<ParticipantPropertyReference> participantPropertyReferences, string participantName, IDictionary<string, string> displayName, IDictionary<string, string> description, string role)
{
ProfileTypeName = profileTypeName;
ParticipantPropertyReferences = participantPropertyReferences;
ParticipantName = participantName;
DisplayName = displayName;
Description = description;
Role = role;
}
/// <summary> Profile type name. </summary>
public string ProfileTypeName { get; set; }
/// <summary> The property references. </summary>
public IList<ParticipantPropertyReference> ParticipantPropertyReferences { get; }
/// <summary> Participant name. </summary>
public string ParticipantName { get; set; }
/// <summary> Localized display name. </summary>
public IDictionary<string, string> DisplayName { get; }
/// <summary> Localized descriptions. </summary>
public IDictionary<string, string> Description { get; }
/// <summary> The role that the participant is playing in the interaction. </summary>
public string Role { get; set; }
}
}