/
MessageTemplateText.cs
53 lines (45 loc) · 2.03 KB
/
MessageTemplateText.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.Communication.Messages
{
/// <summary> The message template's text value information. </summary>
public partial class MessageTemplateText : MessageTemplateValue
{
/// <summary> Initializes a new instance of <see cref="MessageTemplateText"/>. </summary>
/// <param name="name"> Template binding reference name. </param>
/// <param name="text"> The text value. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/> or <paramref name="text"/> is null. </exception>
public MessageTemplateText(string name, string text) : base(name)
{
if (name == null)
{
throw new ArgumentNullException(nameof(name));
}
if (text == null)
{
throw new ArgumentNullException(nameof(text));
}
Kind = "text";
Text = text;
}
/// <summary> Initializes a new instance of <see cref="MessageTemplateText"/>. </summary>
/// <param name="name"> Template binding reference name. </param>
/// <param name="kind"> The type discriminator describing a template parameter type. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="text"> The text value. </param>
internal MessageTemplateText(string name, string kind, IDictionary<string, BinaryData> serializedAdditionalRawData, string text) : base(name, kind, serializedAdditionalRawData)
{
Text = text;
}
/// <summary> Initializes a new instance of <see cref="MessageTemplateText"/> for deserialization. </summary>
internal MessageTemplateText()
{
}
/// <summary> The text value. </summary>
public string Text { get; }
}
}