microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/Cards/Card.cs
40lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Text.Json.Serialization; |
| 5 | |
| 6 | namespace Microsoft.Teams.Api.Cards; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// any card |
| 10 | /// </summary> |
| 11 | public 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 | } |