-
Notifications
You must be signed in to change notification settings - Fork 25
/
O365ConnectorCardSection.cs
138 lines (122 loc) · 5.32 KB
/
O365ConnectorCardSection.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
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Bot.Schema.Teams
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// O365 connector card section
/// </summary>
public partial class O365ConnectorCardSection
{
/// <summary>
/// Initializes a new instance of the O365ConnectorCardSection class.
/// </summary>
public O365ConnectorCardSection()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the O365ConnectorCardSection class.
/// </summary>
/// <param name="title">Title of the section</param>
/// <param name="text">Text for the section</param>
/// <param name="activityTitle">Activity title</param>
/// <param name="activitySubtitle">Activity subtitle</param>
/// <param name="activityText">Activity text</param>
/// <param name="activityImage">Activity image</param>
/// <param name="activityImageType">Describes how Activity image is
/// rendered. Possible values include: 'avatar', 'article'</param>
/// <param name="markdown">Use markdown for all text contents. Default
/// value is true.</param>
/// <param name="facts">Set of facts for the current section</param>
/// <param name="images">Set of images for the current section</param>
/// <param name="potentialAction">Set of actions for the current
/// section</param>
public O365ConnectorCardSection(string title = default(string), string text = default(string), string activityTitle = default(string), string activitySubtitle = default(string), string activityText = default(string), string activityImage = default(string), string activityImageType = default(string), bool? markdown = default(bool?), IList<O365ConnectorCardFact> facts = default(IList<O365ConnectorCardFact>), IList<O365ConnectorCardImage> images = default(IList<O365ConnectorCardImage>), IList<O365ConnectorCardActionBase> potentialAction = default(IList<O365ConnectorCardActionBase>))
{
Title = title;
Text = text;
ActivityTitle = activityTitle;
ActivitySubtitle = activitySubtitle;
ActivityText = activityText;
ActivityImage = activityImage;
ActivityImageType = activityImageType;
Markdown = markdown;
Facts = facts;
Images = images;
PotentialAction = potentialAction;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets title of the section
/// </summary>
[JsonProperty(PropertyName = "title")]
public string Title { get; set; }
/// <summary>
/// Gets or sets text for the section
/// </summary>
[JsonProperty(PropertyName = "text")]
public string Text { get; set; }
/// <summary>
/// Gets or sets activity title
/// </summary>
[JsonProperty(PropertyName = "activityTitle")]
public string ActivityTitle { get; set; }
/// <summary>
/// Gets or sets activity subtitle
/// </summary>
[JsonProperty(PropertyName = "activitySubtitle")]
public string ActivitySubtitle { get; set; }
/// <summary>
/// Gets or sets activity text
/// </summary>
[JsonProperty(PropertyName = "activityText")]
public string ActivityText { get; set; }
/// <summary>
/// Gets or sets activity image
/// </summary>
[JsonProperty(PropertyName = "activityImage")]
public string ActivityImage { get; set; }
/// <summary>
/// Gets or sets describes how Activity image is rendered. Possible
/// values include: 'avatar', 'article'
/// </summary>
[JsonProperty(PropertyName = "activityImageType")]
public string ActivityImageType { get; set; }
/// <summary>
/// Gets or sets use markdown for all text contents. Default value is
/// true.
/// </summary>
[JsonProperty(PropertyName = "markdown")]
public bool? Markdown { get; set; }
/// <summary>
/// Gets or sets set of facts for the current section
/// </summary>
[JsonProperty(PropertyName = "facts")]
public IList<O365ConnectorCardFact> Facts { get; set; }
/// <summary>
/// Gets or sets set of images for the current section
/// </summary>
[JsonProperty(PropertyName = "images")]
public IList<O365ConnectorCardImage> Images { get; set; }
/// <summary>
/// Gets or sets set of actions for the current section
/// </summary>
[JsonProperty(PropertyName = "potentialAction")]
public IList<O365ConnectorCardActionBase> PotentialAction { get; set; }
}
}