microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Cards/Actions/InvokeAction.cs
25lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using Microsoft.Teams.Common; |
| 5 | |
| 6 | namespace Microsoft.Teams.Cards; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// This class is deprecated. Please use <see cref="InvokeSubmitActionData"/> instead. This will be removed in a future version of the SDK. |
| 10 | /// </summary> |
| 11 | [Obsolete("This class is deprecated. Use InvokeSubmitActionData instead. This will be removed in a future version of the SDK.")] |
| 12 | public class InvokeAction : SubmitAction |
| 13 | { |
| 14 | /// <summary> |
| 15 | /// Initializes a new instance of the <see cref="InvokeAction"/> class. |
| 16 | /// </summary> |
| 17 | /// <param name="value">The value to submit when the action is invoked.</param> |
| 18 | public InvokeAction(object value) |
| 19 | { |
| 20 | Data = new Union<string, SubmitActionData>(new SubmitActionData |
| 21 | { |
| 22 | Msteams = new InvokeSubmitActionData(new Union<object, CollabStageInvokeDataValue>(value)) |
| 23 | }); |
| 24 | } |
| 25 | } |