microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/Cards/Image.cs
33lines · 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 | /// An image on a card |
| 10 | /// </summary> |
| 11 | public class Image |
| 12 | { |
| 13 | /// <summary> |
| 14 | /// URL thumbnail image for major content property |
| 15 | /// </summary> |
| 16 | [JsonPropertyName("url")] |
| 17 | [JsonPropertyOrder(0)] |
| 18 | public required string Url { get; set; } |
| 19 | |
| 20 | /// <summary> |
| 21 | /// Image description intended for screen readers |
| 22 | /// </summary> |
| 23 | [JsonPropertyName("alt")] |
| 24 | [JsonPropertyOrder(1)] |
| 25 | public string? Alt { get; set; } |
| 26 | |
| 27 | /// <summary> |
| 28 | /// Action assigned to specific Attachment |
| 29 | /// </summary> |
| 30 | [JsonPropertyName("tap")] |
| 31 | [JsonPropertyOrder(2)] |
| 32 | public Action? Tap { get; set; } |
| 33 | } |