microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
next/core-activitybuilder

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Api/AdaptiveCards/InvokeValue.cs

41lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using System.Text.Json.Serialization;
5
6namespace 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>
12public 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}