microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/AdaptiveCards/InvokeValue.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 for Invoke activity with |
| 10 | /// Name of 'adaptiveCard/action'. |
| 11 | /// </summary> |
| 12 | public class InvokeValue |
| 13 | { |
| 14 | /// <summary> |
| 15 | /// the action of this adaptive card invoke action value. |
| 16 | /// </summary> |
| 17 | [JsonPropertyName("action")] |
| 18 | [JsonPropertyOrder(0)] |
| 19 | public required InvokeAction Action { get; set; } |
| 20 | |
| 21 | /// <summary> |
| 22 | /// the token exchange request for this adaptive card invoke action value. |
| 23 | /// </summary> |
| 24 | [JsonPropertyName("authentication")] |
| 25 | [JsonPropertyOrder(1)] |
| 26 | public TokenExchange.InvokeRequest? Authentication { get; set; } |
| 27 | |
| 28 | /// <summary> |
| 29 | /// for this adaptive card invoke action value. |
| 30 | /// </summary> |
| 31 | [JsonPropertyName("state")] |
| 32 | [JsonPropertyOrder(2)] |
| 33 | public string? State { get; set; } |
| 34 | |
| 35 | /// <summary> |
| 36 | /// What triggered the action |
| 37 | /// </summary> |
| 38 | [JsonPropertyName("trigger")] |
| 39 | [JsonPropertyOrder(3)] |
| 40 | public string? Trigger { get; set; } |
| 41 | } |