microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/Cards/HeroCard.cs
26lines · 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 | /// A Hero card (card with a single, large image) |
| 10 | /// </summary> |
| 11 | public class HeroCard : Card |
| 12 | { |
| 13 | /// <summary> |
| 14 | /// Array of images for the card |
| 15 | /// </summary> |
| 16 | [JsonPropertyName("images")] |
| 17 | [JsonPropertyOrder(4)] |
| 18 | public IList<Image>? Images { get; set; } |
| 19 | |
| 20 | /// <summary> |
| 21 | /// This action will be activated when user taps on the card itself |
| 22 | /// </summary> |
| 23 | [JsonPropertyName("tap")] |
| 24 | [JsonPropertyOrder(5)] |
| 25 | public Action? Tap { get; set; } |
| 26 | } |