-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExpectedJson.cs
217 lines (184 loc) · 5.82 KB
/
ExpectedJson.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
namespace CICD.Tools.MSTeamsWorkflowWebhookCard.LibTests.MatchTeamsRequirement
{
using System.Collections.Generic;
/// <summary>
/// Represents an action in a body element.
/// </summary>
public class Action
{
/// <summary>
/// Gets or sets the title of the action.
/// </summary>
public string Title { get; set; }
/// <summary>
/// Gets or sets the type of the action.
/// </summary>
public string Type { get; set; }
/// <summary>
/// Gets or sets the URL associated with the action.
/// </summary>
public string Url { get; set; }
}
/// <summary>
/// Represents an attachment in a Teams message.
/// </summary>
public class Attachment
{
/// <summary>
/// Gets or sets the content of the attachment.
/// </summary>
public Content Content { get; set; }
/// <summary>
/// Gets or sets the content type of the attachment.
/// </summary>
public string ContentType { get; set; }
}
/// <summary>
/// Represents an element in the body of an attachment content.
/// </summary>
public class BodyElement
{
/// <summary>
/// Gets or sets the list of actions in the body element.
/// </summary>
public List<Action> Actions { get; set; }
/// <summary>
/// Gets or sets the alternative text for the body element.
/// </summary>
public string AltText { get; set; }
/// <summary>
/// Gets or sets the list of columns in the body element.
/// </summary>
public List<Column> Columns { get; set; }
/// <summary>
/// Gets or sets the list of facts in the body element.
/// </summary>
public List<Fact> Facts { get; set; }
/// <summary>
/// Gets or sets the list of items in the body element.
/// </summary>
public List<Item> Items { get; set; }
/// <summary>
/// Gets or sets the size of the body element.
/// </summary>
public string Size { get; set; }
/// <summary>
/// Gets or sets the text of the body element.
/// </summary>
public string Text { get; set; }
/// <summary>
/// Gets or sets the type of the body element.
/// </summary>
public string Type { get; set; }
/// <summary>
/// Gets or sets the URL associated with the body element.
/// </summary>
public string Url { get; set; }
/// <summary>
/// Gets or sets the width of the body element.
/// </summary>
public string Width { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the text should wrap.
/// </summary>
public bool Wrap { get; set; }
}
/// <summary>
/// Represents a column in a body element.
/// </summary>
public class Column
{
/// <summary>
/// Gets or sets the list of items in the column.
/// </summary>
public List<Item> Items { get; set; }
/// <summary>
/// Gets or sets the type of the column.
/// </summary>
public string Type { get; set; }
/// <summary>
/// Gets or sets the width of the column.
/// </summary>
public string Width { get; set; }
}
/// <summary>
/// Represents the content of an attachment.
/// </summary>
public class Content
{
/// <summary>
/// Gets or sets the list of body elements in the content.
/// </summary>
public List<BodyElement> Body { get; set; }
/// <summary>
/// Gets or sets the type of the content.
/// </summary>
public string Type { get; set; }
/// <summary>
/// Gets or sets the version of the content.
/// </summary>
public string Version { get; set; }
}
/// <summary>
/// Represents a fact in a body element.
/// </summary>
public class Fact
{
/// <summary>
/// Gets or sets the title of the fact.
/// </summary>
public string Title { get; set; }
/// <summary>
/// Gets or sets the value of the fact.
/// </summary>
public string Value { get; set; }
}
/// <summary>
/// Represents an item in a body element or column.
/// </summary>
public class Item
{
/// <summary>
/// Gets or sets the alternative text for the item.
/// </summary>
public string AltText { get; set; }
/// <summary>
/// Gets or sets the size of the item.
/// </summary>
public string Size { get; set; }
/// <summary>
/// Gets or sets the text of the item.
/// </summary>
public string Text { get; set; }
/// <summary>
/// Gets or sets the type of the item.
/// </summary>
public string Type { get; set; }
/// <summary>
/// Gets or sets the URL associated with the item.
/// </summary>
public string Url { get; set; }
/// <summary>
/// Gets or sets the weight of the item.
/// </summary>
public string Weight { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the text should wrap.
/// </summary>
public bool Wrap { get; set; }
}
/// <summary>
/// Represents a Teams message.
/// </summary>
public class Message
{
/// <summary>
/// Gets or sets the list of attachments in the message.
/// </summary>
public List<Attachment> Attachments { get; set; }
/// <summary>
/// Gets or sets the type of the message.
/// </summary>
public string Type { get; set; }
}
}