microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/MessageExtensions/Attachment.cs
29lines · modecode
| 1 | using System.Text.Json.Serialization; |
| 2 | |
| 3 | namespace Microsoft.Teams.Api.MessageExtensions; |
| 4 | |
| 5 | /// <summary> |
| 6 | /// Messaging extension attachment. |
| 7 | /// </summary> |
| 8 | public class Attachment : Api.Attachment |
| 9 | { |
| 10 | /// <summary> |
| 11 | /// the preview attachment |
| 12 | /// </summary> |
| 13 | [JsonPropertyName("preview")] |
| 14 | [JsonPropertyOrder(6)] |
| 15 | public Api.Attachment? Preview { get; set; } |
| 16 | |
| 17 | public Attachment() : base() |
| 18 | { |
| 19 | |
| 20 | } |
| 21 | |
| 22 | public Attachment(string contentType) : base(contentType) |
| 23 | { |
| 24 | } |
| 25 | |
| 26 | public Attachment(ContentType contentType) : base(contentType) |
| 27 | { |
| 28 | } |
| 29 | } |