-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
UpdateChatThreadRequest.cs
48 lines (42 loc) · 2.45 KB
/
UpdateChatThreadRequest.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.Communication.Chat
{
/// <summary> Request payload for updating a chat thread. </summary>
internal partial class UpdateChatThreadRequest
{
/// <summary> Initializes a new instance of <see cref="UpdateChatThreadRequest"/>. </summary>
public UpdateChatThreadRequest()
{
Metadata = new ChangeTrackingDictionary<string, string>();
}
/// <summary> Initializes a new instance of <see cref="UpdateChatThreadRequest"/>. </summary>
/// <param name="topic"> Chat thread topic. </param>
/// <param name="metadata"> Contextual metadata for the thread. The metadata consists of name/value pairs. The total size of all metadata pairs can be up to 1KB in size. </param>
/// <param name="retentionPolicy">
/// Data retention policy for auto deletion.
/// Please note <see cref="ChatRetentionPolicy"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="ThreadCreationDateRetentionPolicy"/>.
/// </param>
internal UpdateChatThreadRequest(string topic, IDictionary<string, string> metadata, ChatRetentionPolicy retentionPolicy)
{
Topic = topic;
Metadata = metadata;
RetentionPolicy = retentionPolicy;
}
/// <summary> Chat thread topic. </summary>
public string Topic { get; set; }
/// <summary> Contextual metadata for the thread. The metadata consists of name/value pairs. The total size of all metadata pairs can be up to 1KB in size. </summary>
public IDictionary<string, string> Metadata { get; }
/// <summary>
/// Data retention policy for auto deletion.
/// Please note <see cref="ChatRetentionPolicy"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="ThreadCreationDateRetentionPolicy"/>.
/// </summary>
public ChatRetentionPolicy RetentionPolicy { get; set; }
}
}