-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
AcsChatThreadCreatedEventData.cs
46 lines (40 loc) · 2.54 KB
/
AcsChatThreadCreatedEventData.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.Messaging.EventGrid.SystemEvents
{
/// <summary> Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadCreated event. </summary>
public partial class AcsChatThreadCreatedEventData : AcsChatThreadEventInThreadBaseProperties
{
/// <summary> Initializes a new instance of AcsChatThreadCreatedEventData. </summary>
internal AcsChatThreadCreatedEventData()
{
Properties = new ChangeTrackingDictionary<string, object>();
Participants = new ChangeTrackingList<AcsChatThreadParticipantProperties>();
}
/// <summary> Initializes a new instance of AcsChatThreadCreatedEventData. </summary>
/// <param name="transactionId"> The transaction id will be used as co-relation vector. </param>
/// <param name="threadId"> The chat thread id. </param>
/// <param name="createTime"> The original creation time of the thread. </param>
/// <param name="version"> The version of the thread. </param>
/// <param name="createdByCommunicationIdentifier"> The communication identifier of the user who created the thread. </param>
/// <param name="properties"> The thread properties. </param>
/// <param name="participants"> The list of properties of participants who are part of the thread. </param>
internal AcsChatThreadCreatedEventData(string transactionId, string threadId, DateTimeOffset? createTime, long? version, CommunicationIdentifierModel createdByCommunicationIdentifier, IReadOnlyDictionary<string, object> properties, IReadOnlyList<AcsChatThreadParticipantProperties> participants) : base(transactionId, threadId, createTime, version)
{
CreatedByCommunicationIdentifier = createdByCommunicationIdentifier;
Properties = properties;
Participants = participants;
}
/// <summary> The communication identifier of the user who created the thread. </summary>
public CommunicationIdentifierModel CreatedByCommunicationIdentifier { get; }
/// <summary> The thread properties. </summary>
public IReadOnlyDictionary<string, object> Properties { get; }
/// <summary> The list of properties of participants who are part of the thread. </summary>
public IReadOnlyList<AcsChatThreadParticipantProperties> Participants { get; }
}
}