microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
docs/update-release-process

Branches

Tags

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

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Api/AdaptiveCards/InvokeAction.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.Action for Invoke
10/// activity with Name of 'adaptiveCard/action'.
11/// </summary>
12public 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}