microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/AdaptiveCards/InvokeAction.cs
41lines · 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.AdaptiveCards; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// Defines the structure that arrives in the Activity.Value.Action for Invoke |
| 10 | /// activity with Name of 'adaptiveCard/action'. |
| 11 | /// </summary> |
| 12 | public class InvokeAction |
| 13 | { |
| 14 | /// <summary> |
| 15 | /// The Type of this Adaptive Card Invoke Action. |
| 16 | /// </summary> |
| 17 | [JsonPropertyName("type")] |
| 18 | [JsonPropertyOrder(0)] |
| 19 | public required ActionType Type { get; set; } |
| 20 | |
| 21 | /// <summary> |
| 22 | /// The id of this Adaptive Card Invoke Action. |
| 23 | /// </summary> |
| 24 | [JsonPropertyName("id")] |
| 25 | [JsonPropertyOrder(1)] |
| 26 | public string? Id { get; set; } |
| 27 | |
| 28 | /// <summary> |
| 29 | /// The Verb of this adaptive card action invoke. |
| 30 | /// </summary> |
| 31 | [JsonPropertyName("verb")] |
| 32 | [JsonPropertyOrder(2)] |
| 33 | public string? Verb { get; set; } |
| 34 | |
| 35 | /// <summary> |
| 36 | /// The Data of this adaptive card action invoke. |
| 37 | /// </summary> |
| 38 | [JsonPropertyName("data")] |
| 39 | [JsonPropertyOrder(3)] |
| 40 | public IDictionary<string, object> Data { get; set; } = new Dictionary<string, object>(); |
| 41 | } |