microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
dev

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Api/Cards/Card.cs

40lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using System.Text.Json.Serialization;
5
6namespace Microsoft.Teams.Api.Cards;
7
8/// <summary>
9/// any card
10/// </summary>
11public abstract class Card
12{
13 /// <summary>
14 /// Title of this card
15 /// </summary>
16 [JsonPropertyName("title")]
17 [JsonPropertyOrder(0)]
18 public string? Title { get; set; }
19
20 /// <summary>
21 /// Subtitle of this card
22 /// </summary>
23 [JsonPropertyName("subtitle")]
24 [JsonPropertyOrder(1)]
25 public string? SubTitle { get; set; }
26
27 /// <summary>
28 /// Text of this card
29 /// </summary>
30 [JsonPropertyName("text")]
31 [JsonPropertyOrder(2)]
32 public string? Text { get; set; }
33
34 /// <summary>
35 /// Actions on this card
36 /// </summary>
37 [JsonPropertyName("buttons")]
38 [JsonPropertyOrder(3)]
39 public IList<Action>? Buttons { get; set; }
40}