microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Cards/Actions/MessageBackAction.cs
38lines · 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="MessageBackSubmitActionData"/> instead. This will be removed in a future version of the SDK. |
| 10 | /// </summary> |
| 11 | [Obsolete("This class is deprecated. Use MessageBackSubmitActionData instead. This will be removed in a future version of the SDK.")] |
| 12 | public class MessageBackAction : SubmitAction |
| 13 | { |
| 14 | public MessageBackAction(string text, string value) |
| 15 | { |
| 16 | Data = new Union<string, SubmitActionData>(new SubmitActionData |
| 17 | { |
| 18 | Msteams = new MessageBackSubmitActionData() |
| 19 | { |
| 20 | Text = text, |
| 21 | Value = value |
| 22 | } |
| 23 | }); |
| 24 | } |
| 25 | |
| 26 | public MessageBackAction(string text, string displayText, string value) |
| 27 | { |
| 28 | Data = new Union<string, SubmitActionData>(new SubmitActionData |
| 29 | { |
| 30 | Msteams = new MessageBackSubmitActionData() |
| 31 | { |
| 32 | Text = text, |
| 33 | DisplayText = displayText, |
| 34 | Value = value |
| 35 | } |
| 36 | }); |
| 37 | } |
| 38 | } |