-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
AcsChatMessageEditedEventData.cs
50 lines (44 loc) · 2.81 KB
/
AcsChatMessageEditedEventData.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
// 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.ChatMessageEdited event. </summary>
public partial class AcsChatMessageEditedEventData : AcsChatMessageEventBaseProperties
{
/// <summary> Initializes a new instance of AcsChatMessageEditedEventData. </summary>
internal AcsChatMessageEditedEventData()
{
Metadata = new ChangeTrackingDictionary<string, string>();
}
/// <summary> Initializes a new instance of AcsChatMessageEditedEventData. </summary>
/// <param name="recipientCommunicationIdentifier"> The communication identifier of the target user. </param>
/// <param name="transactionId"> The transaction id will be used as co-relation vector. </param>
/// <param name="threadId"> The chat thread id. </param>
/// <param name="messageId"> The chat message id. </param>
/// <param name="senderCommunicationIdentifier"> The communication identifier of the sender. </param>
/// <param name="senderDisplayName"> The display name of the sender. </param>
/// <param name="composeTime"> The original compose time of the message. </param>
/// <param name="type"> The type of the message. </param>
/// <param name="version"> The version of the message. </param>
/// <param name="messageBody"> The body of the chat message. </param>
/// <param name="metadata"> The chat message metadata. </param>
/// <param name="editTime"> The time at which the message was edited. </param>
internal AcsChatMessageEditedEventData(CommunicationIdentifierModel recipientCommunicationIdentifier, string transactionId, string threadId, string messageId, CommunicationIdentifierModel senderCommunicationIdentifier, string senderDisplayName, DateTimeOffset? composeTime, string type, long? version, string messageBody, IReadOnlyDictionary<string, string> metadata, DateTimeOffset? editTime) : base(recipientCommunicationIdentifier, transactionId, threadId, messageId, senderCommunicationIdentifier, senderDisplayName, composeTime, type, version)
{
MessageBody = messageBody;
Metadata = metadata;
EditTime = editTime;
}
/// <summary> The body of the chat message. </summary>
public string MessageBody { get; }
/// <summary> The chat message metadata. </summary>
public IReadOnlyDictionary<string, string> Metadata { get; }
/// <summary> The time at which the message was edited. </summary>
public DateTimeOffset? EditTime { get; }
}
}